id: CVE-2020-22840

info:
  name: b2evolution CMS <6.11.6 - Open Redirect
  author: geeknik
  severity: medium
  description: b2evolution CMS before 6.11.6 contains an open redirect vulnerability via the redirect_to parameter in email_passthrough.php. An attacker can redirect a user to a malicious site and possibly obtain sensitive information, modify data, and/or execute unauthorized operations.
  impact: |
    This vulnerability can be exploited by attackers to trick users into visiting malicious websites, potentially leading to phishing attacks, malware infections, or unauthorized access to sensitive information.
  remediation: |
    Upgrade b2evolution CMS to version 6.11.6 or later to mitigate the open redirect vulnerability (CVE-2020-22840).
  reference:
    - https://github.com/b2evolution/b2evolution/issues/102
    - http://packetstormsecurity.com/files/161362/b2evolution-CMS-6.11.6-Open-Redirection.html
    - https://www.exploit-db.com/exploits/49554
    - https://nvd.nist.gov/vuln/detail/CVE-2020-22840
    - https://github.com/ARPSyndicate/cvemon
  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-2020-22840
    cwe-id: CWE-601
    epss-score: 0.42697
    epss-percentile: 0.97526
    cpe: cpe:2.3:a:b2evolution:b2evolution:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: b2evolution
    product: b2evolution
  tags: cve,cve2020,packetstorm,edb,redirect,b2evolution,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/email_passthrough.php?email_ID=1&type=link&email_key=5QImTaEHxmAzNYyYvENAtYHsFu7fyotR&redirect_to=http%3A%2F%2Finteract.sh"

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