-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Stored_XSS issue exists @ src/main/webapp/ForgotPassword.jsp in branch master
The method out.print embeds untrusted data in generated output with print, at line 44 of src\main\webapp\ForgotPassword.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 42 of src\main\webapp\ForgotPassword.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: 107680293
Similarity Id: 107680293
Severity: CRITICAL
CWE:79
Lines: 42
rs=stmt.executeQuery("select * from users where username='"+request.getParameter("username").trim()+"' and secret='"+request.getParameter("secret")+"'");