WONKO Smolder
- <= 1.51
A vulnerability exists in Smolder versions through 1.51 for Perl, where the rand() function is used as the default source of entropy for cryptographic functions. This is problematic because the rand() function is not cryptographically secure. The issue arises in the Smolder::DB::Developer module, which relies on the Data::Random library. Data::Random explicitly states that it is 'Useful mostly for test programs', indicating its unsuitability for production use.
The use of an insecure random number generator in cryptographic contexts can lead to predictable outcomes, making it easier for attackers to guess or manipulate values such as encryption keys, passwords, or authentication tokens.
The vulnerability can be reproduced by using Smolder versions through 1.51 for Perl. In this version, the Smolder::DB::Developer module will automatically use the Data::Random library for generating random data. Since Data::Random relies on the rand() function, which is not cryptographically secure, this creates a vulnerability. The issue can be observed by generating random data for cryptographic purposes, such as creating passwords or encryption keys, and noting the predictability of the output.
Users are advised to update to a version of Smolder that addresses this vulnerability. If an immediate update is not possible, consider manually replacing the use of Data::Random with a more secure alternative, such as Crypt::URandom or Crypt::OpenSSL::Random, which are available on CPAN.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.