Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stored_XSS @ ForgotPassword.jsp #62

Open
TaynaCT opened this issue Apr 13, 2022 · 0 comments
Open

Stored_XSS @ ForgotPassword.jsp #62

TaynaCT opened this issue Apr 13, 2022 · 0 comments

Comments

@TaynaCT
Copy link
Owner

TaynaCT commented Apr 13, 2022

Stored_XSS issue exists @ ForgotPassword.jsp in branch netbeans

The application's ForgotPassword embeds untrusted data in the generated output with print, at line 44 of /web/ForgotPassword.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 saving malicious data in a data-store ahead of time. The attacker's modified data is then read from the database by the ForgotPassword method with rs, at line 42 of /web/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.

Namespace: TaynaCT
Repository: JavaVulnerableLab
Repository Url: https://github.com/TaynaCT/JavaVulnerableLab
CxAST-Project: TaynaCT/JavaVulnerableLab
CxAST platform scan: ec6e1015-2689-4742-939a-0072f10bf172
Branch: netbeans
Application: JavaVulnerableLab
Severity: HIGH
State: TO_VERIFY
Status: RECURRENT
CWE: 79
Lines: 42


References
Read more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant