Closed
Bug 851799
Opened 13 years ago
Closed 12 years ago
Persistent Cross Site Scripting Vulnerability on Mozilla Developer Add Translation page.
Categories
(developer.mozilla.org :: Security, defect)
developer.mozilla.org
Security
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: netfuzzerr, Assigned: groovecoder)
References
Details
(Keywords: reporter-external, wsec-xss, Whiteboard: [site:developer.mozilla.org])
User Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.33 (KHTML, like Gecko) Chrome/27.0.1438.7 Safari/537.33
Steps to reproduce:
Hi,
There's a persistent cross site scripting vulnerability on http://developer.mozilla.org that allows attackers to do xss attacks or phishing attacks. The vulnerability is caused by bad codification of html code of a article(the page doesn't escape chars that allow to create html tags), so allowing attackers to inject html codes.
Reproduce:
1. Log on https://developer.mozilla.org.
2. Go to https://developer.mozilla.org/en-US/docs/new?slug=xxxxxxxxxxx&parent=2135 and create a new page.
3. On page body click in "Source Code"(to edit the html code of page), and put "'><img src=x onerror=confirm(3);> on page source.
4. Save the changes.
5. Now after the created the article, click in "Languages", and after click in "Add Translation".
6. Select any language you want.
7. See the alert.
PoC:
1. Log on my test account email "cassiogomes97@gmail.com", password "1111111111".
2. After logged on my test account, go to https://developer.mozilla.org/en-US/docs/HTML/xxxxxxxxxxx$translate?tolocale=vi
3. See the alert.
Cheers,
Mario
Updated•13 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Updated•13 years ago
|
Flags: sec-bounty-
Whiteboard: [site:developer.mozilla.org]
| Reporter | ||
Comment 2•13 years ago
|
||
why do you think that this is a duplicate? the bug doesn't look a duplicate, the xss it's not on editor.
| Reporter | ||
Updated•13 years ago
|
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
(In reply to Mario Gomes from comment #2)
> why do you think that this is a duplicate? the bug doesn't look a duplicate,
> the xss it's not on editor.
This bug is nearly identical to 847273, which has already been resolved duplicate of 821986 and the underling issue has been determined to be with the CKEditor libraries being used.
Luke can you double check my findings here.
Flags: needinfo?(lcrouch)
| Assignee | ||
Comment 5•13 years ago
|
||
CKEditor is vulnerable to attribute injection - whether its img onerror or circle onload. CKEditor is used on both the translate page and the edit page.
Having said that, CKEditor is instantiated with different configuration options on the different pages, so an XSS vulnerability might be on the $edit page but not on the $translate page.
So, how do we want to handle vulnerabilities like this that are *similar* and likely caused by a single vulnerability in 3rd-party code? Duplicate bugs? Or separate?
Flags: needinfo?(lcrouch)
(In reply to Luke Crouch [:groovecoder] from comment #5)
> So, how do we want to handle vulnerabilities like this that are *similar*
> and likely caused by a single vulnerability in 3rd-party code? Duplicate
> bugs? Or separate?
In general we handle them as dupe, which confirms my original marking of his bug. Since this will be closed as dupe we can check that it was properly fixed by the single vuln already identified.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → DUPLICATE
Comment 7•13 years ago
|
||
(In reply to Curtis Koenig [:curtisk] from comment #6)
> (In reply to Luke Crouch [:groovecoder] from comment #5)
> > So, how do we want to handle vulnerabilities like this that are *similar*
> > and likely caused by a single vulnerability in 3rd-party code? Duplicate
> > bugs? Or separate?
>
> In general we handle them as dupe
If you're not sure then it's safer to make it "Depend on" the one you /think/ will fix it, and then we remember to retest after that fix. "similar to" is not good enough for a dupe, you have to believe in your heart of hearts that it is in fact the same.
| Reporter | ||
Comment 8•13 years ago
|
||
That status change means, there is any chance of the "sec-bounty" flag change?
Updated•13 years ago
|
Flags: sec-bounty- → sec-bounty?
mdn sites are not eligible for bounty at this time and this is likely a dependent/deuplicate item that is also not normally bounty eligible
Flags: sec-bounty? → sec-bounty-
Updated•13 years ago
|
Assignee: nobody → lcrouch
Comment 10•13 years ago
|
||
Adding keywords to bugs for metrics, no action required. Sorry about bugmail spam.
Keywords: wsec-xss
| Reporter | ||
Comment 11•12 years ago
|
||
fixed
Status: REOPENED → RESOLVED
Closed: 13 years ago → 12 years ago
Resolution: --- → INVALID
Comment 13•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
•