Closed
Bug 801046
Opened 14 years ago
Closed 13 years ago
IE xss in comments on Mozilla Developer Network
Categories
(developer.mozilla.org :: Security, defect, P1)
developer.mozilla.org
Security
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: yaroslav.c7s, Unassigned)
Details
(Keywords: reporter-external, wsec-xss, Whiteboard: [site:developer.mozilla.org][specification-like][type:bug])
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4
Steps to reproduce:
XSS in Mozilla Developer Network.
Work in IE 6, 7, 8, 9, 10(?).
Vulnerable page: https://developer.mozilla.org/ru/docs/new?slug=User%3A
Steps:
1. open https://developer.mozilla.org/ru/docs/new?slug=User%3A
2. click html mode (source)
3. paste
<!--[if]><script>alert(1)</script -->
<!--[if<img src=x onerror=alert(2)//]> -->
4. save
5. open page in IE
Updated•14 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
This is not duplicate.
Another xss vector!
This xss in if-comment.
Updated•14 years ago
|
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Updated•14 years ago
|
Flags: sec-bounty?
Updated•14 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: sec-bounty? → sec-bounty+
Comment 5•13 years ago
|
||
Curtis, do you still feel this should be a dupe of bug 800548? What was your reason for marking it a dupe in comment 1?
Flags: needinfo?(curtisk)
Updated•13 years ago
|
Status: NEW → UNCONFIRMED
Ever confirmed: false
I'm now unsure if this is a dupe, so I am fine with this proceeding on it's own unless someone more knowledgeable than I also thinks it's a dupe.
Flags: needinfo?(curtisk)
Comment 7•13 years ago
|
||
The vectors in bug 800548 and this bug are similar but I believe they are two distinct issues. Both are issues with the parsing of IE specific tags. This bug carries more risk in my opinion since compatibility mode isn't required for the code to execute.
The fix for 800548 is perform better validation of data inside the style tag.
The fix for this bug is to either disallow the IE specific directives, disable inclusion of HTML comments and/or escape everything inside the comment
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•13 years ago
|
Component: User profiles → Security
Updated•13 years ago
|
Whiteboard: [site:developer.mozilla.org]
Updated•13 years ago
|
Summary: xss in Mozilla Developer Network → IE xss in comments on Mozilla Developer Network
Comment 8•13 years ago
|
||
Sheppy, can you tell us if any of those fixes are non-starters for you? I.e.,
* Strip HTML comments
* Disallow IE-specific directives
* Escape HTML comments
Comment 9•13 years ago
|
||
Sheppy: Please see comment 8.
Luke: Should this be reported upstream to CKEditor? And if it should, should we wait for them or do it ourselves?
Flags: needinfo?(eshepherd)
Updated•13 years ago
|
Whiteboard: [site:developer.mozilla.org] → [site:developer.mozilla.org][specification-like][type:bug]
Updated•13 years ago
|
Priority: -- → P1
Comment 10•13 years ago
|
||
This isn't CKEditor - it happens on page display, not edit.
Comment 11•13 years ago
|
||
(In reply to Luke Crouch [:groovecoder] from comment #8)
> Sheppy, can you tell us if any of those fixes are non-starters for you? I.e.,
>
> * Strip HTML comments
> * Disallow IE-specific directives
> * Escape HTML comments
As far as I'm concerned, those are all fine, with disallowing IE-specific directives being the best option.
Flags: needinfo?(eshepherd)
Comment 13•13 years ago
|
||
Looks like this was fixed, but the GitHub robot didn't couldn't reach this bug to close it.
Status: NEW → RESOLVED
Closed: 14 years ago → 13 years ago
Resolution: --- → FIXED
Comment 14•13 years ago
|
||
Adding keywords to bugs for metrics, no action required. Sorry about bugmail spam.
Keywords: wsec-xss
Comment 16•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
•