id: CVE-2026-6203

info:
  name: User Registration & Membership WordPress plugin - Open Redirect
  author: theamanrawat
  severity: medium
  description: |
    User Registration & Membership WordPress plugin <= 5.1.4 contains an open redirect caused by insufficient validation of 'redirect_to_on_logout' parameter, letting attackers redirect users to malicious external URLs after logout, exploit requires crafted URL.
  impact: |
    Attackers can redirect users to malicious sites after logout, facilitating phishing attacks and user deception.
  remediation: |
    Update to a version later than 5.1.4 or the latest available version.
  reference:
    - https://patchstack.com/database/vulnerability/wordpress-user-registration-membership-plugin-5-1-4-unauthenticated-open-redirect-via-redirect-to-on-logout-parameter-vulnerability
    - https://nvd.nist.gov/vuln/detail/CVE-2026-6203
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2026-6203
    epss-score: 0.00663
    epss-percentile: 0.48135
    cwe-id: CWE-601
  metadata:
    verified: true
    max-request: 2
    shodan-query: http.html:"/wp-content/plugins/user-registration/"
    fofa-query: body="/wp-content/plugins/user-registration/" && title="WordPress"
  tags: cve,cve2026,wp,wordpress,wp-plugin,user-registration,open-redirect

flow: http(1) && http(2)

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/user-registration/readme.txt"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "User Registration")'
        condition: and
        internal: true

  - method: GET
    path:
      - "{{BaseURL}}/?user-logout=true&redirect_to_on_logout=https://interact.sh"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 302

      - type: word
        part: header
        words:
          - "Location: https://interact.sh"
# digest: 4a0a00473045022051ad3cb272b0eb614191b31507c8186946a3d48163edecbe4352532eebd071300221009c4798b5e969395f7a332ff1fa5e38bbdfb781f64cafb302a3aef2d5684418b3:922c64590222798bb761d5b6d8e72950