DEV Community

Cover image for WebRTC stole cards at 5 stores — I re-checked the cleanup
frank chu
frank chu

Posted on

WebRTC stole cards at 5 stores — I re-checked the cleanup

WebRTC stole cards at 5 stores — I re-checked the cleanup

Five stores, one invisible channel, zero warnings to the shopper. A card skimmer hid in the checkouts of Lascana, Samsonite, American Tourister, Revolve, and FWRD in the week before Black Friday, and it sent stolen card details out over a WebRTC data channel — a channel your Content Security Policy cannot see. I re-checked every indicator from the report this morning. The loader files are gone, but the attacker's domain still resolves.

What the report says

InfoHawk published the investigation today, November 27. The skimmer was planted through three different supply-chain holes: an altered Quorum marketing pixel (Lascana), an edited Seers cookie-banner setting (Samsonite, American Tourister), and an altered file on Revolve's own CDN (Revolve, FWRD). All five sites removed it on November 24 or 25, after InfoHawk's notification.

The researchers caught it live once, at Lascana's checkout, where it sent their test card's details to a third party. The skimmer grabs the card number, expiry, and security code plus name, address, phone, and email — and it fires before the store checks the payment, so a card can be taken even if the order is declined or cancelled. Nothing looks wrong to the shopper. How many real shoppers were hit is unknown; the report is explicit that it does not know.

My re-check, this morning

I ran the report's own indicator list against the live internet. The scanner is short enough to print in full:

import requests, re
IOC = [r'Insds\.js', r'gtage\.js', r'KghRtc', r'rtc-signal-v1',
       r'quickfetch', r'northbridgeads', r'/_cf/ice', r'/_cf/rel',
       r'turn\.cloudflare\.com', r'-static\.s3\.amazonaws\.com']
# fetch each homepage with a mobile user agent, grep for every pattern
Enter fullscreen mode Exit fullscreen mode

The loader files first:

lascana-static.s3.amazonaws.com/Insds.js    404
revolve-static.s3.amazonaws.com/gtage.js     403
samsonite-static.s3.amazonaws.com/Insds.js   403
qscripts.s3.amazonaws.com/pscript.js         200, 3,809 bytes, last line clean, 0 IoC matches
Enter fullscreen mode Exit fullscreen mode

The 404 and the two 403s are both good news in different ways: Lascana's bucket no longer serves the file at all, and the Revolve/Samsonite buckets are locked down. The Quorum pixel file, pscript.js, is still live at 200 — and its last line is clean, which is exactly what the report said Quorum did on November 24 at 21:09 UTC when it restored the clean pixel. The instruction in the report was "check its last line for one of the above CDN buckets"; I checked, and there is nothing there.

Then the attacker's infrastructure:

northbridgeads.com   resolves to 198.18.153.210, but HTTP and HTTPS return nothing (000)
Enter fullscreen mode Exit fullscreen mode

The domain still resolves, but nothing answers on it anymore. A dead domain that still resolves is the normal shape of a takedown in progress — DNS outlives the server.

Finally, the five homepages, fetched with a mobile user agent (the skimmer only ran on small/touch screens):

Lascana            200, 159,894 bytes, IoC hits: none
Samsonite          200, 831,484 bytes, IoC hits: none
American Tourister 200, 626,590 bytes, IoC hits: none
Revolve            200, 208,415 bytes, IoC hits: none
FWRD               200, 152,877 bytes, IoC hits: none
Enter fullscreen mode Exit fullscreen mode

Why CSP can't see it

This is the part that matters beyond this one incident. The skimmer works in 7 steps, and only step 4 is an ordinary web request: GET /_cf/ice fetches relay details and POST /_cf/rel sends the WebRTC offer to a northbridgeads.com host. Steps 5 to 7 — the relay handshake, the skimmer code arriving in chunks over the data channel, the card details going back the same way — run over a WebRTC data channel through Cloudflare's TURN relay (turn.cloudflare.com).

MDN's connect-src page lists exactly what the directive controls: ping, fetch(), fetchLater(), XMLHttpRequest, WebSocket, EventSource, and Navigator.sendBeacon(). RTCPeerConnection is not on the list. A data channel is DTLS/SCTP to a TURN relay, not a fetch — so connect-src 'self' does nothing to it, and neither does any rule written against hostnames, because the traffic's visible endpoint is the relay, not the attacker.

The report's own fix is narrower and correct: a connect-src rule that lists only the hosts you use blocks the two web requests in step 4, and without them the skimmer never arrives. The data channel is unstoppable by CSP, but it is also unreachable without the bootstrap requests that CSP can block. That is the whole defense in one sentence: you cannot filter the channel, so you starve it at the front door.

The pattern is bigger than five stores

The same report notes the November 16 Optimizely incident, where an attacker used a flaw in Optimizely's Web Experimentation product to push malicious code through Optimizely's own servers to 178 organizations' sites, including Zoom, the BBC, and CNN — with no change to those sites' own code. Third-party scripts on payment pages are the common thread: the vendor can change the file at any time, it runs with the site's own privileges, and it can pull in further code the site never reviewed.

Caveats, stated plainly

My homepage scan is a weak check, and I will say so: the skimmer ran on checkout pages, on mobile, and only when the server enabled it — a clean homepage does not prove a clean checkout. The strong evidence is the loader files (404/403) and the clean pixel, not the homepage grep. I did not observe a live exfiltration; the script was removed before I started. The 403s could mean the files were deleted or the buckets were made private — either way, they are not serving the loader. And the report's "how many shoppers" question remains unanswered by anyone, including me.

Sources

Top comments (0)