id: wordpress-emergency-script

info:
  name: WordPress Emergency Script
  author: dwisiswant0
  severity: info
  description: Exposed wordpress password reset emergency script.
  reference:
    - https://wordpress.org/support/article/resetting-your-password/#using-the-emergency-password-reset-script
  metadata:
    max-request: 1
  tags: wordpress,vuln

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Your use of this script is at your sole risk"
          - "WordPress Administrator"
          - "Update Options"
        condition: and
        part: body

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