Skip to content
Disclosed report

html5 sandboxed iframe should not be able to perform top navigation with scripts allowed

Frederik Braun Follow

Originally disclosed on Mozilla

  • Fixed in 17 months
  • Paid in 11 months
  • Disclosed after 17 months
Text
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).

The original report as published on Mozilla's Bugzilla, by Frederik Braun. 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 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.

More by Frederik Braun

View all

4 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.