Closed
Bug 847273
Opened 13 years ago
Closed 12 years ago
Stored XSS on https://developer.mozilla.org
Categories
(developer.mozilla.org :: Security, defect, P1)
developer.mozilla.org
Security
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jaumlucas, Assigned: groovecoder)
References
()
Details
(Keywords: reporter-external, sec-high, wsec-xss, Whiteboard: [type:bug][site:developer.mozilla.org])
Hey,
I have found an XSS bug in https://developer.mozilla.org.
PoC: https://developer.mozilla.org/en-US/docs/Mozilla_Security_Test$edit
HTML Code used:
<video>
<source onerror="alert(11)"></source>
</video>
| Reporter | ||
Updated•13 years ago
|
URL: https://developer.mozilla.org/en-US/d... → httpsx://developer.mozilla.org/en-US/...
OS: Mac OS X → All
Hardware: x86 → All
Whiteboard: [infrasec:xss][ws:critical]
| Reporter | ||
Updated•13 years ago
|
URL: httpsx://developer.mozilla.org/en-US/... → https://developer.mozilla.org/en-US/d...
| Reporter | ||
Comment 1•13 years ago
|
||
Tested using Chrome on Mac OS.
| Reporter | ||
Updated•13 years ago
|
Group: mozilla-services-security
Component: General → Security
Product: Mozilla Services → Mozilla Developer Network
| Reporter | ||
Comment 2•13 years ago
|
||
Now tested on Firefox and Safari, XSS payload working.
| Reporter | ||
Comment 3•13 years ago
|
||
Please, can anyone restrict this bug to website-security group?
I can't and this bug is public.
Updated•13 years ago
|
Group: websites-security
Updated•13 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Comment 5•13 years ago
|
||
This is very similar to the one Mario reported. We'll have the MDN team to verify.
Flags: sec-bounty?
Comment 6•13 years ago
|
||
Luke: not sure if this is the same issue in the CKEditor as bug 821986 or if this is a separate issue. Please let us know.
| Assignee | ||
Comment 7•13 years ago
|
||
They are both issues with the upstream library CKEditor. The fix for http://dev.ckeditor.com/ticket/9930 may or may not resolve them both.
Comment 8•13 years ago
|
||
Are we satisfied waiting for CKEditor to solve this problem, or would we like to work around this bug in the meantime?
Comment 9•13 years ago
|
||
David, should we fix this ourselves now or wait for CKEditor to fix it upstream?
Flags: needinfo?(dchan+bugzilla)
Priority: -- → P1
Updated•13 years ago
|
Whiteboard: possibly dupe of 821986, but we'll have to see once we investigate → possibly dupe of 821986, but we'll have to see once we investigate [specification-like][type:bug]
Comment 10•13 years ago
|
||
(In reply to John Karahalis [:openjck] from comment #9)
> David, should we fix this ourselves now or wait for CKEditor to fix it
> upstream?
I would lean toward implementing a fix on our side given that we don't know the CKEditor timeline.
Flags: needinfo?(dchan+bugzilla)
| Reporter | ||
Updated•13 years ago
|
URL: https://developer.mozilla.org/en-US/d... → javascript://developer.mozilla.org/en...
| Reporter | ||
Updated•13 years ago
|
URL: javascript://developer.mozilla.org/en... → http://developer.mozilla.org/en-US/do...
Updated•13 years ago
|
Whiteboard: possibly dupe of 821986, but we'll have to see once we investigate [specification-like][type:bug] → possibly dupe of 821986, but we'll have to see once we investigate [specification-like][type:bug][site:developer.mozilla.org]
Comment 11•13 years ago
|
||
Yes, this looks basically identical to bug 821986
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → DUPLICATE
| Reporter | ||
Comment 12•13 years ago
|
||
I highly doubt that the fix of the other bug will fix this one.
They are not identical.
Comment 13•13 years ago
|
||
(In reply to Joao Lucas from comment #12)
> I highly doubt that the fix of the other bug will fix this one.
>
> They are not identical.
Can you explain further? They both look like issues with CKEditor to me
| Reporter | ||
Comment 14•13 years ago
|
||
Yes, you are right, they are both issues with CKEditor, but the problem is with the HTML whitelist of CKEditor, and fixing the bug 821986 (blacklisting the dangerous HTML attribute) will not fix this one.
Comment 15•13 years ago
|
||
Any fix for bug 821986 that didn't fix this bug would be a stupid application of blacklisting -- if you remember to filter one event handler you filter them all. But ok, we'll make this "depend on" the other, and then close it when it is, in fact, fixed by that other bug.
Updated•13 years ago
|
Whiteboard: possibly dupe of 821986, but we'll have to see once we investigate [specification-like][type:bug][site:developer.mozilla.org] → possibly dupe of 821986, but we'll have to see once we investigate [type:bug][site:developer.mozilla.org]
Updated•13 years ago
|
Assignee: nobody → lcrouch
Updated•13 years ago
|
Priority: P1 → P2
Updated•13 years ago
|
Priority: P2 → P1
| Assignee | ||
Comment 16•13 years ago
|
||
We should go ahead and fix patch ourselves and submit a patch up to ckeditor.
Comment 17•13 years ago
|
||
Luke, are you creating this patch?
| Assignee | ||
Comment 18•13 years ago
|
||
bug 821986 is in our kanban board right now.
https://mdn.kanbanery.com/projects/32137/board/?key=0383ba5f05e165e0eb19d8476654fe9775ce2ca7
it will fix this one as well.
Comment 19•13 years ago
|
||
Any update on when this is going in so this can be resolved as fixed?
| Assignee | ||
Comment 20•13 years ago
|
||
strange. the fix for bug 821986 did *not* fix this one ... let's add votes to this one to make sure it floats to the top of our backlog.
Comment 22•13 years ago
|
||
Has been fix?
| Assignee | ||
Comment 23•13 years ago
|
||
This one is not fixed. bug 821986 should be fixed.
Updated•13 years ago
|
Whiteboard: possibly dupe of 821986, but we'll have to see once we investigate [type:bug][site:developer.mozilla.org] → [type:bug][site:developer.mozilla.org]
Updated•13 years ago
|
Flags: sec-bounty? → sec-bounty+
| Reporter | ||
Comment 25•13 years ago
|
||
(In reply to Daniel Veditz [:dveditz] from comment #15)
> Any fix for bug 821986 that didn't fix this bug would be a stupid
> application of blacklisting -- if you remember to filter one event handler
> you filter them all. But ok, we'll make this "depend on" the other, and then
> close it when it is, in fact, fixed by that other bug.
Daniel,
Like I said 2 months ago, your fix for bug 821986 didn't fix this one.
=)
| Reporter | ||
Comment 26•13 years ago
|
||
We have another XSS payload:
<form id="test">
<button form="test" formaction="javascript:alert(1)">X</button>
</form>
Do I need open a new bug?
| Assignee | ||
Comment 29•12 years ago
|
||
Wow this bug had a birthday while we went back and forth over CKEditor. We finally pushed a fix for this and tested these payloads:
<video>
<source onerror="alert(11)"></source>
</video>
<form id="test">
<button form="test" formaction="javascript:alert(1)">X</button>
</form>
on:
https://developer.mozilla.org/en-US/docs/Admin:groovecoder$edit
Thanks for the report!
Status: REOPENED → RESOLVED
Closed: 13 years ago → 12 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 30•12 years ago
|
||
Hey Luke,
Thanks for the feedback.
Just a question.
I received a bounty for first payload, but I didn't receive for the second payload.
Is the second bug rewardable?
Thanks.
| Assignee | ||
Comment 31•12 years ago
|
||
Al or Curtis: do we pay secondary bounties for alternative payloads?
Flags: needinfo?(curtisk)
Flags: needinfo?(abillings)
Comment 32•12 years ago
|
||
We do it by bug. If it is different enough that there should be another bug, another bug should be filed and nominated. If it is the same fundamental exploit, we wouldn't pay a second time.
Flags: needinfo?(abillings)
| Reporter | ||
Comment 33•12 years ago
|
||
The second bug is different. Can you confirm?
Updated•12 years ago
|
Flags: needinfo?(curtisk)
Comment 35•12 years ago
|
||
Luke:
Do you have a pull request which fixed the above bug? Is it the same as the one you mention in
https://bugzilla.mozilla.org/show_bug.cgi?id=821986#c32
If so, the fix is incomplete as mentioned by Joao and Mario. We should be encoding output rather than attempting to strip on* . However I realize that this is difficult to do on a content site such as MDN. We can further discuss the requirements on IRC or this bug.
Flags: needinfo?(dchan) → needinfo?(lcrouch)
Comment 36•12 years ago
|
||
(In reply to David Chan [:dchan] from comment #35)
> We should be
> encoding output rather than attempting to strip on* . However I realize that
> this is difficult to do on a content site such as MDN. We can further
> discuss the requirements on IRC or this bug.
Yeah, it's rather hard to encode the output when the WYSIWYG editor requires raw content to edit :)
| Assignee | ||
Comment 37•12 years ago
|
||
The fix for this particular bug is:
https://github.com/mozilla/kuma/pull/2275/files
Flags: needinfo?(lcrouch)
| Reporter | ||
Updated•12 years ago
|
Flags: sec-bounty+ → sec-bounty?
Updated•12 years ago
|
Flags: sec-bounty? → sec-bounty+
| Reporter | ||
Comment 38•12 years ago
|
||
Any update here?
| Assignee | ||
Comment 39•12 years ago
|
||
AFAIK the code is merged and this bug is fixed. What kind of update do you need?
| Reporter | ||
Comment 40•12 years ago
|
||
I want to know if the second payload is rewardable.
| Assignee | ||
Comment 41•12 years ago
|
||
Sounds like a needinfo? for :curtisk - is the second payload rewardable?
Flags: needinfo?(curtisk)
I get this to the bounty committee to answer that question
Flags: needinfo?(curtisk) → needinfo?(chofmann)
Comment 43•12 years ago
|
||
If there is a second vulerability associate with the second payload better to spin off a new bug and mark it as separate bounty request.
Flags: needinfo?(chofmann)
| Reporter | ||
Comment 44•12 years ago
|
||
Hey folks. Any update here?
Thanks.
Comment 45•12 years ago
|
||
What update are you looking for, Joao? Did you open a second bug as Chris requested in comment 43?
| Reporter | ||
Comment 46•12 years ago
|
||
Oh, no. I didn't understand if his message was to me or other person.
I will open another bug.
Comment 47•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
•