cx-scord / CxFlowGithub

CxFlow Demo
0 stars 1 forks source link

CX Second_Order_SQL_Injection @ root/login.jsp [master] #92

Closed cx-scord closed 3 years ago

cx-scord commented 3 years ago

Second_Order_SQL_Injection issue exists @ root/login.jsp in branch master

The application's stmt.executeQuery method executes an SQL query with BinaryExpr, at line 24 of root\password.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. The attacker may be able to write arbitrary data to the database, which is then retrieved by the application with executeQuery in stmt.executeQuery method at line 15 of root\login.jsp. This data then flows through the code, until it is used directly in the SQL query without sanitization, and then submitted to the database server for execution. This may enable a Second-Order SQL Injection attack.

Severity: High

CWE:89

Vulnerability details and guidance

Internal Guidance

Checkmarx

Training Recommended Fix

Lines: 15


Code (Line #15):

        rs = stmt.executeQuery("SELECT * FROM Users WHERE (name = '" + username + "' AND password = '" + password + "')");

cx-scord commented 3 years ago

Issue still exists.

cx-scord commented 3 years ago

Issue still exists.

cx-scord commented 3 years ago

Issue still exists.

cx-scord commented 3 years ago

Issue still exists.

cx-scord commented 3 years ago

Issue still exists.

cx-scord commented 3 years ago

Issue still exists.

cx-scord commented 3 years ago

Issue still exists.

cx-scord commented 3 years ago

Issue still exists.

cx-scord commented 3 years ago

Issue still exists.

cx-scord commented 3 years ago

Issue still exists.

cx-scord commented 3 years ago

Issue still exists.

cx-scord commented 3 years ago

Issue still exists.