Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e52fa9a

Browse files
committed
update {cs/java}/regex-injection to match javascript
1 parent 0ac8b7c commit e52fa9a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

csharp/ql/src/Security Features/CWE-730/RegexInjection.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ where
2323
c.hasFlowPath(source, sink) and
2424
// No global timeout set
2525
not exists(RegexGlobalTimeout r)
26-
select sink.getNode(), source, sink, "$@ flows to the construction of a regular expression.",
27-
source.getNode(), "User-provided value"
26+
select sink.getNode(), source, sink, "This regular expression is constructed from a $@.",
27+
source.getNode(), "user-provided value"

java/ql/src/experimental/Security/CWE/CWE-730/RegexInjection.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,5 @@ class RegexInjectionConfiguration extends TaintTracking::Configuration {
8585

8686
from DataFlow::PathNode source, DataFlow::PathNode sink, RegexInjectionConfiguration c
8787
where c.hasFlowPath(source, sink)
88-
select sink.getNode(), source, sink, "$@ is user controlled.", source.getNode(),
89-
"This regular expression pattern"
88+
select sink.getNode(), source, sink, "This regular expression is constructed from a $@.",
89+
source.getNode(), "user-provided value"

0 commit comments

Comments
 (0)