Official nomination
phpwn: Attack on PHP sessions and random numbers
Attack on PHP Sessions and Random Numbers
PHP 5.3.1 and earlier seed their linear congruential generator weakly enough that the 64-bit seed reduces to 35 bits, or under 20 bits given code execution, recoverable in seconds. That makes session IDs and lcg_value() output predictable. The page runs a live demo against the visitor and ships C tools to solve the LCG forwards and backwards and to derive session IDs.
Preserved copies · Samy Kamkar · Original publication ↗
Record
- Document
- Attack on PHP Sessions and Random Numbers
- Researcher
- Samy Kamkar
- Published by
- samy.pl
- Topic
- Identity
In the archive
- Nominated for the 2010 Top 10 Web Hacking Techniques · Open this archive record
2010Results ↗Nominations (unverified) ↗Finalists ↗
Announcement provenance and preserved copies
Jeremiah Grossman · Source identity checked 2026-11-18; live availability may change. Historical material does not establish that nominations or voting are open.
Official results · Earlier publication URL ↗ · Preserved results (PDF)
Official nomination material · Earlier publication URL ↗
Official finalists · Earlier publication URL ↗
Tags
This page is the archive's own catalogue record. The research is the work of Samy Kamkar, first published at the original source. Preserved copies are kept so the citation survives its host.