Closed
Bug 1199181
Opened 11 years ago
Closed 10 years ago
Cross-site scripting vulnerability in add-on name autocomplete
Categories
(addons.mozilla.org Graveyard :: Developer Pages, defect)
addons.mozilla.org Graveyard
Developer Pages
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: rxpbugzilla, Assigned: magopian)
Details
(Keywords: reporter-external, sec-high, wsec-xss)
Steps to reproduce:
1. Edit the name of a fully reviewed add-on into the following:
> XSS dummy add-on<img src="foo" onerror="alert('xss')">
2. Now log in as a different developer and edit the listing for one of your add-ons.
3. Click "Edit" on the Technical Details section and enter "dummy" into the "Required Add-ons" field.
An alert message with the text "xss" will appear - the autocomplete popup fails to sanitize HTML code in the add-on title. The problematic code is https://github.com/mozilla/olympia/blob/966195c76f7d8e40d842c3bf4d74301947f52cfa/static/js/impala/formset.js#L198 I think, the extension name is being inserted without any escaping here.
Comment 1•11 years ago
|
||
Confirmed, thank you Wladimir!
Updated•11 years ago
|
Whiteboard: [sec-high]
Comment 2•11 years ago
|
||
Upgrading jquery to 1.9 won't solve this issue either.
Updated•11 years ago
|
Assignee: nobody → me
Comment 3•11 years ago
|
||
I'm having a bit of trouble recreating this issue. There doesn't seem to be a field for the required addons in technical details.
Comment 4•11 years ago
|
||
It exists here:
https://github.com/mozilla/olympia/blob/d8aef0b88a5fd20d4413a37807e9ae79c7602fa8/apps/addons/templates/addons/details_box.html#L69-L80
and here:
https://github.com/mozilla/olympia/blob/d8aef0b88a5fd20d4413a37807e9ae79c7602fa8/apps/devhub/templates/devhub/addons/edit/technical.html#L42-L66
Locally I see the field when editing an add-on, I also see that the autocompleter is broken, likely from the jquery upgrade.
https://www.dropbox.com/s/88tcdr5rkkjbrsg/Screenshot%202015-11-02%2016.44.50.png?dl=0
Updated•11 years ago
|
Updated•11 years ago
|
Assignee: me → nobody
Updated•11 years ago
|
Assignee: nobody → magopian
Iteration: --- → 45.3 - Dec 14
| Assignee | ||
Comment 5•11 years ago
|
||
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Flags: sec-bounty? → sec-bounty+
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
Updated•10 years ago
|
Group: client-services-security
Flags: needinfo?(amuntner)
Updated•2 years ago
|
Keywords: reporter-external
You need to log in
before you can comment on or make changes to this bug.
Description
•