update {cs/java}/regex-injection to match javascript

This commit is contained in:
erik-krogh
2022-08-11 14:46:12 +02:00
parent 0ac8b7ce65
commit e52fa9a469
2 changed files with 4 additions and 4 deletions

View File

@@ -85,5 +85,5 @@ class RegexInjectionConfiguration extends TaintTracking::Configuration {
from DataFlow::PathNode source, DataFlow::PathNode sink, RegexInjectionConfiguration c
where c.hasFlowPath(source, sink)
select sink.getNode(), source, sink, "$@ is user controlled.", source.getNode(),
"This regular expression pattern"
select sink.getNode(), source, sink, "This regular expression is constructed from a $@.",
source.getNode(), "user-provided value"