Vulnerability in PHP
CVE-2008-4107
The (1) rand and (2) mt_rand functions in PHP 5.2.6 do not produce cryptographically strong random numbers, which allows attackers to leverage exposures in products that rely on these functions for security-relevant functionality, as demonstrated by the password-reset functionality in Joomla! 1.5.x and WordPress before 2.6.2, a different vulnerability than CVE-2008-2107, CVE-2008-2108, and CVE-2008-4102.
Published · last modified .
CVSS v2 metric
CVSS v2 base score 5.1 (Medium). Vector: AV:N/AC:H/Au:N/C:P/I:P/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.030, 87.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- PHP — versions 4.0, 4.0.0, 4.0.1
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (20142995/nuclei-templates). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- secunia.com/advisories/31737 (third-party-advisory, Vendor Advisory)
- [oss-security] 20080916 Re: CVE request: wordpress < 2.6.2 (mailing-list)
- securityreason.com/securityalert/4271 (third-party-advisory)
- www.securityfocus.com/bid/31115 (vdb-entry)
- 20080911 Advisory 04/2008: Joomla Weak Random Password Reset Token Vulnerability (mailing-list)
- www.suspekt.org/2008/08/17/mt_srand-and-not-so-random-numbers/
- ADV-2008-2553 (vdb-entry)
- [oss-security] 20080911 CVE request: wordpress < 2.6.2 (mailing-list)
- osvdb.org/48700 (vdb-entry)
- www.sektioneins.de/advisories/SE-2008-05.txt