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 main method executes an SQL query with executeQuery, at line 33 of /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 ""email""; this input is then read by the main method at line 22 of /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.
Result #1: Severity: MEDIUM State: TO_VERIFY Status: RECURRENT Attack Vector:
Checkmarx (SAST): SQL_Injection
Security Issue: Read More about SQL_Injection
Applications: Sangeetha
Checkmarx Project: Sang140790/astlab2
Repository URL: https://github.com/Sang140790/astlab2
Branch: main
Scan ID: 1a8a6b7c-4c31-4214-aa52-fde10d2b497e
The application's main method executes an SQL query with executeQuery, at line 33 of /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 ""email""; this input is then read by the main method at line 22 of /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.
Result #1:
Severity: MEDIUM
State: TO_VERIFY
Status: RECURRENT
Attack Vector:
1. ""email"": /src/Login.java[22,49]
2. getParameter: /src/Login.java[22,48]
3. email: /src/Login.java[22,20]
4. email: /src/Login.java[25,66]
5. sql: /src/Login.java[25,20]
6. sql: /src/Login.java[33,59]
7. executeQuery: /src/Login.java[33,58]
Review result in Checkmarx One: SQL_Injection
Result #2:
Severity: HIGH
State: TO_VERIFY
Status: RECURRENT
Attack Vector:
1. ""password"": /src/Login.java[23,49]
2. getParameter: /src/Login.java[23,48]
3. token: /src/Login.java[23,20]
4. token: /src/Login.java[25,95]
5. sql: /src/Login.java[25,20]
6. sql: /src/Login.java[33,59]
7. executeQuery: /src/Login.java[33,58]
Review result in Checkmarx One: SQL_Injection
The text was updated successfully, but these errors were encountered: