Python: Move SqlInjection to new dataflow API

This commit is contained in:
Rasmus Wriedt Larsen
2023-08-25 12:29:44 +02:00
parent 2e981e330b
commit 245c24077d
2 changed files with 17 additions and 4 deletions

View File

@@ -13,9 +13,9 @@
import python
import semmle.python.security.dataflow.SqlInjectionQuery
import DataFlow::PathGraph
import SqlInjectionFlow::PathGraph
from Configuration config, DataFlow::PathNode source, DataFlow::PathNode sink
where config.hasFlowPath(source, sink)
from SqlInjectionFlow::PathNode source, SqlInjectionFlow::PathNode sink
where SqlInjectionFlow::flowPath(source, sink)
select sink.getNode(), source, sink, "This SQL query depends on a $@.", source.getNode(),
"user-provided value"