JS: Now unknown flags are not flagged in taint paths

This commit is contained in:
Napalys
2024-11-26 14:20:04 +01:00
parent eca7a88615
commit 23b18aeca9
3 changed files with 1 additions and 84 deletions

View File

@@ -223,7 +223,7 @@ module TaintedPath {
output = this and
not exists(DataFlow::RegExpCreationNode regexp, RegExpTerm term |
this.(StringReplaceCall).getRegExp() = regexp and
this.(StringReplaceCall).isGlobal() and
this.(StringReplaceCall).maybeGlobal() and
regexp.getRoot() = term
|
term.getAMatchedString() = "/" or