Skip to content
Info disclosure Disclosed report

Cross origin URL leakage by fetch event handler of service worker

Muneaki Nishimura Follow

Originally disclosed on Mozilla

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

Steps to reproduce:

1) Launch https://mallory.csrf.jp/sw/ and reload the page.
2) See the console log



Actual results:

The page opened by 1) tries to load https://gmail.com/ with <img> tag and it's HTTP request is captured by the fetch event handler in the service worker (https://mallory.csrf.jp/sw/service-worker.js).
Then, the parameter of the handler event.request.url contains the detailed URI of other origin, google.com, it's shown after redirect.

The actual URI retrieved from google.com can be shown by the console.log like this:
"Got the detailed URI of other origin --> https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=https://mail.google.com/mail/&ss=1&scc=1&ltmpl=default&ltmplcache=2&emr=1&osid=1"
It can be used by a malicious attacker to get visitor's confidential/sensitive information contained in the URL.


Expected results:

The detailed URI of cross origin after redirect should not be contained to event.request.url.

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 high-severity info disclosure bug in DOM: Service Workers. Mozilla made it public on 5 June 2015.

About Info disclosure

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

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

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.