Skip to content

Commit f8659c0

Browse files
committed
Sync identical files.
1 parent 9a8a852 commit f8659c0

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

javascript/ql/lib/semmle/javascript/security/internal/SensitiveDataHeuristics.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module HeuristicNames {
6262
*/
6363
string maybeAccountInfo() {
6464
result = "(?is).*acc(ou)?nt.*" or
65-
result = "(?is).*(puid|username|userid|session(id|key)).*" or
65+
result = "(?is).*(puid|user.?name|user.?id|session.?(id|key)).*" or
6666
result = "(?s).*([uU]|^|_|[a-z](?=U))([uU][iI][dD]).*"
6767
}
6868

@@ -71,8 +71,8 @@ module HeuristicNames {
7171
* a password or an authorization key.
7272
*/
7373
string maybePassword() {
74-
result = "(?is).*pass(wd|word|code|phrase)(?!.*question).*" or
75-
result = "(?is).*(auth(entication|ori[sz]ation)?)key.*"
74+
result = "(?is).*pass(wd|word|code|.?phrase)(?!.*question).*" or
75+
result = "(?is).*(auth(entication|ori[sz]ation)?).?key.*"
7676
}
7777

7878
/**

python/ql/lib/semmle/python/security/internal/SensitiveDataHeuristics.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module HeuristicNames {
6262
*/
6363
string maybeAccountInfo() {
6464
result = "(?is).*acc(ou)?nt.*" or
65-
result = "(?is).*(puid|username|userid|session(id|key)).*" or
65+
result = "(?is).*(puid|user.?name|user.?id|session.?(id|key)).*" or
6666
result = "(?s).*([uU]|^|_|[a-z](?=U))([uU][iI][dD]).*"
6767
}
6868

@@ -71,8 +71,8 @@ module HeuristicNames {
7171
* a password or an authorization key.
7272
*/
7373
string maybePassword() {
74-
result = "(?is).*pass(wd|word|code|phrase)(?!.*question).*" or
75-
result = "(?is).*(auth(entication|ori[sz]ation)?)key.*"
74+
result = "(?is).*pass(wd|word|code|.?phrase)(?!.*question).*" or
75+
result = "(?is).*(auth(entication|ori[sz]ation)?).?key.*"
7676
}
7777

7878
/**

ruby/ql/lib/codeql/ruby/security/internal/SensitiveDataHeuristics.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module HeuristicNames {
6262
*/
6363
string maybeAccountInfo() {
6464
result = "(?is).*acc(ou)?nt.*" or
65-
result = "(?is).*(puid|username|userid|session(id|key)).*" or
65+
result = "(?is).*(puid|user.?name|user.?id|session.?(id|key)).*" or
6666
result = "(?s).*([uU]|^|_|[a-z](?=U))([uU][iI][dD]).*"
6767
}
6868

@@ -71,8 +71,8 @@ module HeuristicNames {
7171
* a password or an authorization key.
7272
*/
7373
string maybePassword() {
74-
result = "(?is).*pass(wd|word|code|phrase)(?!.*question).*" or
75-
result = "(?is).*(auth(entication|ori[sz]ation)?)key.*"
74+
result = "(?is).*pass(wd|word|code|.?phrase)(?!.*question).*" or
75+
result = "(?is).*(auth(entication|ori[sz]ation)?).?key.*"
7676
}
7777

7878
/**

swift/ql/lib/codeql/swift/security/internal/SensitiveDataHeuristics.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module HeuristicNames {
6262
*/
6363
string maybeAccountInfo() {
6464
result = "(?is).*acc(ou)?nt.*" or
65-
result = "(?is).*(puid|username|userid|session(id|key)).*" or
65+
result = "(?is).*(puid|user.?name|user.?id|session.?(id|key)).*" or
6666
result = "(?s).*([uU]|^|_|[a-z](?=U))([uU][iI][dD]).*"
6767
}
6868

@@ -71,8 +71,8 @@ module HeuristicNames {
7171
* a password or an authorization key.
7272
*/
7373
string maybePassword() {
74-
result = "(?is).*pass(wd|word|code|phrase)(?!.*question).*" or
75-
result = "(?is).*(auth(entication|ori[sz]ation)?)key.*"
74+
result = "(?is).*pass(wd|word|code|.?phrase)(?!.*question).*" or
75+
result = "(?is).*(auth(entication|ori[sz]ation)?).?key.*"
7676
}
7777

7878
/**

0 commit comments

Comments
 (0)