id: wordpress-db-backup

info:
  name: WordPress DB Backup
  author: dwisiswant0
  severity: medium
  description: This template checks for exposed database in wordpress.
  metadata:
    max-request: 1
  tags: wordpress,backups,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/backup-db/"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Index of /"
          - ".sql\">"
        condition: and
        part: body

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