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

CX SQL_Injection @ src/main/webapp/vulnerability/sqli/download_id_union.jsp [refs/heads/master] #176

Open
juegge opened this issue Oct 13, 2021 · 6 comments

Comments

@juegge
Copy link

juegge commented Oct 13, 2021

SQL_Injection issue exists @ src/main/webapp/vulnerability/sqli/download_id_union.jsp in branch refs/heads/master

The application's rs=stmt.executeQuery method executes an SQL query with executeQuery, at line 24 of src\main\webapp\vulnerability\sqli\download_id_union.jsp. 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 ""fileid""; this input is then read by the fileid=request.getParameter method at line 18 of src\main\webapp\vulnerability\sqli\download_id_union.jsp. This input then flows through the code, into a query and to the database server - without sanitization.
This may enable an SQL Injection attack.

Severity: High

CWE:89

Vulnerability details and guidance

Checkmarx

Training
Recommended Fix

Lines: 18


Code (Line #18):

    String fileid=request.getParameter("fileid");

@juegge juegge closed this as completed Oct 13, 2021
@juegge juegge reopened this Oct 13, 2021
@juegge
Copy link
Author

juegge commented Oct 13, 2021

Issue still exists.

1 similar comment
@juegge
Copy link
Author

juegge commented Oct 13, 2021

Issue still exists.

@juegge juegge closed this as completed Oct 13, 2021
@juegge
Copy link
Author

juegge commented Feb 16, 2022

Issue still exists.

@juegge juegge reopened this Feb 16, 2022
@juegge juegge closed this as completed Feb 16, 2022
@github-actions
Copy link

Issue still exists.

@github-actions github-actions bot reopened this Feb 17, 2022
@github-actions github-actions bot reopened this Mar 14, 2022
@github-actions
Copy link

Issue still exists.

1 similar comment
@github-actions
Copy link

Issue still exists.

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

No branches or pull requests

1 participant