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.00137
    epss-percentile: 0.48279
    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

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: 490a004630440220210c513d35e61e20ff58b5cd0035629cfc8606dffc895528b2da962e129fa1b50220150066296aa3e0d1aa5ab2717d86c5f46f4884e4b3a95a854377574c49fc196c:922c64590222798bb761d5b6d8e72950