Closed Bug 847273 Opened 13 years ago Closed 12 years ago

Categories

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

defect

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>
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]
URL: httpsx://developer.mozilla.org/en-US/... → https://developer.mozilla.org/en-US/d...
Tested using Chrome on Mac OS.
Group: mozilla-services-security
Component: General → Security
Product: Mozilla Services → Mozilla Developer Network
Now tested on Firefox and Safari, XSS payload working.
Please, can anyone restrict this bug to website-security group? I can't and this bug is public.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
This is very similar to the one Mario reported. We'll have the MDN team to verify.
Flags: sec-bounty?
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.
Status: RESOLVED → REOPENED
Ever confirmed: true
Keywords: sec-high, wsec-xss
Resolution: DUPLICATE → ---
Whiteboard: [infrasec:xss][ws:critical] → possibly dupe of 821986, but we'll have to see once we investigate
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.
Are we satisfied waiting for CKEditor to solve this problem, or would we like to work around this bug in the meantime?
David, should we fix this ourselves now or wait for CKEditor to fix it upstream?
Flags: needinfo?(dchan+bugzilla)
Priority: -- → P1
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]
(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)
URL: https://developer.mozilla.org/en-US/d... → javascript://developer.mozilla.org/en...
URL: javascript://developer.mozilla.org/en... → http://developer.mozilla.org/en-US/do...
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]
Yes, this looks basically identical to bug 821986
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → DUPLICATE
I highly doubt that the fix of the other bug will fix this one. They are not identical.
(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
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.
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.
Status: RESOLVED → REOPENED
Depends on: 821986
Resolution: DUPLICATE → ---
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]
Assignee: nobody → lcrouch
Priority: P1 → P2
Priority: P2 → P1
We should go ahead and fix patch ourselves and submit a patch up to ckeditor.
Luke, are you creating this patch?
Any update on when this is going in so this can be resolved as fixed?
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.
Has been fix?
This one is not fixed. bug 821986 should be fixed.
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]
Flags: sec-bounty? → sec-bounty+
(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. =)
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?
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
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.
Al or Curtis: do we pay secondary bounties for alternative payloads?
Flags: needinfo?(curtisk)
Flags: needinfo?(abillings)
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)
The second bug is different. Can you confirm?
David, can you take a look?
Flags: needinfo?(dchan)
Flags: needinfo?(curtisk)
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)
(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 :)
The fix for this particular bug is: https://github.com/mozilla/kuma/pull/2275/files
Flags: needinfo?(lcrouch)
Flags: sec-bounty+ → sec-bounty?
Flags: sec-bounty? → sec-bounty+
Any update here?
AFAIK the code is merged and this bug is fixed. What kind of update do you need?
I want to know if the second payload is rewardable.
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)
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)
Hey folks. Any update here? Thanks.
What update are you looking for, Joao? Did you open a second bug as Chris requested in comment 43?
Oh, no. I didn't understand if his message was to me or other person. I will open another bug.
Blocks: 1138251
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.