Python: Move CodeInjection to new dataflow API

This commit is contained in:
Rasmus Wriedt Larsen
2023-08-25 16:05:10 +02:00
parent 05573904a5
commit 88cf9c99b0
2 changed files with 17 additions and 4 deletions

View File

@@ -16,9 +16,9 @@
import python
import semmle.python.security.dataflow.CodeInjectionQuery
import DataFlow::PathGraph
import CodeInjectionFlow::PathGraph
from Configuration config, DataFlow::PathNode source, DataFlow::PathNode sink
where config.hasFlowPath(source, sink)
from CodeInjectionFlow::PathNode source, CodeInjectionFlow::PathNode sink
where CodeInjectionFlow::flowPath(source, sink)
select sink.getNode(), source, sink, "This code execution depends on a $@.", source.getNode(),
"user-provided value"