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 {
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 /**
Original file line number Diff line number Diff 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 /**
Original file line number Diff line number Diff 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 /**
Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments