Why this, why now

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.

The problem

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.

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.

How it works

The attack in seven steps

Summarising InfoHawk's diagram, only step 4 is an ordinary HTTP request.

  1. A loader gets onto the page through a pixel, a banner setting, a CDN file and so on. (In the Seers case, the privacy-policy URL field held a hidden image whose onerror handler loaded the code.)
  2. It loads Insds.js / gtage.js from an S3 bucket.
  3. It only runs on small or touch screens. The Samsonite version runs on /checkout only.
  4. 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.
  5. It opens a data channel through the TURN relay.
  6. The skimmer arrives over the channel in chunks, is checked against a SHA-256 digest, then run with eval.