sunkaifei FlyCMS User Login Cross-Site Scripting Vulnerability

Vulnerability

A cross-site scripting (XSS) vulnerability has been identified in sunkaifei FlyCMS versions prior to abbaa5a8daefb146ad4d61027035026b052cb414. The issue arises in the userLogin function of the UserController.java file, where the redirectUrl parameter is not properly sanitized before being outputted. This flaw allows remote attackers to execute XSS attacks, potentially leading to the theft of user credentials.

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.

Reproduction

To reproduce this vulnerability, send a GET request to the /login endpoint with a crafted redirectUrl parameter that includes a script payload. The application will reflect the unsanitized input, executing the script in the user's browser.

Added: Dec 26, 2025, 2:18 AM
Updated: Dec 26, 2025, 2:18 AM

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
1.7
exploitability
7.9
remediation
0.0
relevance
1.7
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.