Skip to content
Disclosed report CVE-2013-1670

Its possible to call a content level constructor as if from a chrome/privileged page

Cody Crews Follow

Originally disclosed on Mozilla

  • Fixed in 9 days
  • Paid in 4 days
  • Disclosed after 9 days
Text
Created attachment 728007
ccpoc.html

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
Build ID: 20130307023931

Steps to reproduce:

I used the mozContact constructor to gain access to a chrome level array and then added a content level constructor to it and defined a setter to do the calling for me.


Actual results:

The content level constructor behaves as if called from a privileged page as shown from the error, this works with most content level constructors(that are function objects) but using the File constructor was just the easiest way to show this off.  I had discussed this issue in passing in an email with Bobby Holly but hadn't had an easy way to show it off.


Expected results:

Chrome level Objects exposed to content should be careful about any properties that are 'rw' as defined in __exposedProps__, I think it may be best to avoid it at all if possible.  Arrays from chrome and the normal COWs(this works with them too) are going to have to be rethought.  This happens I believe because Function Objects inherit their principals from the nearest Object in the scope of their execution.

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 high-severity security bug in XPConnect. Mozilla made it public on 31 March 2013 as CVE-2013-1670.

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.