CX Reflected_XSS_All_Clients @ src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02493.java [main]
Reflected_XSS_All_Clients issue exists @ src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02493.java in branch main
The application's doPost embeds untrusted data in the generated output with write, at line 54 of src\main\java\org\owasp\benchmark\testcode\BenchmarkTest02493.java. This untrusted data is embedded straight into the output without proper sanitization or encoding, enabling an attacker to inject malicious code into the output. The attacker would be able to alter the returned web page by simply providing modified data in the user input getParameterValues, which is read by the doPost method at line 43 of src\main\java\org\owasp\benchmark\testcode\BenchmarkTest02493.java. This input then flows through the code straight to the output web page, without sanitization. This can enable a Reflected Cross-Site Scripting (XSS) attack. Similarity ID: -875286645
Severity: High
CWE:79
Vulnerability details and guidance
Lines: 43
String[] values = request.getParameterValues("BenchmarkTest02493");