Skip to content

Commit 4dde1fb

Browse files
committed
Only check strings of length <= 100 for dummy password with <= 2 unique characters
1 parent dcc2b2c commit 4dde1fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

go/ql/lib/semmle/go/security/SensitiveActions.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ module PasswordHeuristics {
233233
predicate isDummyPassword(string password) {
234234
password.length() < 4
235235
or
236+
password.length() <= 100 and
236237
count(password.charAt(_)) <= 2 // aaaaaaaa or bBbBbB or ghghghghghgh or the like
237238
or
238239
password

0 commit comments

Comments
 (0)