jvlstuff / JavaVulnerableLab

lab
GNU General Public License v2.0
0 stars 1 forks source link

CX Reflected_XSS_All_Clients @ src/main/webapp/vulnerability/Injection/xpath_login.jsp [refs/heads/master] #163

Open juegge opened 2 years ago

juegge commented 2 years ago

Reflected_XSS_All_Clients issue exists @ src/main/webapp/vulnerability/Injection/xpath_login.jsp in branch refs/heads/master

The application's if embeds untrusted data in the generated output with print, at line 9 of src\main\webapp\vulnerability\Injection\xpath_login.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 ""err"", which is read by the if method at line 9 of src\main\webapp\vulnerability\Injection\xpath_login.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

Vulnerability details and guidance

Checkmarx

Training Recommended Fix

Lines: 9


Code (Line #9):

<tr><td></td><td class="fail"><% if(request.getParameter("err")!=null){out.print(request.getParameter("err"));} %></td></tr>

juegge commented 2 years ago

Issue still exists.

juegge commented 2 years ago

Issue still exists.

juegge commented 2 years ago

Issue still exists.

github-actions[bot] commented 2 years ago

Issue still exists.

github-actions[bot] commented 2 years ago

Issue still exists.

github-actions[bot] commented 2 years ago

Issue still exists.