Skip to content
OpenAdvisories
Unscored Public exploit CVE-2010-1128 EUVD-2010-1159GHSA-59wc-4gch-hhw5

The Linear Congruential Generator (LCG) in PHP before 5.2.13 does not provide the expected entropy, which makes it easier for context-depen…

Published Mar 26, 2010 · Updated Aug 7, 2024 · Assigned by mitre

Description

The Linear Congruential Generator (LCG) in PHP before 5.2.13 does not provide the expected entropy, which makes it easier for context-dependent attackers to guess values that were intended to be unpredictable, as demonstrated by session cookies generated by using the uniqid function.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 6.0 php5 5.3.3-7+squeeze1 DSA-2195-1
Debian 5.0 php5 5.2.6.dfsg.1-1+lenny10 DSA-2195-1
ReleasePackageFixed inAdvisory
RHEL 5 php +18 5.1.6-27.el5_5.3 RHSA-2010:0919
RHEL 4 php +13 4.3.9-3.31 RHSA-2010:0919

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 2

References