WebHackList

Official Top 10 selection

Hiding JS in Valid Images

Matteo Carli's GIF that is also valid JavaScript: an =1 after the GIF header stops the magic bytes parsing as an undefined variable, and a long comment swallows the binary. The file passes as an image on hosts like ImageShack yet runs when loaded as a script source, and the same trick embeds PHP for RFI.

Preserved copies · RSnake · Original publication ↗

GitHub MD fileGitHub PDF file

Record

Researcher
RSnake
Published by
ha.ckers.org
Date
Topic
Other

In the archive

Tags

This page is the archive's own catalogue record. The research is the work of RSnake, first published at the original source. Preserved copies are kept so the citation survives its host.