Skip to content

Commit c0ac29d

Browse files
clarify qhelp + add references to it
1 parent 4b7cb70 commit c0ac29d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

swift/ql/src/queries/Security/CWE-916/InsufficientHashIterations.qhelp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@
77
</overview>
88

99
<recommendation>
10-
<p>Use sufficient number of iterations (i.e., greater than or equal 1000) for generating password-based keys.</p>
10+
<p>Use sufficient number of iterations (that is, greater than or equal 1000) for generating password-based keys.</p>
1111
</recommendation>
1212

1313
<example>
1414
<p>The following example shows a few cases of instantiating a password-based key. In the 'BAD' cases, the key is initialized with insufficient iterations, making it susceptible to password cracking attacks. In the 'GOOD' cases, the key is initialized with at least 1000 iterations, which protects the encrypted data against recovery.</p>
1515
<sample src="InsufficientHashIterations.swift" />
1616
</example>
17+
18+
<references>
19+
<li>Password-Based Cryptography Specification Version 2.0. 2000.<a href="https://www.rfc-editor.org/rfc/rfc2898">RFC2898</a>.</li>
20+
<li>OWASP <a href="https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html">Password Storage Cheat Sheet.</a></li>
21+
</references>
1722
</qhelp>

0 commit comments

Comments
 (0)