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