abhishekd07 / JMS_Abhi

0 stars 0 forks source link

CX SQL_Injection @ JMS Code/src/JobCardView.java [master] #10

Open abhishekd07 opened 3 years ago

abhishekd07 commented 3 years ago

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

The application's actionPerformed method executes an SQL query with executeQuery, at line 110 of JMS Code\src\JobCardView.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 82 of JMS Code\src\JobCardView.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: [82](https://github.com/abhishekd07/JMS_Abhi/blob/master/JMS Code/src/JobCardView.java#L82)


[Code (Line #82):](https://github.com/abhishekd07/JMS_Abhi/blob/master/JMS Code/src/JobCardView.java#L82)

        String str = tf.getText();  

abhishekd07 commented 3 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.

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.