File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed
javascript/ql/lib/semmle/javascript/security/internal
python/ql/lib/semmle/python/security/internal
ruby/ql/lib/codeql/ruby/security/internal
swift/ql/lib/codeql/swift/security/internal Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ module HeuristicNames {
62
62
*/
63
63
string maybeAccountInfo ( ) {
64
64
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
66
66
result = "(?s).*([uU]|^|_|[a-z](?=U))([uU][iI][dD]).*"
67
67
}
68
68
@@ -71,8 +71,8 @@ module HeuristicNames {
71
71
* a password or an authorization key.
72
72
*/
73
73
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.*"
76
76
}
77
77
78
78
/**
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ module HeuristicNames {
62
62
*/
63
63
string maybeAccountInfo ( ) {
64
64
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
66
66
result = "(?s).*([uU]|^|_|[a-z](?=U))([uU][iI][dD]).*"
67
67
}
68
68
@@ -71,8 +71,8 @@ module HeuristicNames {
71
71
* a password or an authorization key.
72
72
*/
73
73
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.*"
76
76
}
77
77
78
78
/**
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ module HeuristicNames {
62
62
*/
63
63
string maybeAccountInfo ( ) {
64
64
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
66
66
result = "(?s).*([uU]|^|_|[a-z](?=U))([uU][iI][dD]).*"
67
67
}
68
68
@@ -71,8 +71,8 @@ module HeuristicNames {
71
71
* a password or an authorization key.
72
72
*/
73
73
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.*"
76
76
}
77
77
78
78
/**
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ module HeuristicNames {
62
62
*/
63
63
string maybeAccountInfo ( ) {
64
64
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
66
66
result = "(?s).*([uU]|^|_|[a-z](?=U))([uU][iI][dD]).*"
67
67
}
68
68
@@ -71,8 +71,8 @@ module HeuristicNames {
71
71
* a password or an authorization key.
72
72
*/
73
73
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.*"
76
76
}
77
77
78
78
/**
You can’t perform that action at this time.
0 commit comments