Donglight Bookstore Cross-Site Scripting Vulnerability

Vulnerability

A reflected cross-site scripting vulnerability has been identified in Donglight Bookstore version 1.0.0. The issue arises in the BookSearchList function within the BookInfoController.java file, where the input parameter 'keywords' is not properly sanitized. This lack of input validation allows remote attackers to inject malicious scripts that are executed in the context of the user's browser.

Impact

Exploitation of this vulnerability allows for reflected cross-site scripting, where an attacker can inject malicious scripts that are executed in the context of the user's browser session.

Reproduction

To reproduce this vulnerability, send a request to the 'book/list' endpoint with the 'keywords' parameter containing a script tag, such as '<script>alert(1)</script>'. The injected script will be executed in the browser, demonstrating the cross-site scripting vulnerability.

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
7.7
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.