Would have been smarter to put a bitcoin address :)
A file that's both an acceptable HTML page and a JPEG (view source on it)
111–120 of 133 posts
Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#112Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#113Perhaps I don't know enough about how this works, but couldn't you use this to inject runnable javascript in to a page? If this is possible it's pretty scary as it would allow you to upload a hidden payload in to an otherwise innocent looking image.
Yes, certain versions of IE can be tricked into executing javascript in images: http://www.h-online.com/security/features/Risky-MIME-sniffin...
Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#114Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#115Earlier quoted context omitted.
I wrote up a little explanation of how it works here https://gist.github.com/3039247
Very interesting, thanks! By the way, the for loop seems to be irrelevant to the invocation, (1,eval) just returns eval. (1,console.log)("hi") looks like it should work, except it raises an error. (1,2)+3 returns 5, however, and (1,console.log) returns the log function.
Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#116This is what Dropbox needs to do to get everyone to stop complaining about dropping the public folder.
Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#117This is what Dropbox needs to do to get everyone to stop complaining about dropping the public folder.
You can put HTML files in public folders. Files in public folders are loaded on a separate domain.
Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#118Earlier quoted context omitted.
Nope, you have an image embedded in somebody else's web site, the script never runs. Also that's completely different than what you originally said.
Andy, you're very confused.
Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#119Re: A file that's both an acceptable HTML page and a JPEG (view source on it)
#120I've always wondered how the site snag.gy does something similar. Take this link, for example (you'll have to disable AdBlock if you want to see the ad): http://i.snag.gy/0obAy.jpg (ignore the image itself; it was one of the first to pop up in my history) The source is just the image, and you can embed the image, but there's an ad under the image. Also, right click -> view image or copy image location point to the sa…
If your browser requests a html page, it will respond with a html page... and vice versa.