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

XPath_Injection @ XPathQuery.java #51

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

XPath_Injection @ XPathQuery.java #51

TaynaCT opened this issue Apr 13, 2022 · 0 comments

Comments

@TaynaCT
Copy link
Owner

TaynaCT commented Apr 13, 2022

XPath_Injection issue exists @ XPathQuery.java in branch netbeans

The application's processRequest method constructs an XPath query, for navigating an XML document. The XPath query is created with compile, at line 53 of /src/java/controller/XPathQuery.java, using an untrusted string embedded in the expression.  

This may enable an attacker to modify the XPath expression, leading to an XPath Injection attack.

The attacker may be able to inject the modified XPath expression via user input, ""password"", which is retrieved by the application in the processRequest method, at line 36 of /src/java/controller/XPathQuery.java. This value then flows through the code to compile, as noted.

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: 643
Lines: 35 36


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