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,vuln

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: 4a0a0047304502204a718f464b0e7ec8478c9b44de18c6c5c8d858a1aa561fcc0b9a3328db7ad486022100817d05f3d301ebe0b3b7d7ec2faef7753096baa5a5ea28787574547ff88d5f1d:922c64590222798bb761d5b6d8e72950