Cross-site scripting vulnerability via extension description
Originally disclosed on Mozilla
- Fixed in 3 days
- Paid in 3 months
- Disclosed after 3 days
Steps to reproduce:
1. Upload an extension to AMO with the following description in install.rdf:
> <em:description><![CDATA[<img src="dummy" onerror="alert('XSS')">]]></em:description>
2. Get this extension through review (your chances are better if this is an update and there is also some real text in install.rdf).
3. Wait for your extension to be recommended to somebody on the Discovery Pane:
> https://services.addons.mozilla.org/en-US/firefox/discovery/pane/40.0/Windows/normal#{%[address removed]%22:{%22type%22:%22extension%22},%[address removed]%22:{%22type%22:%22extension%22},%[address removed]%22:{%22type%22:%22extension%22},%[address removed]%22:{%22type%22:%22extension%22},%[address removed]%22:{%22type%22:%22extension%22%7d%7d
This page shows up when you click on Get Add-ons in Firefox's Add-ons Manager. I'm not entirely sure how the recommendations are chosen, they are based on the add-ons you have installed already (this makes reproducing complicated), but there might be tricks to make your add-on more likely to show up here.
The user will see an alert message saying "XSS", several times actually. The problematic code is this line:
https://github.com/mozilla/olympia/blob/7581411223af1e14b85771db50e70a11bbb7539a/static/js/zamboni/discovery_pane.js#L201
It fails to escape the addon.summary value which is coming from the add-on's install.rdf file and could contain malicious HTML code.
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 medium-severity XSS bug in Discovery Pane. Mozilla made it public on 31 August 2015.
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.