Official nomination
Passing Malicious PHP Through getimagesize()
ha.ckers.org web application security lab - Archive » Passing Malicious PHP Through getimagesize()
Michael Schramm's finding, relayed by RSnake: PHP can be embedded in an 8x8 GIF that still passes getimagesize(). Inserting /* before the header's illegal bytes makes PHP skip them, so the file validates as an image and executes phpinfo() when requested. Breaks upload filters that trust getimagesize() and keep the original filename.
Preserved copies · ha.ckers.org · Original publication ↗
Record
- Document
- ha.ckers.org web application security lab - Archive » Passing Malicious PHP Through getimagesize()
- Published by
- ha.ckers.org
- Topic
- Server
In the archive
- Nominated for the 2007 Top 10 Web Hacking Techniques · Open this archive record
2007Results (unverified) ↗Nominations (unverified) ↗
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 ↗
Tags
This page is the archive's own catalogue record. The research is the work of ha.ckers.org, first published at the original source. Preserved copies are kept so the citation survives its host.