File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
rust/ql/lib/codeql/rust/security/internal Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -63,8 +63,7 @@ module HeuristicNames {
63
63
* user names or other account information.
64
64
*/
65
65
string maybeAccountInfo ( ) {
66
- result = "(?is).*acc(ou)?nt.*" or
67
- result = "(?is).*(puid|user.?name|user.?id|session.?(id|key)).*" or
66
+ result = "(?is).*(acc(ou)?nt|puid|user.?(name|id)|session.?(id|key)).*" or
68
67
result = "(?s).*([uU]|^|_|[a-z](?=U))([uU][iI][dD]).*"
69
68
}
70
69
@@ -73,11 +72,9 @@ module HeuristicNames {
73
72
* a password or an authorization key.
74
73
*/
75
74
string maybePassword ( ) {
76
- result = "(?is).*pass(wd|word|code|.?phrase)(?!.*question).*" or
77
- result = "(?is).*(auth(entication|ori[sz]ation)?).?key.*" or
78
- result = "(?is).*([_-]|\\b)mfa([_-]|\\b).*" or
79
- result = "(?is).*oauth.*" or
80
- result = "(?is).*api.?(key|token).*"
75
+ result =
76
+ "(?is).*(pass(wd|word|code|.?phrase)(?!.*question)|(auth(entication|ori[sz]ation)?).?key|oauth|"
77
+ + "api.?(key|token)|([_-]|\\b)mfa([_-]|\\b)).*"
81
78
}
82
79
83
80
/**
You can’t perform that action at this time.
0 commit comments