5.5 CVE-2024-58036

 

Net::Dropbox::API 1.9 and earlier for Perl uses the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions. Specifically Net::Dropbox::API uses the Data::Random library which specifically states that it is "Useful mostly for test programs". Data::Random uses the rand() function.
https://nvd.nist.gov/vuln/detail/CVE-2024-58036

Categories

CWE-338 : Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
The product uses a Pseudo-Random Number Generator (PRNG) in a security context, but the PRNG's algorithm is not cryptographically strong. Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.) Use functions or hardware which use a hardware-based random number generation for all crypto. This is the recommended solution. Use CyptGenRandom on Windows, or hw_rand() on Linux. PHP framework uses mt_rand() function (Marsenne Twister) when generating tokens Crypto product uses rand() library function to generate a recovery key, making it easier to conduct brute force attacks. Random number generator can repeatedly generate the same value. Web application generates predictable session IDs, allowing session hijacking. SSL library uses a weak random number generator that only generates 65,536 unique keys.

References


 

CPE

cpe start end
Configuration 1
cpe:2.3:a:norbu09:net::dropbox::api:*:*:*:*:*:perl:*:* <= 1.9


REMEDIATION




EXPLOITS


Exploit-db.com

id description date
No known exploits

POC Github

Url
No known exploits

Other Nist (github, ...)

Url
No known exploits


CAPEC


Common Attack Pattern Enumerations and Classifications

id description severity
No entry