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,discovery

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: 4a0a004730450221009f7bd422175fe67ae24a06f8a1726194765d1be5997aa7df55a952c2bc74ba3802202fa6194b7f607459d5608333f37c3edb91f0284fa6e0cb03d80413698adb5613:922c64590222798bb761d5b6d8e72950