Skip to content
XSS Disclosed report CVE-2012-1957

JavaScript execution via special HTML in RSS view; XSS when pasting malicious content into contenteditable

Mario Heiderich Follow

Originally disclosed on Mozilla

  • Fixed in 47 days
  • Paid in 15 months
  • Disclosed after 47 days
Text
Created attachment 619421
test.rss

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:12.0) Gecko/20100101 Firefox/12.0
Build ID: 20120423123513

Steps to reproduce:

It is possible to execute JavaScript on the Feed-View - indicating that there might be a security issue leading to RCE. The bug was found as a side-effect while crafting a RSS version of the H5SC.

A PoC file is attached - please see below. The relevant part in the PoC file is this small snippet:

<description><![CDATA[<embed
src="javascript:top.SubscribeHandler.uninit=function(){alert('hello
chrome://')}">]]></description>

Firefox doesn't seem to filter <embed> elements inside the RSS <description> properly - so we can exec JavaScript. This allows us to hook into the pre-existing script tags. Note the alert in the PoC file is not a "classic website alert" but indicates privileged script exec. 

The bug was found on Ubuntu 11.10:
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0

I also tested in Win7 with Nightly (15.0.a1 - today's build) - same effect, JavaScript execution in Feed-View.

The original report as published on Mozilla's Bugzilla, by Mario Heiderich. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A high-severity XSS bug in Security. Mozilla made it public on 15 June 2012 as CVE-2012-1957.

About XSS

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by Mario Heiderich

View all

1 more disclosed report, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.