id: backup-directory-listing

info:
  name: Backup Directory Listing - Detect
  author: DhiyaneshDK
  severity: low
  description: |
    Backup Directory Listing folder was detected.
  reference:
    - https://www.invicti.com/learn/directory-listing/
    - https://hackerone.com/reports/684838
  metadata:
    verified: true
    max-request: 1
  tags: hackerone,backups,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/backup/"
      - "{{BaseURL}}/php/backup/"

    stop-at-first-match: true
    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "Index of .*/backup"

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