You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The application's Orders_CreateDataSource method executes an SQL query with Fill, at line 304 of /OrdersGrid.cs. 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 ViewState_SortDir; this input is then read by the Orders_CreateDataSource method at line 229 of /OrdersGrid.cs. 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: RECURRENT Attack Vector:
Checkmarx (SAST): SQL_Injection
Security Issue: Read More about SQL_Injection
Applications: test_App
Checkmarx Project: apcxtest/test-repo-pub2
Repository URL: https://github.com/apcxtest/test-repo-pub2
Branch: main
Scan ID: 5072abd4-8e3e-49e3-b1b5-44426e72387c
The application's Orders_CreateDataSource method executes an SQL query with Fill, at line 304 of /OrdersGrid.cs. 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 ViewState_SortDir; this input is then read by the Orders_CreateDataSource method at line 229 of /OrdersGrid.cs. 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: RECURRENT
Attack Vector:
1. ViewState_SortDir: /OrdersGrid.cs[229,99]
2. ToString: /OrdersGrid.cs[229,120]
3. sOrder: /OrdersGrid.cs[229,36]
4. sOrder: /OrdersGrid.cs[289,41]
5. Orders_sSQL: /OrdersGrid.cs[289,4]
6. Orders_sSQL: /OrdersGrid.cs[301,50]
7. OleDbDataAdapter: /OrdersGrid.cs[301,29]
8. command: /OrdersGrid.cs[301,19]
9. command: /OrdersGrid.cs[304,2]
10. Fill: /OrdersGrid.cs[304,10]
Review result in Checkmarx One: SQL_Injection
The text was updated successfully, but these errors were encountered: