Skip to content
Disclosed report

Content can confuse XBL with prototypes and can impersonate XBL script using eval() and Function() (bypassing SOWs)

Cody Crews Follow

Originally disclosed on Mozilla

  • Fixed in 4 months
  • Paid in 2 months
  • Disclosed after 4 months
Text
Created attachment 686079
stealanon.html

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Firefox/17.0
Build ID: 20121119183901

Steps to reproduce:

I modified the prototype of XULElement for the current window to have a getter defined for setAttribute, then i included a video element to the document body.


Actual results:

Since the getter is called by the anonymous content its possible to grab a reference to the content using 'this'.  I also found it was possible to create a function at the time of execution to allow interaction with this content which otherwise would throw a security error.


Expected results:

The content provided by XBL should reference prototypes not available in the context of the current window when providing fully anonymous content.

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 Security. Mozilla made it public on 21 March 2013.

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.