id: configuration-listing

info:
  name: Sensitive Configuration Files Listing - Detect
  author: j33n1k4
  severity: medium
  description: Listing of sensitive configuration files containing items such as usernames, passwords, and IP addresses was detected.
  reference:
    - https://www.exploit-db.com/ghdb/7014
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: config,listing,exposure,edb

http:
  - method: GET
    path:
      - "{{BaseURL}}/config/"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Index of /config"
          - "Parent Directory"
        condition: and

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