On November 27, InfoHawk reported card-skimming scripts that used WebRTC on popular shopping sites, and the post became a big Hacker News thread (619 points, 378 comments). Lascana, Samsonite, American Tourister, Revolve and FWRD all carried a loader backed by the same attacker infrastructure, delivered by different routes: a marketing pixel (Quorum), a cookie-consent banner setting (Seers), and a tampered file on the retailer's own CDN.
The technically interesting part is not the way in but the way out. Both fetching the skimmer and sending card data out went over a WebRTC data channel, so part of the attack sits where even a carefully tightened CSP connect-src can't reach. The 2026-11-17 report (the Optimizely compromise and strict-dynamic) noted that an allowlisted connect-src stopped data leaving some sites. This attack looks designed around exactly that defence, and tunnels under it.
On HN, someone asked "Would CSP mitigate this?" The founder of a CSP service answered that WebRTC doesn't fall under connect-src (and can't), so it is commonly used as a global CSP bypass, and that the webrtc directive isn't widely adopted yet. Another commenter added that CSP3's webrtc 'block' currently does nothing in Chrome or Firefox, while the Chrome-only Connection-Allowlist header can do webrtc=block. Today's deep dive is about why WebRTC is the odd one out, and how Connection-Allowlist was designed to close the gap.
CSP's fetch directives (connect-src, img-src, script-src, …) work by checking a request that has a URL against an allowlist just before the browser sends it. fetch(), XHR, WebSocket and sendBeacon all look like "name one URL, open one connection", so they fit that model neatly.
RTCPeerConnection doesn't look like that.
turn.cloudflare.com), so the network showed only Cloudflare addresses and hid the real destination.In other words, CSP's basic move, matching a destination URL against an allowlist, structurally doesn't apply to WebRTC. That's why connect-src doesn't cover it, and why covering it wouldn't give a meaningful check anyway.
Summarising InfoHawk's diagram, only step 4 is an ordinary HTTP request.
onerror handler loaded the code.)Insds.js / gtage.js from an S3 bucket./checkout only.GET /_cf/ice fetches relay details and POST /_cf/rel sends the WebRTC offer, to an ad-agency-sounding domain. This is the only step connect-src can block.eval.