-
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: AsafOrgTesting/FlowListenerPublicRepo
Repository URL: https://github.com/AsafOrgTesting/FlowListenerPublicRepo
Branch: main
Scan ID: 2e34543b-886d-4d6e-a92b-ab98a7cee728
The application's cmdunsafe_click method executes an SQL query with openrecordset, at line 52 of /encode.frm. 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 text; this input is then read by the cmdunsafe_click method at line 42 of /encode.frm. 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: HIGH
State: TO_VERIFY
Status: NEW
Attack Vector:
1. text: /encode.frm[42,27]
2. password: /encode.frm[42,5]
3. password: /encode.frm[47,30]
4. query: /encode.frm[45,5]
5. query: /encode.frm[52,33]
6. openrecordset: /encode.frm[52,18]
Review result in Checkmarx One: SQL_Injection
Result #2:
Severity: HIGH
State: TO_VERIFY
Status: NEW
Attack Vector:
1. text: /encode.frm[41,28]
2. user_name: /encode.frm[41,5]
3. user_name: /encode.frm[46,30]
4. query: /encode.frm[45,5]
5. query: /encode.frm[52,33]
6. openrecordset: /encode.frm[52,18]
Review result in Checkmarx One: SQL_Injection