id: CVE-2022-32444

info:
  name: u5cms v8.3.5 - Open Redirect
  author: 0x_Akoko
  severity: medium
  description: |
    u5cms version 8.3.5 contains a URL redirection vulnerability that can cause a user's browser to be redirected to another site via /loginsave.php.
  impact: |
    An attacker can exploit this vulnerability to redirect users to malicious websites, leading to phishing attacks.
  remediation: |
    Apply the latest patch or update to a version that has fixed this vulnerability.
  reference:
    - https://github.com/u5cms/u5cms/issues/50
    - https://nvd.nist.gov/vuln/detail/CVE-2022-32444
  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-2022-32444
    cwe-id: CWE-601
    epss-score: 0.00237
    epss-percentile: 0.61804
    cpe: cpe:2.3:a:yuba:u5cms:8.3.5:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: yuba
    product: u5cms
  tags: cve,cve2022,redirect,u5cms,cms,yuba

http:
  - method: GET
    path:
      - '{{BaseURL}}/loginsave.php?u=http://interact.sh'

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