Skip to content

Commit 8e43c5c

Browse files
authored
Merge pull request #15811 from owen-mc/go/limit-password-heuristics
Go: Only check strings of length <= 100 for dummy password with <= 2 unique characters
2 parents 5be75e9 + 4dde1fb commit 8e43c5c

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)