Skip to content

Commit c794fef

Browse files
update qhelp with more details about the use of constant passwords
1 parent 53055bc commit c794fef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

swift/ql/src/queries/Security/CWE-259/ConstantPassword.qhelp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<qhelp>
55
<overview>
66
<p>Deriving password-based encryption keys using hard-coded passwords is insecure, because the generated key may be easily discovered. Data hashed using constant salts are vulnerable to dictionary attacks, enabling attackers to recover the original input.</p>
7+
<p>In particular, constant passwords would enable easier recovery of the key, even in the presence of a salt. If that salt is random enough, then key recovery is not as easy as just looking up a hardcoded credential in the source code.</p>
78
</overview>
89

910
<recommendation>

0 commit comments

Comments
 (0)