-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Checkmarx (SAST): SQL_Injection
Security Issue: Read More about SQL_Injection
Checkmarx Project: cx-boris-goman/borJavaVul
Repository URL: https://github.com/cx-boris-goman/borJavaVul
Branch: main
Scan ID: df63710a-c9c2-4406-9ad7-319bd05458a4
The application's dailypassword method executes an SQL query with execute, at line 29 of /ReturnSevered1.bas. 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 inputbox; this input is then read by the dailypassword method at line 22 of /ReturnSevered1.bas. This input then flows through the code, into a query and to the database server - without sanitization.
This may enable an SQL Injection attack.
Result 1:
Severity: CRITICAL
State: TO_VERIFY
Status: RECURRENT
Attack Vector:
1. inputbox: /ReturnSevered1.bas[22,6]
2. t: /ReturnSevered1.bas[22,2]
3. t: /ReturnSevered1.bas[29,14]
4. execute: /ReturnSevered1.bas[29,5]
Review result in Checkmarx One: SQL_Injection