Skip to content
Disclosed report CVE-2014-1589

Chrome level XBL bindings can be triggered from content

Cody Crews Follow

Originally disclosed on Mozilla

  • Fixed in 40 days
  • Paid in 4 months
  • Disclosed after 40 days
Text
Created attachment 8462331
loadChromeBindings-testcase-new.html

To see this work and begin to understand this issue, when viewing the testcase press the print button.  This could have been very serious if most everything involving anonymous content wasn't already undergoing massive change that we're just fortunate enough to be seeing in the most recent release.

I marked this major, please feel free to correct me if I'm wrong on that, but I don't think I am.  This shouldn't be confused with a previous bug of mine about triggering chrome level bindings because this requires no access to any anonymous content, and is simply due to the complexity of the mozilla source code base.  I could have filed this almost 2 weeks ago, but after testing in the newer nightly builds I could see that a lot of the real danger here is already being mitigated thanks to all the previous XBL torture.  The base issue is actually very simple, There's chrome accessible css sheets that are perfectly fine to be included in content as long as people were always careful to make sure that they declared the XUL namespace as the primary namespace in them, which hasn't been entirely consistent.  Before the most recent update these xul elements were completely accessible from content and that was really worrisome to me.  In the current release and up and it's much safer IMO.  What is happening here is because of the lack of the namespace definition in these files its possible to load include them and use generic elements with the right tag name and class/id definitions to trigger chrome level bindings in content.  I've clearly shown here that its still very possible to manipulate XBL through the WindowProperties Object.  By naming a window that is the window of a sub-document, XBL code in this instance can find the "PrintUtils" object that its looking for because the sandbox that XBL code executes in currently inherits the window that contains the bindings as a prototype.  Clearly it's very lucky that this lines up and that the window has a print function and there's no danger with that at all, but I haven't felt very eager to dig through all the XBL code to look for places where this could be much more serious.  I'm already up way too late for tonight and very tired so Ill leave it at that, just look over the testcase carefully.  Now for tomorrow, I've saved CSRF that's very easy to do and could easily lead to full blown XSS, so until then!

The original report as published on Mozilla's Bugzilla, by Cody Crews. 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 medium-severity security bug in XBL. Mozilla made it public on 2 September 2014 as CVE-2014-1589.

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

More by Cody Crews

View all

13 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.