SQL_Injection issue exists @ LoginValidator.java in branch master
The application's changepassword method executes an SQL query with executeUpdate, at line 40 of /src/main/webapp/vulnerability/csrf/changepassword.jsp. The application constructs this SQL query by embedding an untrusted string into the query without proper sanitization. The concatenated string is submitted to the database, where it is parsed and executed accordingly.
An attacker would be able to inject arbitrary syntax and data into the SQL query, by crafting a malicious payload and providing it via the input ""password""; this input is then read by the processRequest method at line 44 of /src/main/java/org/cysecurity/cspf/jvl/controller/LoginValidator.java. This input then flows through the code, into a query and to the database server - without sanitization.
This may enable an SQL Injection 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: 89
Lines: 43 44
References
Read more
SQL_Injection issue exists @ LoginValidator.java in branch master
The application's changepassword method executes an SQL query with executeUpdate, at line 40 of /src/main/webapp/vulnerability/csrf/changepassword.jsp. The application constructs this SQL query by embedding an untrusted string into the query without proper sanitization. The concatenated string is submitted to the database, where it is parsed and executed accordingly.
An attacker would be able to inject arbitrary syntax and data into the SQL query, by crafting a malicious payload and providing it via the input ""password""; this input is then read by the processRequest method at line 44 of /src/main/java/org/cysecurity/cspf/jvl/controller/LoginValidator.java. This input then flows through the code, into a query and to the database server - without sanitization.
This may enable an SQL Injection 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: 89
Lines: 43 44
References
Read more