Jump to content

[SOLVED] Did you know about MIME-Sniffing in IE?


rhodesa

Recommended Posts

http://www.heise-online.co.uk/security/Risky-MIME-sniffing-in-Internet-Explorer--/features/112589

 

I was browsing Reddit today, and saw this on the front page. I feel like it's a pretty big deal, but it's been a problem since IE4.

 

Has anyone else dealt with this problem before? Is it something I should be worried about both as a user and a service provider?

Link to comment
Share on other sites

i didn't realize people could inject JavaScript into images and IE would execute it though. it's obvious to me that people might try to inject code into my SQL with an input box, or put HTML/JavaScript into their profile so when users see it an iframe is loaded or javascript is executed. but it bothers me that for the past 11+ years people could have been stealing my info or stealing my users info with this method and I didn't know about it

Link to comment
Share on other sites

haha yeah man..that's nothing new.  I've read about viruses and other attacks being done through images since I was knee high to a grasshopper.  It personally hit home when I  started using the GD library for image manipulation a couple years ago, when working through the random kinks and bugs to get the script working properly, I would often see the image data just dumped to the browser, instead of being rendered as an image.  I quickly realized that if one were to inject html/js into the image data, a browser could possibly end up just dumping the data like that and possibly execute the injected code, or if the browser were to read the data trying to render it, it might just blindly render it as html/js instead of thinking hey wait a minute, I'm supposed to be rendering an image...what's this code doing in here? 

Link to comment
Share on other sites

Sure if the Content-Type header is sent, the content is processed accordingly no matter what the content is?

the article shows an example of a jpg, with a jpeg content type, that can show fine in FF for example, but executes JavaScript in IE

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.