Checkmarx-jharris / JavaVulnerableLab

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

CX Reflected_XSS_All_Clients @ src/main/webapp/vulnerability/xss/xss4.jsp [master] #80

Open jharriscx opened 3 years ago

jharriscx commented 3 years ago

Reflected_XSS_All_Clients issue exists @ src/main/webapp/vulnerability/xss/xss4.jsp in branch master

The application's <%=keyword%> embeds untrusted data in the generated output with keyword, at line 15 of src\main\webapp\vulnerability\xss\xss4.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 ""keyword"", which is read by the request.getParameter method at line 2 of src\main\webapp\vulnerability\xss\xss4.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: 2


Code (Line #2):

 <% String keyword = request.getParameter("keyword"); %>

jharriscx commented 3 years ago

Issue still exists.

jharriscx commented 3 years ago

Issue still exists.