smmclaughlin / CxFlowBodgeit

0 stars 0 forks source link

CX Reflected_XSS_All_Clients @ root/search.jsp [master] #25

Open smmclaughlin opened 2 years ago

smmclaughlin commented 2 years ago

Reflected_XSS_All_Clients issue exists @ root/search.jsp in branch master

The application's %><br/><br/> embeds untrusted data in the generated output with query, at line 18 of root\search.jsp. 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 ""q"", which is read by the = method at line 10 of root\search.jsp. 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.

Severity: High

CWE:79

Checkmarx

Training Recommended Fix

Lines: 10


Code (Line #10):

String query = (String) request.getParameter("q");

smmclaughlin commented 2 years ago

Issue still exists.