Python: Move Xxe to new dataflow API

This commit is contained in:
Rasmus Wriedt Larsen
2023-08-25 16:29:01 +02:00
parent 4c76ca6127
commit 60e45335dd
2 changed files with 17 additions and 4 deletions

View File

@@ -14,10 +14,10 @@
import python
import semmle.python.security.dataflow.XxeQuery
import DataFlow::PathGraph
import XxeFlow::PathGraph
from Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode sink
where cfg.hasFlowPath(source, sink)
from XxeFlow::PathNode source, XxeFlow::PathNode sink
where XxeFlow::flowPath(source, sink)
select sink.getNode(), source, sink,
"XML parsing depends on a $@ without guarding against external entity expansion.",
source.getNode(), "user-provided value"