Remix.run Logo
▲ afavour 5 hours ago

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.

▲sufianrhazi 2 hours ago | parent | next [-]

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.

▲pimterry an hour ago | parent | next [-]

HTTP Toolkit can do it! https://httptoolkit.com/

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

▲ an hour ago | parent | prev [-]
[deleted]
▲edoceo 5 hours ago | parent | prev | next [-]

Would CSP mitigate this?

▲deathanatos 4 hours ago | parent [-]

From TFA:

> 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`.)

▲TazeTSchnitzel 4 hours ago | parent [-]

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.

▲K0nserv 4 hours ago | parent [-]

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'`

▲fidotron 4 hours ago | parent | prev [-]

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.

▲cowlevel 3 hours ago | parent [-]

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.

▲fidotron 3 hours ago | parent [-]

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

▲cowlevel 3 hours ago | parent [-]

Video chat is always more than 2 people is it

▲mjochim 3 hours ago | parent [-]

It really isn't. I frequently do 1 on 1 video calls with someone.