Local Network Access Restrictions for WebRTC
- Category
- Security
- Type
- New or changed feature
- Status
- Proposed (Chrome Proposed)
- Intent stage
- None
Summary
Restricts the ability to make requests to the user's local network using WebRTC, gated behind a permission prompt. A local network request is any request from a public website to a local IP address or loopback, or from a local website (e.g. intranet) to loopback. Gating the ability for websites to perform these requests behind a permission reduces the ability of sites to use these requests to fingerprint the user's local network. This permission is restricted to secure contexts. This work is adding to the Local Network Access Restrictions work here: https://chromestatus.com/feature/5152728072060928
Motivation
Currently public websites can use WebRTC to probe a user's local network, perform CSRF attacks against vulnerable local devices, and generally abuse the user's browser as a "confused deputy" that has access inside the user's local network or software on their local machine. Gating the ability for sites to make local network requests using WebRTC behind a permission prompt helps stop the exploitation of vulnerable devices and servers from the drive-by-web, and gives users control over which sites can probe their local network.
Standards & signals
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=local-network-access-restrictions-for-webrtc
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Local%20Network%20Access%20Restrictions%20for%20WebRTC
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Local%20Network%20Access%20Restrictions%20for%20WebRTC
- Baseline status: https://webstatus.dev/?q=Local%20Network%20Access%20Restrictions%20for%20WebRTC
Explainers: https://github.com/explainers-by-googlers/local-network-access?tab=readme-ov-file#integration-with-webrtc