id: wordpress-db-backup-listing

info:
  name: WordPress DB Backup
  author: Suman_Kar
  severity: medium
  description: WordPress DB Backup plugin exposes db file along with directory listing.
  metadata:
    max-request: 1
  tags: wordpress,backup

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/uploads/database-backups/"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Index of /"
          - "wp-content/uploads/database-backups"
          - ".sql"
        condition: and
        part: body

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