Skip to content
Disclosed report

HTML imports bypasses prohibition of script execution by iframe[sandbox]

Muneaki Nishimura Follow

Originally disclosed on Mozilla

  • Fixed in 10 days
  • Paid in 21 days
  • Disclosed after 10 days
Text
User Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2224.3 Safari/537.36

Steps to reproduce:

1. Enable dom.webcomponents.enabled by about:config
2. Launch http://alice.csrf.jp/imports/sandbox.html

Here, sandbox.html loads victim.html in an iframe[sandbox] which prohibits script execution.


Actual results:

The script, http://mallory.csrf.jp/imports/scripts.php, runs on the sandboxed iframe and it shows alert windows.



Expected results:

The script in http://mallory.csrf.jp/imports/scripts.php has to be prohibited by iframe[sandbox] of the master document.

Suppose that the <link rel="import" href="http://mallory.csrf.jp/imports/scripts.php"> in victim.html is the code injected by an attacker.
Then, the script bypasses iframe[sandbox] and it runs on the target origin.

The original report as published on Mozilla's Bugzilla, by Muneaki Nishimura. 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 medium-severity security bug in DOM: Core & HTML. Mozilla made it public on 12 December 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 Muneaki Nishimura

View all

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