id: wp-registration-enabled

info:
  name: WordPress User Registration Panel - Detect
  author: tess,DhiyaneshDK
  severity: info
  description: |
    WordPress user registration is currently configured so that anyone can register as a user, thereby enabling an attacker to possibly access sensitive data and execute unathorized operations.
  remediation: |
    Disable user registration if not needed. To do so, log in as an administrator and go to Settings -> General and uncheck "Anyone can register."
  reference:
    - https://www.acunetix.com/vulnerabilities/web/wordpress-user-registration-enabled/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 1
  tags: wordpress,wp,misconfig,vuln

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '?action=register"'

      - type: word
        part: header
        words:
          - 'text/html'

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