id: CVE-2021-24406

info:
  name: WordPress wpForo Forum < 1.9.7 - Open Redirect
  author: 0x_Akoko
  severity: medium
  description: WordPress wpForo Forum < 1.9.7 is susceptible to an open redirect vulnerability because the plugin did not validate the redirect_to parameter in the login form of the forum, leading to an open redirect issue after a successful login.
  impact: |
    An attacker can trick users into visiting a malicious website, leading to potential phishing attacks or the disclosure of sensitive information.
  remediation: |
    Update wpForo Forum to version 1.9.7 or later to fix the open redirect vulnerability.
  reference:
    - https://wpscan.com/vulnerability/a9284931-555b-4c96-86a3-09e1040b0388
    - https://nvd.nist.gov/vuln/detail/CVE-2021-24406
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  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-2021-24406
    cwe-id: CWE-601
    epss-score: 0.08621
    epss-percentile: 0.9254
    cpe: cpe:2.3:a:gvectors:wpforo_forum:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: gvectors
    product: wpforo_forum
    framework: wordpress
  tags: cve2021,cve,wpscan,wordpress,redirect,gvectors,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/community/?foro=signin&redirect_to=https://interact.sh/"

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