QingScan Reflected Cross-Site Scripting Vulnerability

Vulnerability

A reflected Cross-Site Scripting (XSS) vulnerability has been identified in QingScan versions through 1.8.0. The issue resides in the `/webscan/sqlmap/index.html` endpoint, where improper input sanitization of the `dasta` query parameter allows attackers to inject malicious JavaScript payloads. When a victim accesses a crafted URL with the injected payload, the script executes in the context of the victim's browser.

Impact

Exploitation of this vulnerability allows for the execution of arbitrary JavaScript in the victim's browser. This could lead to session hijacking, unauthorized actions on behalf of the user, data exfiltration, or phishing attacks.

Reproduction

To reproduce this vulnerability, disable URL encoding in the HTTP client, such as Postman. Send a GET request to the vulnerable endpoint with a payload injected into the `dasta` query parameter. The injected payload will be reflected in the DOM without proper encoding, allowing the JavaScript to execute when the corresponding HTML element is interacted with.

Remediation

To address this vulnerability, input should be properly sanitized before being rendered in HTML. Implement output encoding for special characters and enforce URL encoding for incoming requests. Additionally, a strict Content Security Policy (CSP) should be applied to mitigate script execution.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
1.7
exploitability
5.8
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.