-
Notifications
You must be signed in to change notification settings - Fork 0
SQL_Injection @ LoginValidator.java #60
Description
SQL_Injection issue exists @ LoginValidator.java in branch netbeans
The application's changeinfo method executes an SQL query with executeUpdate, at line 31 of /web/vulnerability/csrf/change-info.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/java/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: 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: 89
Lines: 43 44
References
Read more