id: wp-config-setup

info:
  name: WordPress Setup Configuration
  author: princechaddha
  severity: high
  description: Exposed Wordpress Setup Configuration.
  reference:
    - https://smaranchand.com.np/2020/04/misconfigured-wordpress-takeover-to-remote-code-execution/
  metadata:
    max-request: 1
  tags: wordpress,setup

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-admin/setup-config.php?step=1"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Below you should enter your database connection details."

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