mirror of
https://github.com/github/codeql.git
synced 2026-03-06 15:49:08 +01:00
21 lines
542 B
Plaintext
21 lines
542 B
Plaintext
import javascript
|
|
import semmle.javascript.security.SensitiveActions
|
|
|
|
string getASamplePassword() {
|
|
result = "abcdefgh" or
|
|
result = "sOKY6ccizpmvF*32so%Q" or
|
|
result = "XXXXXXXX" or
|
|
result = "example_password" or
|
|
result = "change_me" or
|
|
result = "" or
|
|
result = "insert-auth-from-gui" or
|
|
result = "admin" or
|
|
result = "root"
|
|
}
|
|
|
|
from string password, boolean isDummy
|
|
where
|
|
password = getASamplePassword() and
|
|
if PasswordHeuristics::isDummyPassword(password) then isDummy = true else isDummy = false
|
|
select password, isDummy
|