Python: Move PathInjection to new dataflow API

This commit is contained in:
Rasmus Wriedt Larsen
2023-08-25 15:34:51 +02:00
parent 245c24077d
commit e97032909a
3 changed files with 61 additions and 6 deletions

View File

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