Skip to content
XSS Disclosed report

IE-Specific Cross-Site Scripting Vulnerability on Mozilla.com

Neal Poole Follow

Originally disclosed on Mozilla

  • Fixed in 2.2 years
  • Paid in 2.8 years
  • Disclosed after 2.2 years
Text
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 ;)

The original report as published on Mozilla's Bugzilla, by Neal Poole. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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.

More by Neal Poole

View all

7 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.