Closed Bug 1247063 Opened 10 years ago Closed 10 years ago

XSS at https://addons.mozilla.org (MOBILE VERSION)

Categories

(addons.mozilla.org Graveyard :: Administration, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: p4r3sh.p4rm4r, Assigned: muffinresearch)

Details

(Keywords: reporter-external, sec-high, wsec-xss)

User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.103 Safari/537.36 Steps to reproduce: Hi, Steps to Reproduce: 1. go here https://addons.mozilla.org/en-US/seamonkey/addon/mailbox-alert/reviews/ (use any browser) 2. now in review title type anything and in review use this payload <img src=x onerror=alert(document.domain)> 3. click on submit review now visit this review link in mobile browser: https://addons.mozilla.org/en-US/seamonkey/addon/mailbox-alert/reviews/ xss will triaged. HERE'S video proof of concept (private video) : https://www.youtube.com/watch?v=L2BbPr7qTw8&feature=youtu.be Thanks Actual results: in Mobile Version of https://addons.mozilla.org/en-US/seamonkey/addon/mailbox-alert/reviews/ You must use the escape syntax for the part of the HTML document you're putting untrusted data into. Expected results: Im using this UA string Mozilla/5.0 (Android 4.4; Mobile; rv:41.0) Gecko/41.0 Firefox/41.0
Component: General → Administration
Product: Marketplace → addons.mozilla.org
Confirmed. This only triggers on the mobile version. Andy: could you please assign someone to fix it asap? It's a bad one.
Assignee: nobody → amckay
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: sec-bounty?
Flags: needinfo?(amckay)
Keywords: sec-high
Flags: needinfo?(amckay)
Assignee: amckay → scolville
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Commit Looks Good!! and this xss and domain in scope https://www.mozilla.org/en-US/security/bug-bounty/faq-webapp/ so it is eligible for Reward ?
Verified on prod.
Status: RESOLVED → VERIFIED
Its not fixed yet!! XSS is still working.
(In reply to Paresh from comment #6) > Its not fixed yet!! XSS is still working. Using the STR from this bug I can't reproduce in production (having just tested today). I wonder if for some reason you're getting stale JS? This is the URL for the mobile-min.js that I see: https://addons.cdn.mozilla.net/static/js/zamboni/mobile-min.js?build=9e68f53-56b0e493 Grabbing the the content and running it through prettify I see the expected line is wrapped with the escape function. E.g this line: for (var a = 0; a < i.length; a++) { r += e(i[a]) } } else { r = _.escape(t.textContent) } Can you check the JS you're seeing for the same?
Flags: needinfo?(p4r3sh.p4rm4r)
Hi, Ive tested now , its fixed in ALL LATEST MAJOR BROWSERS/ but im able reproduce this bug in UC MINI BROWSER (ANDROID 4.4), and also working with this user agent String: Mozilla/5.0 (Android 4.4; Mobile; rv:41.0) Gecko/41.0 Firefox/41.0 can you test with this user agent string in Firefox?
Flags: needinfo?(p4r3sh.p4rm4r)
I don't think the fix will be UA specific. If it's still reproducing for specific UAs you're probably running old JS for some reason. Can you try clearing the cache on those User-agents and re-test?
yes, checked it! problem was old js CACHE / Its cleared now/ this is is fixed! Thanks PARESH
Flags: needinfo?(jclaudius)
I had thought this might be a duplicate of something I worked on recently (Bug #1247642), but after review it appears it is a different issue, but a similar pattern.
Flags: needinfo?(jclaudius)
Flags: sec-bounty? → sec-bounty+
Group: client-services-security
can i write blog about this issue ?
Paresh - The bug is public, so their shouldn't be an issue with you blogging about it. Good find!
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.