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

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: 490a00463044022053266ebc4139a62596f96313b52b78e6d112ea3ac491ef47edf1bcd3e22afa8d022032ea34c2815e0ac284330fa2038f053724ea328cac9b35f9dcdece7d268fa89f:922c64590222798bb761d5b6d8e72950