Python: Move TarSlip to new dataflow API

This commit is contained in:
Rasmus Wriedt Larsen
2023-08-25 15:37:02 +02:00
parent e97032909a
commit d4e4e2d426
2 changed files with 19 additions and 6 deletions

View File

@@ -14,9 +14,9 @@
import python
import semmle.python.security.dataflow.TarSlipQuery
import DataFlow::PathGraph
import TarSlipFlow::PathGraph
from Configuration config, DataFlow::PathNode source, DataFlow::PathNode sink
where config.hasFlowPath(source, sink)
from TarSlipFlow::PathNode source, TarSlipFlow::PathNode sink
where TarSlipFlow::flowPath(source, sink)
select sink.getNode(), source, sink, "This file extraction depends on a $@.", source.getNode(),
"potentially untrusted source"