When Javascript stack space is limited, window.open() returns a ChromeWindow
Originally disclosed on Mozilla
- Fixed in 9 days
- Paid in 2.4 years
- Disclosed after 9 days
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0b11) Gecko/20100101 Firefox/4.0b11
Build Identifier: Mozilla/5.0 (Windows NT 5.1; rv:2.0b11) Gecko/20100101 Firefox/4.0b11
If enough stack space is exhausted when window.open() is called, the new window's initialization fails in fundamental ways (it has no visual components besides the bare window and is not loaded as a tab), though the function manages to return a ChromeWindow reference. The opener window then has full read/write access to the ChromeWindow's document object, regardless of either's page location.
Reproducible: Always
Steps to Reproduce:
1. Open Firefox beta 11 (or possibly other beta versions)
2. Run either the testcase (attached), or the following code from the address bar:
(function g(){try{eval("g()")}catch(c){if(c!=2)throw c[0]?1:c+1;d=open('data:text/html,A page')}})()
After running the testcase, the error console contains new exceptions after subsequent pageloads, sometimes even after restarting the browser.
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 security bug in DOM: Core & HTML. Mozilla made it public on 3 March 2011.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.