Skip to content

Stored_XSS @ UserDetails.jsp #87

Description

@juegge

Stored_XSS issue exists @ UserDetails.jsp in branch master

The application's UserDetails embeds untrusted data in the generated output with print, at line 16 of /src/main/webapp/vulnerability/UserDetails.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 UserDetails method with rs, at line 13 of /src/main/webapp/vulnerability/UserDetails.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: jvlstuff
Repository: JavaVulnerableLab_for_AST
Repository Url: https://github.com/jvlstuff/JavaVulnerableLab_for_AST
CxAST-Project: jvlstuff/JavaVulnerableLab_for_AST
CxAST platform scan: 0b64039c-d08f-4faa-9e25-fb3006178c74
Branch: master
Application: JavaVulnerableLab_for_AST
Severity: HIGH
State: TO_VERIFY
Status: RECURRENT
CWE: 79
Lines: 13


References
Read more

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions