JS: now RegExp with unknown flags is not flagged as an issue within password Clear text storage of sensitive information

This commit is contained in:
Napalys
2024-11-27 17:14:10 +01:00
parent a2c46749c6
commit e673348ed3
3 changed files with 2 additions and 11 deletions

View File

@@ -36,7 +36,7 @@ module CleartextLogging {
*/
class MaskingReplacer extends Barrier, StringReplaceCall {
MaskingReplacer() {
this.isGlobal() and
this.maybeGlobal() and
exists(this.getRawReplacement().getStringValue()) and
exists(DataFlow::RegExpCreationNode regexpObj |
this.(StringReplaceCall).getRegExp() = regexpObj and