News for hackers. Stuff that matters.
Re:A file that's both an acceptable HTML page and a JPEG (vi... by jack-r-abbit on Friday July 06, 2012 @04:30PM (#4209505)
I think (s?)he meant upload the image to someone else's site. The malicious code be running on that site... not your own. So then it does have access to that site's cookies.
Re:A file that's both an acceptable HTML page and a JPEG (vi... by AndyKelley on Friday July 06, 2012 @05:15PM (#4209682)
nope, in this case the image will be interpreted as an image, not a script.
Re:A file that's both an acceptable HTML page and a JPEG (vi... by jack-r-abbit on Friday July 06, 2012 @05:37PM (#4209776)
Right. I just took the example squirrel page, saved it, altered the comment section of the image to insert some javascript code alert('Hello') and opened it in my browser. It works but only if it is interpreted as html. So you'd need to be able to control it more.