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)

defect

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
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
This is not duplicate. Another xss vector! This xss in if-comment.
?
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Flags: sec-bounty?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: sec-bounty? → sec-bounty+
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)
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)
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
Component: User profiles → Security
Whiteboard: [site:developer.mozilla.org]
Summary: xss in Mozilla Developer Network → IE xss in comments on Mozilla Developer Network
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
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)
Whiteboard: [site:developer.mozilla.org] → [site:developer.mozilla.org][specification-like][type:bug]
Priority: -- → P1
This isn't CKEditor - it happens on page display, not edit.
(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)
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
Adding keywords to bugs for metrics, no action required. Sorry about bugmail spam.
Keywords: wsec-xss
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.