jvlstuff / Cx-JVL

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

CX Reflected_XSS_All_Clients @ src/main/webapp/login.jsp [refs/heads/master] #21

Closed github-actions[bot] closed 3 years ago

github-actions[bot] commented 3 years ago

Reflected_XSS_All_Clients issue exists @ src/main/webapp/login.jsp in branch refs/heads/master

The application's if embeds untrusted data in the generated output with print, at line 26 of src\main\webapp\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 26 of src\main\webapp\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: 7 26


Code (Line #7):

 Cookie[] cookies = request.getCookies();

Code (Line #26):

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