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 @ dataExport.ts #164

Open
westonphillips opened this issue Jun 29, 2023 · 0 comments
Open

SQL_Injection @ dataExport.ts #164

westonphillips opened this issue Jun 29, 2023 · 0 comments

Comments

@westonphillips
Copy link
Owner

westonphillips commented Jun 29, 2023

SQL_Injection issue exists @ dataExport.ts in branch main

The application's Lambda method executes an SQL query with get, at line 30 of /routes/dataExport.ts. 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 get; this input is then read by the Lambda method at line 30 of /routes/dataExport.ts. 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: westonphillips
Repository: CheckmarxOnePOV
Repository Url: https://github.com/westonphillips/CheckmarxOnePOV
CxAST-Project: westonphillips/CheckmarxOnePOV
CxAST platform scan: 6a8170d0-38fa-4efc-81df-42628474102c
Branch: main
Application: CheckmarxOnePOV
Severity: HIGH
State: TO_VERIFY
Status: RECURRENT
CWE: 89
Lines: 14 30


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