Go : Insufficient number of iterations
Classification
Overview
The password-based key derivation function uses too few iterations.
The key derivation function (KDF) generates one or more secret keys based on a secret value (master key, password or passphrase) using a pseudorandom function. Salt values and a number of iterations are also used as parameters. A sufficient number of iterations provides the necessary stability of the algorithm. If the number of iterations is low, the possibility of attack increases, because an attacker can use “rainbow tables” to reverse the initial values of hashed passwords.
Sensitive Data Exposure vulnerabilities take the third place in the “OWASP Top 10 2017” web-application vulnerabilities ranking.
References
- OWASP: Top 10 2013-A6-Sensitive Data Exposure
- CWE-916: Use of Password Hash With Insufficient Computational Effort
- OWASP: Top 10 2017-A3-Sensitive Data Exposure
- PKCS #5: Password-Based Cryptography Specification
- CWE-326
- CWE CATEGORY: OWASP Top Ten 2017 Category A6 - Security Misconfiguration
- crypto.pbkdf2
- Bleichenbacher’s attack
DerScanner Severity Score
Check your Go code for this vulnerability, free
Request a free pilot of DerScanner. We give you access and help with the first scan. It works in the cloud and on-premise.
Try it on your code, free
By submitting this form, I acknowledge that DerScanner may process my personal data I provided above for purposes explained above. More details about the processing.
