Python: Fix errors introduced during port

testing on a database helps..
This commit is contained in:
Rasmus Lerchedahl Petersen
2021-09-14 13:08:21 +02:00
parent 6c82daef3d
commit abbd1d1dc5
2 changed files with 13 additions and 6 deletions

View File

@@ -13,16 +13,16 @@
// determine precision above
import python
private import semmle.python.Concepts
import semmle.python.security.injection.RegexInjection
import DataFlow::PathGraph
from
RegexInjection::Configuration config, DataFlow::PathNode source, DataFlow::PathNode sink,
RegexInjection::Sink regexInjectionSink
RegexExecution regexExecution
where
config.hasFlowPath(source, sink) and
regexInjectionSink = sink.getNode()
regexExecution = sink.getNode().(RegexInjection::Sink).getRegexExecution()
select sink.getNode(), source, sink,
"$@ regular expression is constructed from a $@ and executed by $@.",
regexInjectionSink.getRegexNode(), "This", source.getNode(), "user-provided value",
regexInjectionSink, regexInjectionSink.getName()
"$@ regular expression is constructed from a $@ and executed by $@.", sink.getNode(), "This",
source.getNode(), "user-provided value", regexExecution, regexExecution.getName()