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)

defect
Not set
normal

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.
Confirmed, thank you Wladimir!
Whiteboard: [sec-high]
Upgrading jquery to 1.9 won't solve this issue either.
Assignee: nobody → me
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.
Flags: sec-bounty?
Keywords: sec-high, wsec-xss
Whiteboard: [sec-high]
Assignee: me → nobody
Assignee: nobody → magopian
Iteration: --- → 45.3 - Dec 14
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Flags: sec-bounty? → sec-bounty+
Product: addons.mozilla.org → addons.mozilla.org Graveyard
This should be public I think.
Flags: needinfo?(amuntner)
Group: client-services-security
Flags: needinfo?(amuntner)
You need to log in before you can comment on or make changes to this bug.