Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL_Injection @ Login.java #3

Open
jbrotsos opened this issue Apr 26, 2022 · 0 comments
Open

SQL_Injection @ Login.java #3

jbrotsos opened this issue Apr 26, 2022 · 0 comments

Comments

@jbrotsos
Copy link
Contributor

SQL_Injection issue exists @ Login.java in branch main

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.

Namespace: James-AST
Repository: astlab
Repository Url: https://github.com/James-AST/astlab
CxAST-Project: James-AST/astlab
CxAST platform scan: 8d73a497-bbc7-4126-b536-ea634bc032dd
Branch: main
Application: astlab
Severity: HIGH
State: TO_VERIFY
Status: RECURRENT
CWE: 89
Lines: 22 23


References
Read more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant