westonphillips / CheckmarxOnePOV

This repo will be used for Checkmarx ONE POV
MIT License
0 stars 0 forks source link

Second_Order_SQL_Injection @ datacreator.ts #158

Open westonphillips opened 1 year ago

westonphillips commented 1 year ago

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