Python: Port py/command-line-injection to use proper source/sink customization

This commit is contained in:
Rasmus Wriedt Larsen
2021-07-02 14:51:50 +02:00
parent 7f53781ba7
commit 62e4445f45
3 changed files with 117 additions and 44 deletions

View File

@@ -19,7 +19,7 @@ import python
import semmle.python.security.dataflow.CommandInjection
import DataFlow::PathGraph
from CommandInjectionConfiguration config, DataFlow::PathNode source, DataFlow::PathNode sink
from CommandInjection::Configuration config, DataFlow::PathNode source, DataFlow::PathNode sink
where config.hasFlowPath(source, sink)
select sink.getNode(), source, sink, "This command depends on $@.", source.getNode(),
"a user-provided value"