Python: Move LogInjection to new dataflow API

This commit is contained in:
Rasmus Wriedt Larsen
2023-08-25 16:06:08 +02:00
parent 88cf9c99b0
commit f75e65c67d
2 changed files with 18 additions and 5 deletions

View File

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