Closed Bug 817319 Opened 14 years ago Closed 14 years ago

cross site scripting on mozilla.org

Categories

(developer.mozilla.org :: Security, defect)

x86
Windows 7
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rahul.crack123, Assigned: pauljt)

References

Details

(Keywords: reporter-external, sec-low, wsec-xss, Whiteboard: [site:developer.mozilla.org])

Attachments

(2 files)

Attached image final image —
i already reported issue on security@mozilla.org, plz check it Hello Staff,Sir My name is Atul, i'm penetration tester Today i found one serious cross site scripting vulnerability on your site Here's report : domain : mozilla.org infected subdomain : developer.mozilla.org Issue : Cross Site Scripting Proof : i attached image file or go through my Description to reproduce it yourself :) tested browser : mozilla / chrome (please check screenshots) Description : step 1) As vulnerability is on developer.mozilla.org we need to login to account i made test account email : testmyxss420@gmail.com pass : mozilla#123 login to developer network through persona step 2) Now goto Your profile in my case my URL is : https://developer.mozilla.org/en-US/profiles/testmyxss and now click on Docs User Page step 3) After that you will redirect to Doc page, at the bottom there is one option attachment click on attach file. step 4) click on browse and select any image file Now Vulnerability appeared in Title box In Title box add vector as "><img src=x onerror=prompt(navigator.userAgent);> add description and comment and click on upload step 5) as file get uploaded and it list in attach file, vector get execute and show browser details Please check finalmozilla.png i tested it on google chrome and works perfect please check chrome.png As it's cross site scripting issue , attacker can steal data or execute malicious code I did my best to explain, Please let me know that , My vulnerability is valid for bounty or not Thanks For time , vulnerability contain in developer subdomain, so it may be serious, hope it will fix asap Again thank You,
Group: core-security
Component: Web Apps → General
Product: Firefox → www.mozilla.org
QA Contact: jsmith
Group: core-security
Component: General → Security
Product: www.mozilla.org → Mozilla Developer Network
CC'ing Luke and adding to websites-security. I cannot reproduce this on -dev because I get a server error trying to upload the attachment.
Group: websites-security
Group: core-security
assigning to pauljt to confirm
Assignee: nobody → ptheriault
Flags: sec-bounty?
Flags: needinfo?(ptheriault)
Keywords: wsec-xss
This is probably a dupe of bug 817507.
Attached file Response from /new —
Flags: needinfo?(ptheriault)
That is correct output; the alert is no longer announced, however. Is there an additional issue you are seeing?
So I can reproduce the steps above, and it does indeed result in script while you are editing the page, but I can't see how this can be used in an attack yet. Currently I can only xss myself. As far as I understand it, when you upload a file, it results in a post to https://developer.mozilla.org/files/new/ The response to this, properly escapes the malicious input provided in the title (see attachment above), however this data is unsecape and written to the page dynamically, resulting in dom-based xss. And for me attachements are not getting persisted when I save the page, so this on its own only allows someone to xss themselves. However from bug 817507 that this name might be rendered elsewhere, and thus be exploitable. Although this might mean its a dupe of bug 817507, but this has a lower bug number so shouldn't 817507 be a dupe of this? So with the information above I dont think this is exploitable, but Ill do some more research.
Oh right, so yes this does look like exactly the same issues, and the attachment lists in 817507 are definitely persisted. Looks like the same issue to me, and my guess is an issue in https://developer.cdn.mozilla.net/media/js/wiki-min.js
Here's my "proof" that I'm not seeing issues after our fix, applied to developer.allizom.org: http://screencast.com/t/MFwbortmY I can no longer reproduce the error on staging.
Paul: you're testing on http://developer.allizom.org, right?
Ah no, sorry my mistake. Seems fixed on developer.allizom.org.
Pushed to production. Please verify -- thank you!
Verified fixed on production.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Thanks For quick response and patch anything about bounty?
(In reply to atulkumar hariba shedage from comment #14) > Thanks For quick response and patch > anything about bounty? the bounty committee will have to look at this and make a determination
the self-xss is not eligible for a bounty. The persistent attachment name issue is handled in bug 817507 and was originally discovered by netfuzzer in November (see attachment list on https://developer.mozilla.org/en-US/docs/XUL/toolbaritem)
Flags: sec-bounty? → sec-bounty-
Keywords: sec-low
Thank you sir for reply, it's my bad luck for bounty i had reported csrf issue 24 hours ago on mozilla subdomain , can u please take a look on that https://bugzilla.mozilla.org/show_bug.cgi?id=819627 Thank you,
Whiteboard: [site:developer.mozilla.org]
Sorry for taking this report on, just want to ask, as it's not eligible for bounty is any possibility that i could get any appreciation token e.g. T-shirt? reply will be appreciate Thank you,
For bugs that are resolved, we remove the security flag. These haven't had their flag removed, so I'm removing it now.
Group: websites-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: