importScripts in ServiceWorkers ignores mixed content restriction
Originally disclosed on Mozilla
- Fixed in 23 days
- Paid in 25 days
- Disclosed after 23 days
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36
Steps to reproduce:
Mixed content blocking doesn't work in importScripts() of ServiceWorkers.
Steps to Reproduce:
1. Set devtools.webconsole.filter.serviceworkers=true to see worker's log by console.
2. Access to https://alice.csrf.jp/sw/importscripts/
3. Reload again and see the console and then ServiceWorker loads an external javascript from bob.csrf.jp via http.
Actual results:
If the message "A tainted javascript is loaded from http://bob.csrf.jp/." is shown on the console then mixed content restriction is ignored and the script is loaded from http: site.
Expected results:
Mixed contents restriction should be applied to importScripts on ServiceWorkers as with Web Workers. Note that the latest Chrome does.
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: Service Workers. Mozilla made it public on 17 September 2015.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.