id: phpldapadmin-panel

info:
  name: PHP LDAP Admin Panel - Detect
  author: ritikchaddha,DhiyaneshDk
  severity: info
  classification:
    cpe: cpe:2.3:a:phpldapadmin_project:phpldapadmin:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 3
    vendor: phpldapadmin_project
    product: phpldapadmin
    shodan-query: title:"phpLDAPadmin"
  tags: php,phpldapadmin,panel,detect

http:
  - method: GET
    path:
      - '{{BaseURL}}'
      - '{{BaseURL}}/phpldapadmin'
      - '{{BaseURL}}/htdocs/index.php'

    stop-at-first-match: true
    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "phpLDAPadmin ("
          - "/projects/phpldapadmin"
          - "alt=\"phpLDAPadmin logo"
        condition: or

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '<div id="ajFOOT">([0-9.]+)<\/div>'
# digest: 4a0a00473045022100cce48e79d48b68f80ac0c5a9f83d623a0a5297ad044c4d3228417651594ee11302207069e4490f986c34ec0ebb5965730ea81e4f760a07962f18e05e0d82de569552:922c64590222798bb761d5b6d8e72950