Content can confuse XBL with prototypes and can impersonate XBL script using eval() and Function() (bypassing SOWs)
Originally disclosed on Mozilla
- Fixed in 4 months
- Paid in 2 months
- Disclosed after 4 months
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.
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.