Worth noting that this isn’t really anything to do with the technical capabilities of WebRTC, it’s just that it’s less frequently monitored for nefarious behavior. Same reason they’re only targeting mobile devices: harder to detect.
No reason this approach couldn’t be taken with simple HTTP requests. If you’re embedding third party scripts on your site you’re always vulnerable.
The article says that can only block the part of the WebRTC setup process that requires an HTTP request, though? So I wonder if it is possible for a WebRTC request to be set up with no external HTTP request at all.
I think it might. With a cooperating peer on an internet-routable IP address using ICE-lite you can use a static answer and it should still be possible for ICE to establish.
Haven't tried but in theory it should work.
You can apparently block WebRTC with `Content-Security-Policy: webrtc 'block'`
I do think it's fair to say if you were inventing WebRTC today the entire P2P and STUN/TURN aspect of it would need to go. (mdns also seems like a technology from a more naive time).
The MoQ people are annoying, but in one respect they are right, and that is that having browsers have channels of communication outside of the usually expected HTTP is a recipe for trouble.
No, you still need P2P for reasonably efficient video chat. Your options are P2P or millions of dollars and god knows the internet doesn't need more centralisation.
The moment you have more than two participants in a video chat it makes sense to use a relay node to reduce the bandwidth needed at each node. (See https://github.com/atomirex/umbrella <- shameless pre AI code).
P2P does things like exposes both participants IP straight to the other which are not desirable in the modern world. (Also the amount of networking metadata generated during connection negotiation is terrifying).
Once you're over those then the entire P2P side of the API looks like an anti feature. (But I am strongly in the camp of believing we need better unreliable network protocol support within HTTP channels).
> P2P does things like exposes both participants IP straight to the other which are not desirable in the modern world.
Is this actually a problem? I don't think it's a good security posture to consider knowledge of your IP to be a security boundary. You give out your IP to every website you visit and every service you connect to. Some of those websites are undoubtedly shipping your IP off to analytics platforms and other sketchy 3rd parties.
If you do need your IP to remain private, you're using a VPN, Tor, proxies, etc. But only a small minority of people really need this.
In general the websites you visit know your IP, but not other users you interact with on social media (or chat apps etc).
Social media users are more likely to have a personal interest in doing you harm by doing illegal (but not often prosecuted) things, like using your IP address to find your general IP location, DDOS you, scan your network for open ports/vulnerabilities and exploit them, phish your ISP into giving up your address (which can then be used to SWAT/stalk/etc), etc.
Someone who is vigilant about what links they click is probably not going to click coolwebsite.netlify.app, but might be fine going to zoom.us or meet.google.com.
Also, WebRTC is really hard to inspect even with devtools. Chrome DevTools just doesn't surface WebRTC connections or data transfer at all. There's just chrome://webrtc-internals/ and chrome://webrtc-logs/ which are very hard to use.
When you launch an intercepted Chromium there, it injects a browser extension which hooks webrtc and redirects all connections through a MITM for debugging & rewriting. Only works with bare chromium not chrome nowadays, as Chrome looks down extension setup far more tightly unfortunately (for quite good reasons, but mildly inconvenient for dev).
No reason this approach couldn’t be taken with simple HTTP requests. If you’re embedding third party scripts on your site you’re always vulnerable.
Replies (4)
Replies (1)
> On every page that takes payment, set a connect-src rule that lists only the hosts you use.
(Though you should really be setting a default-src that only lists `self`.)
Replies (1)
Replies (1)
Haven't tried but in theory it should work.
You can apparently block WebRTC with `Content-Security-Policy: webrtc 'block'`
Replies (1)
Right now there is a chrome-only policy to block it called Connection-Allowlist[1] eg
0: https://www.w3.org/TR/CSP3/1: https://developer.chrome.com/blog/connection-allowlist-annou...
The MoQ people are annoying, but in one respect they are right, and that is that having browsers have channels of communication outside of the usually expected HTTP is a recipe for trouble.
Replies (2)
Replies (1)
P2P does things like exposes both participants IP straight to the other which are not desirable in the modern world. (Also the amount of networking metadata generated during connection negotiation is terrifying).
Once you're over those then the entire P2P side of the API looks like an anti feature. (But I am strongly in the camp of believing we need better unreliable network protocol support within HTTP channels).
Replies (2)
Replies (1)
Is this actually a problem? I don't think it's a good security posture to consider knowledge of your IP to be a security boundary. You give out your IP to every website you visit and every service you connect to. Some of those websites are undoubtedly shipping your IP off to analytics platforms and other sketchy 3rd parties.
If you do need your IP to remain private, you're using a VPN, Tor, proxies, etc. But only a small minority of people really need this.
Replies (1)
Social media users are more likely to have a personal interest in doing you harm by doing illegal (but not often prosecuted) things, like using your IP address to find your general IP location, DDOS you, scan your network for open ports/vulnerabilities and exploit them, phish your ISP into giving up your address (which can then be used to SWAT/stalk/etc), etc.
Someone who is vigilant about what links they click is probably not going to click coolwebsite.netlify.app, but might be fine going to zoom.us or meet.google.com.
Replies (2)
Some background and screenshots here: https://httptoolkit.com/blog/decentralized-web-webrtc-debugg.... I'm the author.
When you launch an intercepted Chromium there, it injects a browser extension which hooks webrtc and redirects all connections through a MITM for debugging & rewriting. Only works with bare chromium not chrome nowadays, as Chrome looks down extension setup far more tightly unfortunately (for quite good reasons, but mildly inconvenient for dev).
All open source, backend is also usable standalone: https://github.com/httptoolkit/mockrtc
No one likes it when I say this, but don't use a smart phone for anything whatsoever.