Closed Bug 619267 Opened 15 years ago Closed 15 years ago

Persistent XSS in Breadcrumbs from Display Name Field

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

defect
Not set
critical

Tracking

(Not tracked)

VERIFIED FIXED
5.12.5

People

(Reporter: seantmalone, Assigned: jbalogh)

References

()

Details

(Keywords: reporter-external, wsec-xss, Whiteboard: [infrasec:xss][ws:critical])

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.215 Safari/534.10 Build Identifier: All The user Display Name field is not properly escaped in the breadcrumb area of the user profile viewer. This allows a logged-in user to enter JavaScript into their Display Name field and have it executed every time someone views their profile. Reproducible: Always Steps to Reproduce: 1. Go to https://addons.mozilla.org/en-US/firefox/users/edit#user-profile as a logged-in user 2. Enter script tags in the Display Name field, for example, <script>alert('xss')</script> 3. Save profile by clicking on the "Update" button 4. Go to https://addons.mozilla.org/en-US/firefox/user/[your_user_id]/ Actual Results: Alert dialog pops up and displays "xss" Expected Results: All special characters should be escaped, and no alert dialog should appear.
Assignee: nobody → jbalogh
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → 5.12.5
except i reported my bug after the 15th - when the new policy was in ;) kind of feel annoyed. robbed twice!
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
FYI, in case it changes the priority of pushing the fix: dave b leaked this to Full Disclosure, see http://seclists.org/fulldisclosure/2010/Dec/356
Yeah I did that - Also ^ ^ I need more sleep. (also do ignore my last post in this bug report - i can't edit it post posting :(). imho it took no time to find and was totally obvious, the fact that there are like 5 duplicated bug reports about this shows how stupid this bug was / how easy it was to find.
Sean, this bug must be fixed by now. Can you take a look,please?
I've verified that this is fixed at https://addons.mozilla.org/en-US/firefox/user/5578414/. Thanks for the quick action on this, everyone.
Status: RESOLVED → VERIFIED
Jeff, Can you add a link to the code change for this fix?
Status: VERIFIED → RESOLVED
Closed: 15 years ago → 15 years ago
(In reply to comment #16) > Jeff, Can you add a link to the code change for this fix? From comment 6: http://github.com/jbalogh/zamboni/commit/a63121f Someone not as familiar with the code found a function that did what they wanted and didn't think to look at the security implications (bug 567925). I just had to change the import to get the function intended for use in templates.
Whiteboard: [infrasec:xss][ws:critical]
(In reply to comment #17) > (In reply to comment #16) > > Jeff, Can you add a link to the code change for this fix? > > From comment 6: http://github.com/jbalogh/zamboni/commit/a63121f > > Someone not as familiar with the code found a function that did what they > wanted and didn't think to look at the security implications (bug 567925). I > just had to change the import to get the function intended for use in > templates. Verified that the new truncate import doesn't parse the input as HTML
Status: RESOLVED → VERIFIED
Group: client-services-security
Adding keywords to bugs for metrics, no action required. Sorry about bugmail spam.
Keywords: wsec-xss
Flags: sec-bounty+
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.