зеркало из https://github.com/github/codeql.git
Only check strings of length <= 100 for dummy password with <= 2 unique characters
This commit is contained in:
Родитель
dcc2b2c50d
Коммит
4dde1fb117
|
@ -233,6 +233,7 @@ module PasswordHeuristics {
|
|||
predicate isDummyPassword(string password) {
|
||||
password.length() < 4
|
||||
or
|
||||
password.length() <= 100 and
|
||||
count(password.charAt(_)) <= 2 // aaaaaaaa or bBbBbB or ghghghghghgh or the like
|
||||
or
|
||||
password
|
||||
|
|
Загрузка…
Ссылка в новой задаче