Skip to content

Commit ff85db3

Browse files
committed
exclude credentials as kind key from hardcoded-credentials when the key looks like a dummy password
1 parent 880262d commit ff85db3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/Security/CWE-798/HardcodedCredentials.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ where
3030
// exclude dummy passwords and templates
3131
not (
3232
sink.getNode().(Sink).(DefaultCredentialsSink).getKind() =
33-
["password", "credentials", "token"] and
33+
["password", "credentials", "token", "key"] and
3434
PasswordHeuristics::isDummyPassword(val)
3535
or
3636
sink.getNode().(Sink).getKind() = "authorization header" and

0 commit comments

Comments
 (0)