santhoshr06 / CxFlowDemo

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

CX Reflected_XSS_All_Clients @ src/main/webapp/login.jsp [master] #47

Open santhoshr06 opened 3 years ago

santhoshr06 commented 3 years ago

Reflected_XSS_All_Clients issue exists @ src/main/webapp/login.jsp in branch 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

Internal 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>

santhoshr06 commented 3 years ago

Issue still exists.

santhoshr06 commented 3 years ago

Issue still exists.

santhoshr06 commented 3 years ago

Issue still exists.

santhoshr06 commented 3 years ago

Issue still exists.

santhoshr06 commented 3 years ago

Issue still exists.

santhoshr06 commented 3 years ago

Issue still exists.

santhoshr06 commented 3 years ago

Issue still exists.

santhoshr06 commented 3 years ago

Issue still exists.

santhoshr06 commented 3 years ago

Issue still exists.

santhoshr06 commented 3 years ago

Issue still exists.

santhoshr06 commented 3 years ago

Issue still exists.

santhoshr06 commented 3 years ago

Issue still exists.