Closed
Bug 817319
Opened 14 years ago
Closed 14 years ago
cross site scripting on mozilla.org
Categories
(developer.mozilla.org :: Security, defect)
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)
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,
Updated•14 years ago
|
Group: core-security
Component: Web Apps → General
Product: Firefox → www.mozilla.org
QA Contact: jsmith
Updated•14 years ago
|
Group: core-security
Component: General → Security
Product: www.mozilla.org → Mozilla Developer Network
Comment 1•14 years ago
|
||
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
Updated•14 years ago
|
Group: core-security
assigning to pauljt to confirm
Comment 4•14 years ago
|
||
This is probably a dupe of bug 817507.
| Assignee | ||
Comment 5•14 years ago
|
||
Flags: needinfo?(ptheriault)
Comment 6•14 years ago
|
||
That is correct output; the alert is no longer announced, however. Is there an additional issue you are seeing?
| Assignee | ||
Comment 7•14 years ago
|
||
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.
| Assignee | ||
Comment 8•14 years ago
|
||
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
Comment 9•14 years ago
|
||
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.
Comment 10•14 years ago
|
||
Paul: you're testing on http://developer.allizom.org, right?
| Assignee | ||
Comment 11•14 years ago
|
||
Ah no, sorry my mistake. Seems fixed on developer.allizom.org.
Comment 12•14 years ago
|
||
Pushed to production. Please verify -- thank you!
| Assignee | ||
Comment 13•14 years ago
|
||
Verified fixed on production.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 14•14 years ago
|
||
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
Comment 16•13 years ago
|
||
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
| Reporter | ||
Comment 17•13 years ago
|
||
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,
Updated•13 years ago
|
Whiteboard: [site:developer.mozilla.org]
| Reporter | ||
Comment 18•13 years ago
|
||
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,
Comment 19•10 years ago
|
||
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
Updated•2 years ago
|
Keywords: reporter-external
You need to log in
before you can comment on or make changes to this bug.
Description
•