Crypt::PBKDF2 versions before 0.261630 for Perl have a weak default algorithm and number of iterations
Crypt::PBKDF2 versions before 0.261630 for Perl have a weak default algorithm and number of iterations.
The default algorithm is HMAC-SHA1, which should only be used for legacy systems.
These versions default to using 1000 iterations.
Depending on the chosen algorithm, 220,000 to 1,400,000 iterations should be used.
Description: CWE-916 Use of Password Hash With Insufficient Computational Effort
Metrics
Version
Base score
Base severity
Vector
Metrics Other Info
Impacts
CAPEC ID
Description
Solutions
Upgrade to version 0.261630 or later.
Configurations
Workarounds
Change the default algorithm to something stronger, such as "HMACSHA2", and the output_len accordingly (32 for SHA256).
The number of iterations should also be increased (600,000 for SHA256, for example).