id: CVE-2021-39501

info:
  name: EyouCMS 1.5.4 Open Redirect
  author: 0x_Akoko
  severity: medium
  description: EyouCMS 1.5.4 is vulnerable to an Open Redirect vulnerability. An attacker can redirect a user to a malicious url via the Logout function.
  impact: |
    Successful exploitation of this vulnerability could lead to phishing attacks, credential theft,.
  remediation: |
    Apply the latest security patch or upgrade to a newer version of EyouCMS to mitigate the vulnerability.
  reference:
    - https://github.com/eyoucms/eyoucms/issues/17
    - https://github.com/KietNA-HPT/CVE
    - https://nvd.nist.gov/vuln/detail/CVE-2021-39501
    - https://github.com/ARPSyndicate/kenzer-templates
    - 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-2021-39501
    cwe-id: CWE-601
    epss-score: 0.03409
    epss-percentile: 0.8732
    cpe: cpe:2.3:a:eyoucms:eyoucms:1.5.4:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: eyoucms
    product: eyoucms
    fofa-query: title="eyoucms"
  tags: cve2021,cve,redirect,eyoucms,cms,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/index.php?m=user&c=Users&a=logout&referurl=https://interact.sh'

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