Skip to content

Stored_XSS @ adminlogin.jsp #101

@mridilla

Description

@mridilla

Stored_XSS issue exists @ adminlogin.jsp in branch master

The application's changeCardDetails embeds untrusted data in the generated output with print, at line 52 of /src/main/webapp/changeCardDetails.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 adminlogin method with rs, at line 19 of /src/main/webapp/admin/adminlogin.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: mridilla
Repository: JavaVulnerableLab
Repository Url: https://github.com/mridilla/JavaVulnerableLab
CxAST-Project: mridilla/JavaVulnerableLab
CxAST platform scan: e1fc43b6-0e4d-4a93-8009-8fe24d4a9091
Branch: master
Application: JavaVulnerableLab
Severity: HIGH
State: TO_VERIFY
Status: RECURRENT
CWE: 79
Lines: 19


References
Read more

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions