Python: Move UrlRedirect to new dataflow API

This commit is contained in:
Rasmus Wriedt Larsen
2023-08-25 16:27:55 +02:00
parent 6f08e73dbc
commit 4c76ca6127
2 changed files with 17 additions and 4 deletions

View File

@@ -14,9 +14,9 @@
import python
import semmle.python.security.dataflow.UrlRedirectQuery
import DataFlow::PathGraph
import UrlRedirectFlow::PathGraph
from Configuration config, DataFlow::PathNode source, DataFlow::PathNode sink
where config.hasFlowPath(source, sink)
from UrlRedirectFlow::PathNode source, UrlRedirectFlow::PathNode sink
where UrlRedirectFlow::flowPath(source, sink)
select sink.getNode(), source, sink, "Untrusted URL redirection depends on a $@.", source.getNode(),
"user-provided value"