Vulnerability Name:

CVE-2008-4107 (CCN-45956)

Assigned:2008-09-11
Published:2008-09-11
Updated:2018-10-30
Summary: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.
Download the latest version of PHP to fix this vulnerability: http://www.php.net/downloads.php
CVSS v3 Severity:5.3 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): Low
Availibility (A): None
CVSS v2 Severity:5.1 Medium (CVSS v2 Vector: AV:N/AC:H/Au:N/C:P/I:P/A:P)
3.8 Low (Temporal CVSS v2 Vector: AV:N/AC:H/Au:N/C:P/I:P/A:P/E:U/RL:OF/RC:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): High
Authentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
4.3 Medium (CCN CVSS v2 Vector: AV:N/AC:M/Au:N/C:N/I:P/A:N)
3.2 Low (CCN Temporal CVSS v2 Vector: AV:N/AC:M/Au:N/C:N/I:P/A:N/E:U/RL:OF/RC:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Athentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): Partial
Availibility (A): None
Vulnerability Type:CWE-189
Vulnerability Consequences:Other
References:Source: MITRE
Type: CNA
CVE-2008-4107

Source: MLIST
Type: UNKNOWN
[oss-security] 20080916 Re: CVE request: wordpress < 2.6.2

Source: OSVDB
Type: UNKNOWN
48700

Source: CCN
Type: SA31737
WordPress Insecure Password Generation Vulnerability

Source: SECUNIA
Type: Vendor Advisory
31737

Source: SECUNIA
Type: Vendor Advisory
31870

Source: SREASON
Type: UNKNOWN
4271

Source: CCN
Type: SECTRACK ID: 1020869
WordPress SQL Truncation and Password Generation Flaw Lets Remote Users Determine the Administrator's Password

Source: SECTRACK
Type: UNKNOWN
1020869

Source: CONFIRM
Type: UNKNOWN
http://wordpress.org/development/2008/09/wordpress-262/

Source: CCN
Type: Joomla! Web site
Joomla!

Source: MLIST
Type: UNKNOWN
[oss-security] 20080911 CVE request: wordpress < 2.6.2

Source: CCN
Type: OSVDB ID: 48022
WordPress Registration SQL Truncation Administrator Password Manipulation

Source: CCN
Type: OSVDB ID: 48700
WordPress mt_rand() Function RNG Weakness

Source: CCN
Type: PHP Web site
PHP: Downloads

Source: BUGTRAQ
Type: UNKNOWN
20080911 Advisory 04/2008: Joomla Weak Random Password Reset Token Vulnerability

Source: BUGTRAQ
Type: UNKNOWN
20080911 Advisory 05/2008: Wordpress user_login Column SQL Truncation Vulnerability

Source: BID
Type: UNKNOWN
31115

Source: CCN
Type: BID-31115
WordPress Random Password Generation Insufficient Entropy Weakness

Source: MISC
Type: UNKNOWN
http://www.sektioneins.de/advisories/SE-2008-02.txt

Source: CCN
Type: SektionEins Security Advisory, 2008/09/11
Joomla Weak Random Password Reset Token Vulnerability

Source: MISC
Type: UNKNOWN
http://www.sektioneins.de/advisories/SE-2008-04.txt

Source: MISC
Type: UNKNOWN
http://www.sektioneins.de/advisories/SE-2008-05.txt

Source: CCN
Type: Suspekt Blog Archive, August 17th, 2008
mt_srand and not so random numbers

Source: MISC
Type: UNKNOWN
http://www.suspekt.org/2008/08/17/mt_srand-and-not-so-random-numbers/

Source: VUPEN
Type: UNKNOWN
ADV-2008-2553

Source: XF
Type: UNKNOWN
php-rand-mtrand-weak-security(45956)

Source: XF
Type: UNKNOWN
php-rand-mtrand-weak-security(45956)

Source: FEDORA
Type: UNKNOWN
FEDORA-2008-7760

Source: FEDORA
Type: UNKNOWN
FEDORA-2008-7902

Vulnerable Configuration:Configuration 1:
  • cpe:/a:php:php:4.0:beta1:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.0:beta3:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.0:rc1:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.0:rc2:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.0.0:*:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.0.1:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.0.1:patch1:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.0.1:patch2:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.0.2:*:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.0.3:patch1:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.0.4:patch1:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.0.5:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.0.6:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.0.7:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.0.7:rc2:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.0.7:rc3:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.0.7:rc4:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.1.0:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.1.1:*:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.1.2:*:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.2:*:dev:*:*:*:*:*
  • OR cpe:/a:php:php:4.2.0:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.2.1:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.2.2:*:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.2.3:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.3.0:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.3.1:*:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.3.2:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.3.3:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.3.4:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.3.5:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.3.6:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.3.7:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.3.8:*:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.3.9:*:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.3.10:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.3.11:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.4.0:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.4.1:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.4.2:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.4.3:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.4.4:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.4.5:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.4.6:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:4.4.7:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:*:*:*:*:*:*:*:* (Version <= 4.4.8)

  • Configuration 2:
  • cpe:/a:php:php:5.0.0:beta1:*:*:*:*:*:*
  • OR cpe:/a:php:php:5.0.0:beta2:*:*:*:*:*:*
  • OR cpe:/a:php:php:5.0.0:beta4:*:*:*:*:*:*
  • OR cpe:/a:php:php:5.0.0:rc1:*:*:*:*:*:*
  • OR cpe:/a:php:php:5.0.1:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:5.0.4:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:5.0.5:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:5.1.0:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:5.1.2:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:5.1.4:*:*:*:*:*:*:*
  • OR cpe:/a:php:php:5.1.5:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:5.1.6:*:*:*:*:*:*:*
  • OR cpe:/a:php:php:5.2.0:*:*:*:*:*:*:*
  • OR cpe:/a:php:php:5.2.1:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:5.2.2:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:5.2.3:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:5.2.4:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:*:*:*:*:*:*:*:* (Version <= 5.2.5)

  • Configuration CCN 1:
  • cpe:/a:php:php:5.2.6:-:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    BACK
    php php 4.0 beta1
    php php 4.0 beta3
    php php 4.0 rc1
    php php 4.0 rc2
    php php 4.0.0
    php php 4.0.1
    php php 4.0.1 patch1
    php php 4.0.1 patch2
    php php 4.0.2
    php php 4.0.3 patch1
    php php 4.0.4 patch1
    php php 4.0.5
    php php 4.0.6
    php php 4.0.7
    php php 4.0.7 rc2
    php php 4.0.7 rc3
    php php 4.0.7 rc4
    php php 4.1.0
    php php 4.1.1
    php php 4.1.2
    php php 4.2
    php php 4.2.0
    php php 4.2.1
    php php 4.2.2
    php php 4.2.3
    php php 4.3.0
    php php 4.3.1
    php php 4.3.2
    php php 4.3.3
    php php 4.3.4
    php php 4.3.5
    php php 4.3.6
    php php 4.3.7
    php php 4.3.8
    php php 4.3.9
    php php 4.3.10
    php php 4.3.11
    php php 4.4.0
    php php 4.4.1
    php php 4.4.2
    php php 4.4.3
    php php 4.4.4
    php php 4.4.5
    php php 4.4.6
    php php 4.4.7
    php php *
    php php 5.0.0 beta1
    php php 5.0.0 beta2
    php php 5.0.0 beta4
    php php 5.0.0 rc1
    php php 5.0.1
    php php 5.0.4
    php php 5.0.5
    php php 5.1.0
    php php 5.1.2
    php php 5.1.4
    php php 5.1.5
    php php 5.1.6
    php php 5.2.0
    php php 5.2.1
    php php 5.2.2
    php php 5.2.3
    php php 5.2.4
    php php *
    php php 5.2.6