Skip to content

CX SQL_Injection @ src/main/java/org/cysecurity/cspf/jvl/controller/Register.java [master] #24

@cx-mallory-woods

Description

@cx-mallory-woods

SQL_Injection issue exists @ src/main/java/org/cysecurity/cspf/jvl/controller/Register.java in branch master

*The application's processRequest method executes an SQL query with executeUpdate, at line 58 of src\main\java\org\cysecurity\cspf\jvl\controller\Register.java. 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 ""username""; this input is then read by the processRequest method at line 43 of src\main\java\org\cysecurity\cspf\jvl\controller\Register.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.Similarity ID: -523716004

The application's processRequest method executes an SQL query with executeUpdate, at line 59 of src\main\java\org\cysecurity\cspf\jvl\controller\Register.java. 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 ""username""; this input is then read by the processRequest method at line 43 of src\main\java\org\cysecurity\cspf\jvl\controller\Register.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.Similarity ID: 1502847667

The application's processRequest method executes an SQL query with executeUpdate, at line 58 of src\main\java\org\cysecurity\cspf\jvl\controller\Register.java. 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\Register.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.Similarity ID: 292546708

The application's processRequest method executes an SQL query with executeUpdate, at line 58 of src\main\java\org\cysecurity\cspf\jvl\controller\Register.java. 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 ""email""; this input is then read by the processRequest method at line 45 of src\main\java\org\cysecurity\cspf\jvl\controller\Register.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.Similarity ID: 1245320624

The application's processRequest method executes an SQL query with executeUpdate, at line 58 of src\main\java\org\cysecurity\cspf\jvl\controller\Register.java. 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 ""About""; this input is then read by the processRequest method at line 46 of src\main\java\org\cysecurity\cspf\jvl\controller\Register.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.Similarity ID: 302318066

The application's processRequest method executes an SQL query with executeUpdate, at line 58 of src\main\java\org\cysecurity\cspf\jvl\controller\Register.java. 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 ""secret""; this input is then read by the processRequest method at line 47 of src\main\java\org\cysecurity\cspf\jvl\controller\Register.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.Similarity ID: 164571242*

Similarity Id: -523716004, 1502847667, 292546708, 1245320624, 302318066, 164571242

Severity: CRITICAL

CWE:89

Checkmarx

Recommended Fix

Lines: 43 44 45 46 47


Code (Line #43):

String user=request.getParameter("username");

Code (Line #44):

String pass=request.getParameter("password");

Code (Line #45):

String email=request.getParameter("email");

Code (Line #46):

String about=request.getParameter("About");

Code (Line #47):

String secret=request.getParameter("secret");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions