abhishekd07 / JMS_Abhi

0 stars 0 forks source link

CX SQL_Injection @ JMS Code/src/Login.java [master] #13

Open abhishekd07 opened 4 years ago

abhishekd07 commented 4 years ago

SQL_Injection issue exists @ JMS Code/src/Login.java in branch master

The application's actionPerformed method executes an SQL query with executeQuery, at line 121 of JMS Code\src\Login.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 getText; this input is then read by the actionPerformed method at line 109 of JMS Code\src\Login.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.

Severity: High

CWE:89

Checkmarx

Training Recommended Fix

Lines: [109](https://github.com/abhishekd07/JMS_Abhi/blob/master/JMS Code/src/Login.java#L109)


[Code (Line #109):](https://github.com/abhishekd07/JMS_Abhi/blob/master/JMS Code/src/Login.java#L109)

            String SUser = User.getText();

abhishekd07 commented 4 years ago

Issue still exists.

SUMMARY

Issue has 1 vulnerability/vulnerabilities left to be fixed (Please scroll to the top for more information)

abhishekd07 commented 4 years ago

Issue still exists.

SUMMARY

Issue has 1 vulnerability/vulnerabilities left to be fixed (Please scroll to the top for more information)

abhishekd07 commented 3 years ago

Issue still exists.