id: amcrest-login

info:
  name: Amcrest Login
  author: DhiyaneshDK
  severity: info
  description: An Amcrest LDAP user login was discovered.
  reference:
    - https://www.exploit-db.com/ghdb/7273
  classification:
    cwe-id: CWE-200
    cpe: cpe:2.3:h:amcrest:ip2m-853ew:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: amcrest
    product: ip2m-853ew
    shodan-query:
      - html:"amcrest"
      - http.html:"amcrest" "ldap user"
      - http.html:"amcrest"
    google-query:
      - intext:"amcrest" "LDAP User"
      - intext:"amcrest" "ldap user"
    fofa-query:
      - body="amcrest" "ldap user"
      - body="amcrest"
  tags: panel,camera,amcrest,edb,discovery

http:
  - method: GET
    path:
      - '{{BaseURL}}'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Amcrest Technologies"
          - "LDAPUser"
        condition: and

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