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.
- Fixed in 54 days
- Paid in 16 days
- Disclosed after 54 days
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.
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
- Visit the page that registers a service worker.
- Navigate to a second page that triggers an error.
- 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.