id: ultimatemember-open-redirect

info:
  name: WordPress Ultimate Member <2.1.7 - Open Redirect
  author: 0x_Akoko
  severity: medium
  description: WordPress Ultimate Member plugin before 2.1.7 contains an open redirect vulnerability on the registration and login pages via the "redirect_to" GET parameter. An attacker can redirect a user to a malicious site and possibly obtain sensitive information, modify data, and/or execute unauthorized operations.
  remediation: Fixed in 2.1.7.
  reference:
    - https://wpscan.com/vulnerability/97823f41-7614-420e-81b8-9e735e4c203f
  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
    cwe-id: CWE-601
  metadata:
    max-request: 1
  tags: wp-plugin,redirect,wordpress,wpscan,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/register/?redirect_to=https://interact.sh/"

    matchers:
      - type: regex
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?://|//)(?:[a-zA-Z0-9\-_\.@]*)interact\.sh.*$'
        part: header
# digest: 4a0a00473045022058094e98802898b702ed2cded5c94b9ae3cd94755a6963cf2c2c692a68334c65022100d4021582898ca8f199cafa009aa3d609a0fc7c803225e2bd31caed38aa3b0cd3:922c64590222798bb761d5b6d8e72950