semgrep / issue-test

Test landing for semgrep shouldafound issues
0 stars 0 forks source link

ShouldaFound: Possible False Negative in a python file #41

Open shouldafound[bot] opened 1 year ago

shouldafound[bot] commented 1 year ago

Semgrep ShouldaFound reported a possible false negative. The issue is described below:

from https://github.com/anxolerd/dvpwa -- should find sql injection vuln

A playground link was also created for this shouldafound. See here: https://semgrep.dev/s/7LXZ

0xDC0DE commented 1 year ago

Semgrep actually is able to detect this with the rule python.lang.security.audit.formatted-sql-query

0xDC0DE commented 1 year ago

Here is the complete code example https://github.com/anxolerd/dvpwa/blob/a1d8f89fac2e57093189853c6527c2b01fc1d9c1/sqli/dao/student.py#L42