Subscribe free
Morning Merge JavaScript · Saturday, November 28, 20264 min read

A card skimmer that hid in WebRTC, past connect-src

Also: the case against optimistic updates, the EU on iOS browsers, Convex's skills

It's a thin Saturday, so one story gets the room: a checkout skimmer that moved its traffic onto a WebRTC data channel, where connect-src doesn't look. If your store loads third-party scripts, read it first.

The main thing

An isometric blueprint drawing of a wall-mounted pipe junction plate, with one golden plug sealing a small inlet socket while a disconnected coiled hose lies on the floor below.

A card skimmer that talked over WebRTC. InfoHawk found a card-skimming script on the stores of Lascana, Samsonite, American Tourister, Revolve and FWRD in the week before Black Friday. After InfoHawk's reports, all five had it removed on November 24 or 25, 2026.

InfoHawk watched it work on Lascana, where it sent a test card's details to a third party before the store checked the payment. So a declined order could still lose the card. InfoHawk says it doesn't know how many shoppers, if any, were hit.

The loader got in through a consent-banner setting, a retailer CDN file, a shared marketing pixel or the store's own HTML. It pulled Insds.js or gtage.js from an Amazon S3 bucket and ran only on small or touch screens, so desktop checks and homepage scans would likely miss it.

The weird part is the channel. Only two ordinary web requests go out, both to a brand-named northbridgeads[.]com host: GET /_cf/ice for relay details and POST /_cf/rel with a WebRTC offer. Everything after that runs over a WebRTC data channel through turn.cloudflare.com, outside connect-src.

The skimmer arrives in chunks over that channel, is checked against a SHA-256 digest and runs through eval. Card details go back the same way. Going through Cloudflare's relay lets the traffic blend in with ordinary WebRTC and hides the real endpoint, per InfoHawk.

One Hacker News commenter pointed out that nothing here needs WebRTC specifically. The same trick works over plain HTTP; WebRTC is just watched less. That's fair, and it's also why the defense still works.

InfoHawk's advice to site owners is a connect-src rule that lists only the hosts you use. That blocks the two setup requests, and without them the skimmer never arrives, whichever file was tampered with. If your checkout embeds pixels under a loose CSP, that's this week's ticket.

Worth reading

An isometric blueprint drawing of a toggle switch on a mounting panel, with a golden locking pin hovering above its socket, waiting to drop in.

Why optimistic updates are corrosive. This essay argues that showing a change as done before the server confirms it is plainly broken software. Flip a switch, come back, find it unflipped, and you stop trusting the app. The author's alternative is "instant intent": show only what's known to be true.

In the demo, a clicked switch looks pressed at once and takes no more clicks. If there's no answer within half a second it starts to blink, and it only updates when the server sends back the reconciled HTML, which Datastar morphs in place.

The author also claims this is easier to build, because you skip the reconciliation machinery that tells users a change they thought went through didn't. If your app has a rollback path nobody tests, that argument lands.

The EU calls browser competition a DMA priority. Open Web Advocacy, which campaigns on this, reports that the European Commission answered its open letter in comments to Politico. The Commission said "browser competition is one of the priorities of the Digital Markets Act" and that it is in talks to ensure rival browsers "can effectively compete" with Safari on iPhones and iPads.

That's a statement, not an enforcement step, and the source is the group that asked for it. The stake for web developers is Apple's browser engine restriction on iOS. On Hacker News, one commenter called it how Apple kept the mobile web from competing with native apps; another called it one of the last obstacles to a Chromium engine monopoly.

Check your agent skills

An isometric blueprint drawing of a golden bracket clamped in a vise under an inspection lamp, measured by a caliper before it goes into the machine beside it.

Convex's agent skills sent project ideas to a remote host. A GitHub issue on Convex's backend skill plugin, listed in Anthropic's claude-plugins-official marketplace, flagged three things. The quickstart skill POSTed the user's one-sentence project idea to basic-anteater-667.convex.site, marked in a comment as telemetry, without telling them. The add skill piped a script from the same host into bash.

The third is the strange one. The labs-quickstart skill split downloading and running into two Bash calls, because "a single command that both downloads remote code and executes it is the shape harness safety classifiers block." That's a skill coaching the agent around the user's own safety tooling.

A follow-up on the issue says the prompts aren't used for telemetry and only generate a custom quickstart. The issue's author says commit 51b4e65 drops the telemetry labels and lets the user approve or decline the download step.

Two gaps remain, per the issue's author: the scripts are still fetched unpinned at run time, and retention is given as 24 hours in the skill but "within 30s" on Hacker News.

Another commenter pulled the scripts. add-hosting.sh installs an unpinned npm dependency and pushes backend changes with your existing Convex authentication, and QB_NO_PUBLISH=1 doesn't prevent deployment, because npx convex dev --once runs before the flag is checked. If an agent sets up your Convex project, read those scripts first.

Lock connect-src on your checkout pages to the hosts you actually use.

← All Morning Merge JavaScript issues

Get this in your inbox every morning.

Free. Five minutes. Unsubscribe in one click.

Subscribe free →