mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Update to-cast sink's naming
Signed-off-by: jorgectf <jorgectf@protonmail.com>
This commit is contained in:
@@ -18,12 +18,12 @@ import DataFlow::PathGraph
|
||||
|
||||
from
|
||||
RegexInjectionFlowConfig config, DataFlow::PathNode source, DataFlow::PathNode sink,
|
||||
RegexInjectionSink castedSink, Attribute methodAttribute
|
||||
RegexInjectionSink regexInjectionSink, Attribute methodAttribute
|
||||
where
|
||||
config.hasFlowPath(source, sink) and
|
||||
castedSink = sink.getNode() and
|
||||
methodAttribute = castedSink.getRegexMethod()
|
||||
regexInjectionSink = sink.getNode() and
|
||||
methodAttribute = regexInjectionSink.getRegexMethod()
|
||||
select sink.getNode(), source, sink,
|
||||
"$@ regular expression is constructed from a $@ and executed by $@.", sink.getNode(), "This",
|
||||
source.getNode(), "user-provided value", methodAttribute,
|
||||
castedSink.getRegexModule() + "." + methodAttribute.getName()
|
||||
regexInjectionSink.getRegexModule() + "." + methodAttribute.getName()
|
||||
|
||||
Reference in New Issue
Block a user