id: teampass-ldap

info:
  name: Teampass LDAP Debug Config - Detect
  author: josecosta
  severity: medium
  description: |
    Teampass ldap.debug.txt config was detected. This file is generated on "/files/ldap.debug.txt" for versions earlier than 3.0.0.0 when utilizing the "Test current configuration" in LDAP settings.
  reference:
    - https://github.com/nilsteampassnet/TeamPass/commit/ea9838481a58879cdf3def31046955efcff5a546#diff-61809be6a8fff101e3748a0c7dfad90bR16
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 1
    fofa-query: app="TEAMPASS"
  tags: exposure,teampass,ldap,logs

http:
  - method: GET
    path:
      - "{{BaseURL}}/files/ldap.debug.txt"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - 'base_dn'
          - 'search_base'
          - 'bind_dn'
          - 'bind_passwd'
        condition: and

      - type: word
        part: header
        words:
          - 'text/plain'

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