id: unauth-ldap-account-manager

info:
  name: Unauthenticated LDAP Account Manager
  author: tess
  severity: medium
  description: LDAP Account Manager is exposed to external users.
  classification:
    cpe: cpe:2.3:a:ldap-account-manager:ldap_account_manager:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: ldap-account-manager
    product: ldap_account_manager
    shodan-query: http.title:"LDAP Account Manager"
  tags: ldap,misconfig,unauth

http:
  - method: GET
    path:
      - '{{BaseURL}}/templates/config/profmanage.php'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'LDAP Account Manager'
          - 'Profile management'
          - 'Add profile'
        condition: and

      - type: word
        part: header
        words:
          - "text/html"

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