westonphillips / CheckmarxOnePOV

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

SQL_Injection @ search.ts #150

Open westonphillips opened 1 year ago

westonphillips commented 1 year ago

SQL_Injection issue exists @ search.ts in branch main

The application's Lambda method executes an SQL query with query, at line 15 of /routes/search.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 q; this input is then read by the Lambda method at line 13 of /routes/search.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: 13


References Read more