Skip to content
New issue

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

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

Already on GitHub? # to your account

Second_Order_SQL_Injection @ datacreator.ts #158

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

Second_Order_SQL_Injection @ datacreator.ts #158

westonphillips opened this issue Jun 29, 2023 · 0 comments

Comments

@westonphillips
Copy link
Owner

westonphillips commented Jun 29, 2023

Second_Order_SQL_Injection issue exists @ datacreator.ts in branch main

The application's Lambda method executes an SQL query with index, at line 217 of /data/datacreator.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.

The attacker may be able to write arbitrary data to the database, which is then retrieved by the application with index in Lambda method at line 215 of /data/datacreator.ts. This data then flows through the code, until it is used directly in the SQL query without sanitization, and then submitted to the database server for execution.

This may enable a Second-Order 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: 122 215


References
Read more

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

No branches or pull requests

1 participant