id: wp-enabled-registration

info:
  name: WordPress user registration enabled
  author: Ratnadip Gajbhiye,ritikchaddha
  severity: info
  metadata:
    max-request: 1
  tags: wordpress,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-login.php?action=register'
      - '{{BaseURL}}/wp-signup.php'

    host-redirects: true
    max-redirects: 4
    matchers:
      - type: dsl
        dsl:
          - 'contains_any(body, "Register For This", "register_form_message", "registerform", "signup-form", "signup_form", "login-action-register","-register")'
          - 'contains_any(body, "/wp-includes", "/wp-content")'
          - 'status_code == 200'
        condition: and
# digest: 4b0a00483046022100b15009cda0f045788d2f53d61a1ffe7f80b3c823fa1e810eba2975393df7d58d022100c33208ddaca4550ac950de967bdeeecdcf8def231832e683638b4c8a4d3fafc2:922c64590222798bb761d5b6d8e72950