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
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/Sharpforce/cybersecurity
  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.03761
    epss-percentile: 0.88192
    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,vuln

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: 4b0a00483046022100d1cab91e3dbc969081db20c8133d96f2a4bb100d233f5abbf75ea5ac02775f0b022100acc880764868167a459af3d59514827ef37b96e4682e496f81cddf9b82ca7093:922c64590222798bb761d5b6d8e72950