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