Universal XSS with browser_fallback_url extra in intent: URL on Fennec
Originally disclosed on Mozilla
- Fixed in 22 days
- Paid in 28 days
- Disclosed after 22 days
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.99 Safari/537.36
Steps to reproduce:
The following source code for Fennec allows universal XSS attack with the browser_fallback_url extra in intent: URL.
http://lxr.mozilla.org/mozilla-central/source/mobile/android/base/IntentHelper.java#186
Please see the live demo by Fennec.
https://mallory.csrf.jp/intent/fallback.html
In this page, parent document injects script code "alert(document.domain)" to nsa.gov opened in the iframe like this.
<iframe src="https://www.nsa.gov" onload="this.src='intent://any#Intent;scheme=httpz;S.browser_fallback_url=javascript%3Aalert%28document.domain%29;end'">
Actual results:
The injected code to nsa.gov via "S.browser_fallback_url=javascript%3Aalert%28document.domain%29" in the intent: URL is executed.
Expected results:
The injected code should not be executed.
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 XSS bug in General. Mozilla made it public on 20 October 2015 as CVE-2015-7191.
About XSS
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.