-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Stored_XSS issue exists @ src/main/webapp/vulnerability/DisplayMessage.jsp in branch master
*The method out.print embeds untrusted data in generated output with print, at line 19 of src\main\webapp\vulnerability\DisplayMessage.jsp. This untrusted data is embedded into the output without proper sanitization or encoding, enabling an attacker to inject malicious code into the generated web-page.The attacker would be able to alter the returned web page by saving malicious data in a data-store ahead of time. The attacker's modified data is then read from the database by the stmt.executeQuery method with rs, at line 16 of src\main\webapp\vulnerability\DisplayMessage.jsp. This untrusted data then flows through the code straight to the output web page, without sanitization. This can enable a Stored Cross-Site Scripting (XSS) attack.Similarity ID: 784283269
The method out.print embeds untrusted data in generated output with print, at line 20 of src\main\webapp\vulnerability\DisplayMessage.jsp. This untrusted data is embedded into the output without proper sanitization or encoding, enabling an attacker to inject malicious code into the generated web-page.The attacker would be able to alter the returned web page by saving malicious data in a data-store ahead of time. The attacker's modified data is then read from the database by the stmt.executeQuery method with rs, at line 16 of src\main\webapp\vulnerability\DisplayMessage.jsp. This untrusted data then flows through the code straight to the output web page, without sanitization. This can enable a Stored Cross-Site Scripting (XSS) attack.Similarity ID: 1253576643
The method out.print embeds untrusted data in generated output with print, at line 21 of src\main\webapp\vulnerability\DisplayMessage.jsp. This untrusted data is embedded into the output without proper sanitization or encoding, enabling an attacker to inject malicious code into the generated web-page.The attacker would be able to alter the returned web page by saving malicious data in a data-store ahead of time. The attacker's modified data is then read from the database by the stmt.executeQuery method with rs, at line 16 of src\main\webapp\vulnerability\DisplayMessage.jsp. This untrusted data then flows through the code straight to the output web page, without sanitization. This can enable a Stored Cross-Site Scripting (XSS) attack.Similarity ID: -1970371859*
Similarity Id: 784283269, 1253576643, -1970371859
Severity: CRITICAL
CWE:79
Lines: 16
rs=stmt.executeQuery("select * from UserMessages where msgid="+request.getParameter("msgid"));