HTML imports bypasses prohibition of script execution by iframe[sandbox]
Originally disclosed on Mozilla
- Fixed in 10 days
- Paid in 21 days
- Disclosed after 10 days
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.
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.