HTML injection on homescreen app (with bypassing DOM sanitizer)
Originally disclosed on Mozilla
- Fixed in 3 days
- Paid in 9 days
- Disclosed after 3 days
Created attachment 8642002
reproduced.png
1. Prepare a device that Firefox OS 2.5.0.0-prelease is installed.
I used my Flame with a firmware id 201507311030207.
2. Launch Browser and open http://csrf.jp/manifest/xss.html .
3. Push 'Add to home screen' button and 'Add' button.
Then a bookmark with a lock icon is created.
4. Long press the lock icon and try to uninstall the bookmark.
5. As attached picture, a confirmation dialog is shown with FM Radio application (if reproduced).
At step 2, the page sets "<s>PoC<iframe src=app://fm.gaiamobile.org/index.html mozbrowser></iframe>" as it's application name throught the web manifest.
When I set iframe tag simply like "<iframe src=app://fm.gaiamobile.org/index.html mozbrowser></iframe>" as an application name then the iframe is correctly removed by DOM sanitizer in Gaia.
But above text pattern, i.e., <s> + <iframe>, can bypass DOM sanitizer and the iframe is executed with homescreen app's privilege.
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 Gaia. Mozilla made it public on 4 August 2015 as CVE-2015-8510.
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.