Official nomination
Introducing wrapwrap: using PHP filters to wrap a file with a prefix and suffix
PHP filter chains could already prepend arbitrary bytes to a resource; by padding the base64, swapping quartets with UCS-4 to UCS-4LE conversions and truncating with the dechunk filter, wrapwrap also appends an arbitrary suffix. Any file_get_contents sink that demands structurally valid JSON, XML or INI can then be turned into an in-band arbitrary file read.
Preserved copies · blog.lexfo.fr · Original publication ↗
Record
- Published by
- blog.lexfo.fr
- Topic
- Server
In the archive
- Nominated for the 2023 Top 10 Web Hacking Techniques · Open this archive record
Announcement provenance and preserved copies
PortSwigger Research · Source identity checked 2026-11-18; live availability may change. Historical material does not establish that nominations or voting are open.
Official results · Preserved results (PDF)
Official nomination material
Related sources
- wrapwrap tool
Author not stated
External source · no preserved copy
- Solving "includer's revenge" from hxp ctf 2021 without controlling any files
262588213843476 · Gist
Preserved copies of this source
- PHP filters chain: What is it and how to use it
@Synacktiv · Synacktiv
Preserved copies of this source
Tags
This page is the archive's own catalogue record. The research is the work of blog.lexfo.fr, first published at the original source. Preserved copies are kept so the citation survives its host.