rhodesa Posted February 11, 2009 Share Posted February 11, 2009 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? Quote Link to comment https://forums.phpfreaks.com/topic/144787-solved-did-you-know-about-mime-sniffing-in-ie/ Share on other sites More sharing options...
.josh Posted February 11, 2009 Share Posted February 11, 2009 Why is it a big deal? Having to validate user input is nothing new. Quote Link to comment https://forums.phpfreaks.com/topic/144787-solved-did-you-know-about-mime-sniffing-in-ie/#findComment-759769 Share on other sites More sharing options...
rhodesa Posted February 11, 2009 Author Share Posted February 11, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/144787-solved-did-you-know-about-mime-sniffing-in-ie/#findComment-759785 Share on other sites More sharing options...
.josh Posted February 11, 2009 Share Posted February 11, 2009 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? Quote Link to comment https://forums.phpfreaks.com/topic/144787-solved-did-you-know-about-mime-sniffing-in-ie/#findComment-759821 Share on other sites More sharing options...
corbin Posted February 11, 2009 Share Posted February 11, 2009 Sure if the Content-Type header is sent, the content is processed accordingly no matter what the content is? Quote Link to comment https://forums.phpfreaks.com/topic/144787-solved-did-you-know-about-mime-sniffing-in-ie/#findComment-760080 Share on other sites More sharing options...
rhodesa Posted February 12, 2009 Author Share Posted February 12, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/144787-solved-did-you-know-about-mime-sniffing-in-ie/#findComment-760177 Share on other sites More sharing options...
corbin Posted February 12, 2009 Share Posted February 12, 2009 Ahhh sure earlier should've been surely. Really? Wow. x.x. I guess browsers have to do that though, or coders might actually have to know mime types! OMG! Quote Link to comment https://forums.phpfreaks.com/topic/144787-solved-did-you-know-about-mime-sniffing-in-ie/#findComment-760190 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.