html5 sandboxed iframe should not be able to perform top navigation with scripts allowed
Originally disclosed on Mozilla
- Fixed in 17 months
- Paid in 11 months
- Disclosed after 17 months
Created attachment 654934
test main file, contains the sandboxed iframe element
When sandboxing an iframe with the allow-scripts directive, said iframe's content is allowed to change the location of the current website using a top.location assignment.
This is *not* in conjunction what IE and Chrome do, however I failed to pull out the relevant part of the specification for this case. However, since there is a designated "allow-top-navigation" keyword, it is probably wise to deny this feature unless explicitly stated in the sandbox attribute anyway.
I tested this on Nightly and attach my three simple html pages as follows:
test_topnav.html: Contains the sandbox iframe element that has src=topnav.html, the only sandbox attribute is allow-scripts.
topnav.html: This is supposed to be sandboxed and tries moving the outer window away to topnav2.html
topnav2.html: This website just says that the test case failed (i.e. top navigation was possible).
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 17 January 2014.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.