Skip to content
Info disclosure Disclosed report Advanced CVE-2018-5106

Developer tool's traffic routes through service worker

The developer tools in Chrome fetched error details through a service worker registered on a different origin, leaking cross-origin information. An attacker could use this to read data from other origins via the service worker.

Jun Follow

Originally disclosed on Mozilla

  • Fixed in 54 days
  • Paid in 16 days
  • Disclosed after 54 days
Text
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Steps to reproduce:

1. Go to https://vuln.shhnjk.com/swnav.html
2. Now go to https://vuln.shhnjk.com/iframer.php?url=//www.bing.com/images/search?q=Edge
3. Open developer tools and click on any error. 


Actual results:

Resources required to show error details are fetched through service worker registered on https://vuln.shhnjk.com/swnav.html. Leaking cross-origin information.

Attaching PoC  video since it might be difficult to repro.


Expected results:

Developer tool's traffic should not go thought service worker.

The original report as published on Mozilla's Bugzilla, by Jun. 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.

How it worked

Root cause

Likely the developer tools did not properly isolate service worker requests from the inspected page's origin, allowing cross-origin fetches.

Impact

Cross-origin information could be leaked through the service worker, but the report does not specify the extent of data exposure.

What the attacker needed

Victim uses Chrome developer tools; attacker controls a service worker

How it was found

  1. Visit the page that registers a service worker.
  2. Navigate to a second page that triggers an error.
  3. Open developer tools and click on the error to see details.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

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

A service worker is a script that runs in the background of a website and can intercept network requests. Here, the browser's developer tools mistakenly used a service worker from one site to fetch information about errors on another site, which could let an attacker see data they shouldn't.

What is Info disclosure?

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

More by Jun

View all

17 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.