Closed
Bug 821988
Opened 13 years ago
Closed 13 years ago
Persistent XSS on Pages revisions(https://developer.mozilla.org/pt-PT/docs/project$revision/340177 )
Categories
(developer.mozilla.org Graveyard :: Editing, defect)
developer.mozilla.org Graveyard
Editing
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: netfuzzerr, Unassigned)
References
()
Details
(Keywords: reporter-external, sec-high, wsec-xss, Whiteboard: [site:developer.mozilla.org])
Attachments
(1 file)
|
964.47 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/25.0.1359.3 Safari/537.21
Steps to reproduce:
Hi,
There's a persistent xss vulnerability on https://developer.mozilla.org/en-US/docs/HTML$revision/338861 the content is showed without be escaped and so allowing persistent xss attacks.
PoC: https://developer.mozilla.org/en-US/docs/HTML$revision/338861
Cheers,
Mario
| Reporter | ||
Comment 1•13 years ago
|
||
Can this bug be eligible for a bounty?
This site is not officially in our list of eligible sites. This means we have to decide if your bug is worth making an exception and potentially setting a precedent.
We do appreciate learning about bugs in all of our sites. We publish a list of eligible sites for people who are only interested in bounties and we hope that can help reduce the frustration of wasting time in unfruitful areas.
http://www.mozilla.org/security/bug-bounty-faq-webapp.html#eligible-bugs
I will nominate this bug and see if the committee accepts it.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: sec-bounty?
Comment 3•13 years ago
|
||
Mario: we're not reproducing the XSS, has it been fixed?
Luke: did someone on your team change something around here?
We are considering officially adding MDN to the bug bounty program so please do continue filing bugs in this area.
Comment 4•13 years ago
|
||
I _do_ see a problem when using Chrome, as you are judging by comment 0. So now we have to figure out if that's a Chrome bug or a MDN bug. (And if it's an MDN bug then there may be a Firefox non-security bug as well since we should render most things the same as Chrome if we're both following the same standards.)
| Reporter | ||
Comment 5•13 years ago
|
||
As I explained on other bug, it's only the payload. Just change to "<svg><svg onload=alert(123);" with this payload will work in any Firefox/Chrome/IE/SAFARI/OPERA.
| Reporter | ||
Comment 6•13 years ago
|
||
Try with this PoC: https://developer.mozilla.org/pt-PT/docs/project$revision/340177 on firefox and see the alert.
| Reporter | ||
Updated•13 years ago
|
Summary: Persistent XSS on https://developer.mozilla.org/en-US/docs/HTML$revision/338861 → Persistent XSS on https://developer.mozilla.org/pt-PT/docs/project$revision/340177
| Reporter | ||
Updated•13 years ago
|
Summary: Persistent XSS on https://developer.mozilla.org/pt-PT/docs/project$revision/340177 → Persistent XSS on Pages revisions(https://developer.mozilla.org/pt-PT/docs/project$revision/340177)
Comment 7•13 years ago
|
||
Using the PoC in comment 6 on Nightly I do see the issue. Why is "onload" a whitelisted attribute?
Comment 8•13 years ago
|
||
(In reply to James Socol [:jsocol, :james] from comment #7)
> Using the PoC in comment 6 on Nightly I do see the issue. Why is "onload" a
> whitelisted attribute?
The attribute isn't whitelisted, it's worse than that: The whole of revision_content is marked |safe in the template.
https://github.com/mozilla/kuma/blame/master/apps/wiki/templates/wiki/revision.html#L85
(In reply to Les Orchard [:lorchard] from comment #9)
> https://github.com/mozilla/kuma/pull/790
Les, did you mean to mark this fixed?
I tried the URL in comment 6 and it WFM, now:
https://developer.mozilla.org/pt-PT/docs/project$revision/340177
Comment 12•13 years ago
|
||
Looks like this was fixed. Pull 790 was pushed and Stephen cannot reproduce.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
(In reply to John Karahalis [:openjck] from comment #12)
> Looks like this was fixed. Pull 790 was pushed and Stephen cannot reproduce.
Thx, verified FIXED on prod.
Status: RESOLVED → VERIFIED
Comment 14•13 years ago
|
||
we need to get a rating for this. anybody who actually saw the flaw could you please provide information that will help with that? We need to know how severe this was, where it was found, how likely it could be used for attack, etc.
thanks!
-r
Comment 15•13 years ago
|
||
Risk/Priority Ranking Exercise https://wiki.mozilla.org/Security/RiskRatings
Priority: 5 (P1) - Incident
Operational: 0 - N/A
User: 3 - Major
Privacy: 3 - Major
Engineering: 3 - Major
Reputational: 2 - Normal
Priority Score: 55
:rforbes, is that helpful? Mario, the reporter, should be able to answer how it was found.
Comment 16•13 years ago
|
||
by where it was found, i mean more how would the vulnerability be used. for instance, would you need to be logged in to access the vulnerability or was it available outside of a login process?
| Reporter | ||
Comment 17•13 years ago
|
||
Yep, that vulnerability could be triggered by any person, it wasn't necessary be logged to trigger it any person could see it.
That could be used to persistent xss, it was possible steal cookies, make spams, CSRF attacks(while we get the csrf token), steal user's informations.
THAT VULNERABILITY COULD BE TRIGGERED BY ANY PERSON I WAS NOT NECESSARY BE LOGGED TO TRIGGER IT.
(In reply to Raymond Forbes[:rforbes] from comment #16)
> by where it was found, i mean more how would the vulnerability be used.
> for instance, would you need to be logged in to access the vulnerability or
> was it available outside of a login process?
| Reporter | ||
Comment 18•13 years ago
|
||
The informations posted on comment 16 are enough to you? If not, please let me know if you need more informations.
(In reply to Raymond Forbes[:rforbes] from comment #16)
> by where it was found, i mean more how would the vulnerability be used.
> for instance, would you need to be logged in to access the vulnerability or
> was it available outside of a login process?
| Reporter | ||
Comment 19•13 years ago
|
||
IS THIS ELIGIBLE FOR A BOUNTY OR NOT? IT WAS ADDED TO BUG BOUNTY COMMITTEE A LONG TIME AGO, AND STILL WITHOUT NO UPDATE ABOUT THAT. YOU SAID THAT THE MEET ID "WEEKLY", BUT IT LOOKS LIKE "MONTHLY". CAN SOMEONE GIVE ME SOME UPDATE ABOUT THAT?
Cheers,
Mario
(In reply to Mario Gomes from comment #19)
> IS THIS ELIGIBLE FOR A BOUNTY OR NOT? IT WAS ADDED TO BUG BOUNTY COMMITTEE A
> LONG TIME AGO, AND STILL WITHOUT NO UPDATE ABOUT THAT. YOU SAID THAT THE
> MEET ID "WEEKLY", BUT IT LOOKS LIKE "MONTHLY". CAN SOMEONE GIVE ME SOME
> UPDATE ABOUT THAT?
>
> Cheers,
> Mario
Please stop spamming the bugs you submit looking for information like this. And typing in all caps is extremely rude. Please be patient as these things work through our process.
Comment 21•13 years ago
|
||
The bounty committee has decided to pay on this bug due to the severity of the issue.
Updated•13 years ago
|
Whiteboard: [site:developer.mozilla.org]
Updated•13 years ago
|
Group: websites-security
Updated•6 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
Updated•2 years ago
|
Keywords: reporter-external
You need to log in
before you can comment on or make changes to this bug.
Description
•