Crypt::Salt for Perl Insecure Random Number Generation Vulnerability
Vulnerability
A vulnerability exists in Crypt::Salt for Perl, specifically in version 0.01, due to the use of the insecure rand() function for generating salts intended for cryptographic use. The rand() function is not cryptographically secure, as it can be easily predicted and is seeded by only 32 bits. This flaw allows for the potential manipulation or prediction of salts used in password hashing or other security-sensitive applications.
Impact
The vulnerability could lead to predictable salts in cryptographic functions, undermining the security of password hashing and other cryptographic operations that rely on random salts.
Remediation
Users are advised to update to a version of Crypt::Salt that does not use the insecure rand() function. Alternatively, when generating salts, consider using a secure random number generator from the recommended Perl modules such as Crypt::URandom, Crypt::Random, or Math::Random::Secure.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
