Skip to content

Commit ba95a9f

Browse files
authored
Merge pull request #159 from SnaffCon/regexfix
fix for #158
2 parents 02c7410 + 0fcfb20 commit ba95a9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Snaffler/SnaffRules/DefaultRules/FileRules/Keep/Code/KeepPassOrKeyInCode.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ WordList = ["passw?o?r?d\\s*=\\s*[\\'\\\"][^\\'\\\"]....",
1010
"api[Kk]ey\\s*=\\s*[\\'\\\"][^\\'\\\"]....",
1111
"passw?o?r?d?>\\s*[^\\s<]+\\s*<",
1212
"passw?o?r?d?>.{3,2000}</pass",
13-
"-passw?o?r?d?",
13+
"[\\s]+-passw?o?r?d?",
1414
"api[kK]ey>\\s*[^\\s<]+\\s*<",
1515
"[_\\-\\.]oauth\\s*=\\s*[\\'\\\"][^\\'\\\"]....",
1616
"client_secret\\s*=*\\s*",

0 commit comments

Comments
 (0)