Writing · public incident

Optimizely: an A/B snippet served a wallet clipper on ledger.com

A signup flaw let an attacker write code into 178 organizations' Optimizely projects. Of the sites Report URI checked, 24 blocked it with their CSP.

Summary

  • On 2026-11-16 an attacker used a flaw in Optimizely Web Experimentation's signup flow to add JavaScript to customer projects (CVE-2026-132224). Optimizely's CDN then served that code inside each customer's normal snippet.
  • Report URI found it in 188 of the 1,611 snippets it checked, at 178 organizations. Among them were Ledger, IG, OANDA / Coinpass, interactive investor and TMS Brokers.
  • The payload swapped wallet addresses on eight chains, skimmed cards typed into the site's own forms, stole cookies and screenshots, and sent iOS 18.6-or-earlier visitors to an exploit kit.
  • Allowing cdn.optimizely.com in a CSP did nothing. The sites that blocked the payload had a restrictive script-src without 'strict-dynamic' or 'unsafe-eval'.

Timeline, UTC

  1. First injection seen, in the BBC's snippetsecurity-firm
  2. The payload track.js first seen running on a live sitesecurity-firm
  3. Attacker sweeps stolen crypto to exchangessecurity-firm
  4. Card skimmer added to the payloadsecurity-firm
  5. iOS exploit-kit iframe added for iOS 18.6 and earliersecurity-firm
  6. Report URI sweep: 186 of 1,611 snippets infectedsecurity-firm
  7. Ledger's snippet clean, during a mass clean-up from about 20:40security-firm
  8. All infected snippets cleansecurity-firm
  9. Optimizely posts that the flaw is fixedprimary

What would have shown up first

JS-09

Script-hash baseline differs from the last recorded bytes

The snippet's bytes change on every legitimate experiment edit, so someone has to read the diff. Comparing it continuously is the Monitor pilot.

What happened

Optimizely Web Experimentation is an A/B testing tool. A site loads one snippet, cdn.optimizely.com/js/<project_id>.js, which Optimizely builds from the customer’s project. Each project has a Project JavaScript field that runs on every page the snippet loads on.

On 16 November an attacker found a way into that field. Optimizely says they “exploited a flaw in the Optimizely Web Experimentation account signup flow” and “used it to impersonate users on targeted customer accounts and insert malicious JavaScript into those customers’ projects”. Optimizely’s build then put the code into each customer’s snippet.

Optimizely’s CDN served exactly what it was given; this was not a CDN cache-poisoning attack.

Report URI

Report URI saw three versions of the injected loader. One was a plain script tag for 1688360.cc/track.js. One hid the same URL in base64 behind atob(), so a search for the domain finds nothing. The third carried a full inline copy of the payload and ran it through eval when 1688360.cc was blocked. Smartsheet’s snippet was cleaned and then infected again with the base64 version, so the attacker still had write access during the clean-up.

The attacker rebuilt the payload 26 times during the day, adding features and wallets. By the evening one script carried all of this:

  • Address swapping for BTC, EVM chains, TRON, Solana, TON, Litecoin, Bitcoin Cash and Dogecoin, in page text, form fields and the clipboard.
  • A card skimmer for the site’s own forms. Cards typed into hosted payment iframes, such as Stripe’s, were out of its reach.
  • Theft of non-HttpOnly cookies and a screenshot of the page, sent to 1688360.cc.
  • For iPhones and iPads at iOS 18.6 or earlier, an exploit chain in a hidden iframe, with the page reloading every 60 seconds to retry.

Report URI counted $7,040 received by the attacker’s wallets by 19:25 UTC. StepSecurity cites Alex Thorn of Galaxy Digital at about $2,300 sent by victims; he reads most of the Bitcoin as the attacker’s own exchange withdrawals. No public source counts the cards, cookies or infected phones.

A clipper on a wallet company’s site

Ledger loaded the snippet on ledger.com and www.ledger.com. Its snippet was cleaned at 20:41 UTC. Report URI’s timeline does not say when the code first appeared in it.

This incident does not affect the security architecture of Ledger devices. Your private keys remain protected by your Ledger device.

Ledger, statement quoted by U.Today

The clipper worked a step earlier, on the address a user copies from the page. A Ledger device shows the destination on its own screen before you sign, so a swapped address is visible there to anyone who compares it. A user who pays from a hot wallet or an exchange account has no such screen.

What separated the sites that were protected

Report URI crawled 256 hosts of the affected organizations and checked each Content Security Policy against what the payload needed.

What the CSP did Organizations
No CSP at all 68
Allowed the payload and the data theft 50
Payload ran, connect-src blocked the data theft 17
Payload blocked 24

Allowing cdn.optimizely.com changed nothing, since the code came from that host. Two common settings let the payload straight through. With 'strict-dynamic', any script the trusted snippet inserts is trusted too. With 'unsafe-eval', which Optimizely’s documentation tells customers to allow, the inline copy ran even where track.js was blocked. That happened at HSBC: its CSP stopped track.js and the data theft, and the inline copy still ran.

The 17 sites in the third row kept cards, cookies and screenshots in. Address swapping happens inside the page, so their visitors could still paste the attacker’s address.

What a script-hash baseline would have shown

The snippet kept its URL while its bytes changed. Each frontcanary scan records a SHA-256 baseline of the third-party scripts a page loads (JS-09), and a scan against that baseline shows the snippet changed. For an A/B snippet a changed hash means little on its own, because the bytes also change whenever someone edits an experiment. An experiment edit does not usually add a script host nobody has seen or a call to eval, so someone has to read the diff. Comparing continuously and reading the diff is the Monitor pilot. A scan fetches the page and does not run its scripts, so it would see the loader in the snippet, not track.js itself.

What helps

Keep experiment and tag scripts off the pages that matter

Pages where people copy a deposit address, connect a wallet, sign or pay do not need A/B tests. Leave the snippet off them. On those pages you can then drop 'unsafe-eval'.

Write script-src as a list of hosts

The 24 protected sites listed the hosts they needed. 'strict-dynamic' hands that decision to whatever the snippet inserts.

Restrict connect-src and turn on reporting

It kept the data theft in at 17 sites that still ran the payload. A reporting endpoint would also have shown 1688360.cc the first time a browser refused it.

Review write access at the vendor

Here the attacker had write access to the customer’s project. Check who and what can edit Project JavaScript: users, API tokens and integrations. Rotate what you cannot account for.

Subresource Integrity does not fit this snippet. Optimizely rebuilds it on every experiment change, and a pinned hash would break each time.

Sources

  1. Report URI, analysis of the infected snippets, the payload and the affected sites' CSP
  2. Optimizely, incident notice on its status page
  3. NVD, CVE-2026-132224
  4. StepSecurity, payload builds and the attacker's wallets
  5. U.Today, Ledger's statement

Request a free private scan

Passive checks on public data only. The full report goes only to a verified owner of the domain.