IE-Specific Cross-Site Scripting Vulnerability on Mozilla.com
Originally disclosed on Mozilla
- Fixed in 2.2 years
- Paid in 2.8 years
- Disclosed after 2.2 years
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Build Identifier:
Hilarious, isn't it. :-P
IE 6/7/8 will sniff for HTML in cases where .html, .xml, or .txt are a part of the URL path (source: http://code.google.com/p/browsersec/wiki/Part2#Survey_of_content_sniffing_behaviors). There is a stats script on Mozilla.com which takes a callback parameter so it can be used as JSONP. It does not filter the characters in or length of the callback, which allows HTML tags to be included. By taking advantage of PHP and PATH_INFO to inject a fake filename at the end of the URL, it's possible to trick IE into executing the malicious input as HTML. IE8's XSS filter blocks the attacks I've come up with, but IE7 and IE6 will parse them without any difficulty.
Reproducible: Always
Steps to Reproduce:
1. Open IE6, IE7, or IE8 with the XSS Filter disabled
2. Browse to http://www.mozilla.com/en-US/firefox/stats/total.php/index.txt?callback=<script>alert('asdf')</script>
3. Enjoy the alert box ;)
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A high-severity XSS bug in General. Mozilla made it public on 23 April 2013.
About XSS
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.