A file that's both an acceptable HTML page and a JPEG (view source on it)
lcamtuf.coredump.cx
A file that's both an acceptable HTML page and a JPEG (view source on it)
1–10 of 133 posts
Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#2Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#3Can someone explain what is going on here?
Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#4Can someone explain what is going on here?
Apparently, the jpeg format allows this.
Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#5Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#6Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#7Can someone explain what is going on here?
view source shows that he has an html document embedded in the jpeg. Apparently, the jpeg format allows this.
Neat hack.
Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#8Can someone explain what is going on here?
Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#9Can someone explain what is going on here?
view source shows that he has an html document embedded in the jpeg. Apparently, the jpeg format allows this.
What is surprising is that web browsers just ignore the 24 bytes of binary data between the start of the file and the start of the HTML.
Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#10Can someone explain what is going on here?
The first part probably isn't too hard, since most web browsers go to great lengths to render non-standard html in a sensible way, I'm not too sure about the second part. I'm guessing the jpeg spec has some variable length space in some kind of file header that the html for the page can be put in to.
I read something similar a while back (I think it was called a Jafar attack) where a clever person worked out how to create a file that was both a valid .gif image and .jar java executable.