Magecart attack: the card skimmer that left through WebRTC, and why CSP didn't see it

The week before Black Friday a card skimmer sat on five shopping sites, came in through a marketing pixel, a cookie banner and a CDN file, and sent card data out over a WebRTC data channel before the payment was even checked. One keystroke's path, why connect-src doesn't cover WebRTC, and what site owners and shoppers can do.

A card skimmer was planted on five online stores the week before Black Friday: Lascana, Samsonite, American Tourister, Revolve and FWRD. It came in through three different doors, read the card form as people typed, and sent what it read out through WebRTC, the browser technology behind video calls. It did this before the store had checked the payment, so a card could leak even if the order was declined. The case was published on 27 November 2026 by InfoHawk in Credit card skimming scripts using WebRTC found on popular shopping sites. Unless another link is given, the details below come from that report.

This post follows one keystroke from the checkout field to the attacker, then looks at what would have stopped it. Nothing here was tested by us; it all comes from the report, the specs and vendor documentation.

Three doors in

Every skimmer needs a way in, a way to read the card, and a way out. The way in was code the stores loaded from someone else, or from a place they trusted:

Store Door What changed
Lascana Marketing pixel from Quorum, an ad-attribution platform The pixel file’s last line could point to attacker storage buckets
Samsonite, American Tourister Cookie banner from Seers, a consent platform The privacy-policy link setting held a hidden image whose onerror handler loaded the code
Revolve, FWRD A file on Revolve’s own CDN The file itself was altered

InfoHawk says all three appear to share the same attacker infrastructure. The skimmer also hid from the people looking for it. It ran only on small or touch screens, and on Samsonite only on /checkout, so a desk-based check on a laptop would see a clean site.

InfoHawk reported the code to the companies on 24 November. Lascana, Samsonite and American Tourister were clean the same day; Revolve confirmed removal on 25 November. InfoHawk saw card data leave a site once, on Lascana, with a test card, and says it does not know how many real cards, if any, were taken.

One keystroke, step by step

One keystroke, step by step (diagram, not to scale)You typecard fieldSkimmerreads fields2 requestsrelay + offerWebRTCdata channelTURN relayCloudflareAttackerhiddenCSP connect-srcblocks the 2 setup requests: the channel never opensCSP connect-src: blocks the 2 setup requests: the channel never opensCSP webrtc 'block'in the CSP3 draft; no major browser enforces it yetCSP webrtc 'block': in the CSP3 draft; no major browser enforces it yetConnection-AllowlistChrome 152+: blocks the requests and WebRTC by defaultConnection-Allowlist: Chrome 152+: blocks the requests and WebRTC by defaultCard fields in a payment iframethe page's scripts can't read the card fieldsCard fields in a payment iframe: the page's scripts can't read the card fields
The steps as described by InfoHawk (27 Nov 2026): setup via GET /_cf/ice and POST /_cf/rel, then code delivery and exfiltration over the data channel through Cloudflare's TURN relay. Coverage from MDN (connect-src), W3C CSP3 draft §6.2.1 with Mozilla bug 1783489 and WebKit bug 255651 still open, and Chrome's Connection Allowlist docs (Chrome 152). Bars show which steps each control can stop.

1. You type. The skimmer copied the card number, expiry, security code, name, address, phone and email as they were typed. Nothing waited for the Pay button.

2. Nobody has checked the payment yet. That is why a declined or cancelled order doesn’t help. In the report’s words, “a card could be taken even if the order was declined or cancelled.”

3. Two ordinary web requests. Before the data could leave, the script asked an attacker-controlled host for relay details (GET /_cf/ice) and sent its connection offer (POST /_cf/rel). These are normal HTTP requests.

4. The WebRTC data channel. WebRTC is best known for video calls, but it also has data channels for arbitrary data between browsers. RFC 8831 describes the stack: SCTP over DTLS over ICE/UDP. So the bytes leave as encrypted UDP, not as HTTP requests, and tools that inspect web requests have nothing to look at. In this case the channel carried both directions: the skimmer’s code came in through it in chunks, was checked against a SHA-256 digest and run, and the card data went out through it.

5. A TURN relay. Two WebRTC peers often can’t reach each other directly, so WebRTC uses helpers: STUN tells a browser its public address, and TURN relays traffic when a direct path fails. This skimmer used Cloudflare’s public TURN service at turn.cloudflare.com (Cloudflare’s docs describe it as “a relay point for traffic between WebRTC clients”). The attacker’s answers listed only Cloudflare relay addresses, so the only address on the wire was Cloudflare’s.

It isn’t the first time. In March 2026 Sansec described a WebRTC skimmer on a car maker’s store and called it “the first time Sansec has observed WebRTC used as a skimming channel.”

Why Content Security Policy didn’t see it

Content Security Policy (CSP) is a response header where a site lists what its pages may load and whom they may talk to. The directive for outgoing connections is connect-src. MDN lists what it controls: <a ping>, fetch(), fetchLater(), XMLHttpRequest, WebSocket, EventSource and navigator.sendBeacon(). WebRTC isn’t on the list. Sansec says the same: connect-src does “not restrict RTCPeerConnection”.

The spec does have an answer. The CSP Level 3 draft (Working Draft, 27 October 2026) defines a webrtc directive with two values, 'allow' and 'block'. But Firefox’s bug 1783489 to implement it is still NEW and unassigned, WebKit’s bug 255651 has been NEW since April 2023, and Report URI’s write-up on WebRTC skimmers says “browsers don’t support it yet”.

Chrome took a different route. Connection Allowlist, “officially available starting in Chrome 152” (announced 23 September 2026), is a separate Connection-Allowlist response header. It lists the hosts a page may connect to and, per Chrome’s guide, covers fetch, XHR, subresources, beacons, navigations, WebSocket, WebTransport and WebRTC. WebRTC is blocked unless the site adds webrtc=allow. The catch is in the same guide: it has “shipped in only a single browser engine”, so Firefox and Safari visitors get no protection from it.

The skimmer’s weak spot

Here’s the part that helps on every browser today. The data channel was invisible to connect-src, but the two setup requests in step 3 were not. InfoHawk calls them “ordinary web requests that connect-src can block”. A checkout page whose connect-src lists only the hosts it really uses would have refused both requests, and the channel would never have opened. That is InfoHawk’s first recommendation for site owners. (Not every WebRTC skimmer needs an HTTP step first, so this is about this case, not a general guarantee.)

Magecart, briefly

“Magecart” is the umbrella name for skimmers injected into web checkouts; Sansec explains it as Magento plus shopping cart. The best-known case in Europe is British Airways. According to the ICO’s penalty notice, code on BA’s site copied card data to the attacker’s domain BAways.com for 15 days, from 21 August to 5 September 2018, “without interrupting the normal BA booking and payment procedure”. About 429,612 people were affected. A third party noticed the traffic and told BA.

Proposed (NOI, 2019)Proposed (NOI, 2019): £183.39m £183.39m Before COVID-19 relief£30m − 20% mitigationBefore COVID-19 relief: £24m £24m Final penalty (Oct 2020)Final penalty (Oct 2020): £20m £20m
ICO Penalty Notice, British Airways, 16 Oct 2020: skimming code live for 15 days (21 Aug – 5 Sep 2018), about 429,612 people affected. The £24m step is the ICO's £30m starting figure reduced by 20% for mitigation; COVID-19 relief brought it to £20m. Bars to scale.

What site owners can do

  • Keep third-party tags off payment pages. InfoHawk: “Card fields should sit in an isolated payment frame.” If the card fields live in the payment provider’s iframe, scripts on your page can’t read them.
  • A strict connect-src on every payment page, listing only the hosts the page needs. Add Connection-Allowlist for Chrome visitors.
  • Subresource Integrity (SRI) for files you control. With an integrity hash on the <script> tag, the browser refuses to run a file that doesn’t match. That fits a versioned bundle on your own CDN (door three). It doesn’t fit a vendor tag that changes all the time, or a settings field like the cookie-banner link (door two), which is why script inventories and monitoring matter too.
  • Audit vendor settings, not only code. Check that every URL field in a consent banner or tag manager holds only a URL.
  • Test checkout on a phone-sized touch screen. This skimmer didn’t run on desktops.
  • PCI DSS v4 already asks for this. Since 31 March 2025, requirement 6.4.3 says all payment page scripts loaded in the consumer’s browser are managed: “A method is implemented to confirm that each script is authorized. A method is implemented to assure the integrity of each script. An inventory of all scripts is maintained with written justification as to why each is necessary.” Requirement 11.6.1 asks for a change- and tamper-detection mechanism that alerts on unauthorized changes to “the HTTP headers and the contents of payment pages as received by the consumer browser”, at least once every seven days or periodically per a targeted risk analysis (text as shown in a PCI SSC Community Meeting deck). Merchants who fully outsource card entry and validate with SAQ A no longer have these two in their questionnaire, but must confirm their site “is not susceptible to attacks from scripts”.

What shoppers can do

  • Use a phone wallet where you can. Apple says “Neither Apple nor your device sends your actual payment card number to the app”; the store gets a Device Account Number and a “transaction-specific dynamic security code” (Apple). A skimmer on the page can still read anything you type, such as your address, but there’s no card number to read.
  • Virtual card numbers. Some banks issue separate numbers that can be locked to one store, for example Capital One (credit cards only).
  • If a checkout failed strangely, watch your statement, call your card issuer and ask for a new number. Card networks have zero-liability rules for fraud online, such as Visa’s, but InfoHawk notes that debit cards have weaker protection that depends on how fast you report.

Sources

An earlier post covers a different supply chain attack, where one Optimizely snippet reached 178 organisations and CSP stopped part of it: Supply chain attack: one Optimizely snippet.