An attacker rigged Optimizely’s page-testing scripts late Sunday into Monday, planting code that could replace crypto addresses with the attacker’s own on the websites of 178 organizations, among them Ledger, Zoom, HSBC and the BBC.
Its crypto tool was an address swapper: it scanned each page and the visitor’s clipboard for crypto wallet addresses and put the attacker’s in their place, so a visitor who pasted one could send funds to the attacker. About nine hours in, the attacker added code that captured the number, expiry date and security code of any card typed into a checkout form the site hosted itself.
Optimizely sells A/B testing: a site loads its script to try two versions of a page on different visitors and keep the one that performs better. Report URI, a web-security firm, published the findings at 5:47 p.m. ET Monday in a post by Scott Helme: of 1,611 Optimizely files it fetched, 188 carried the code.
Get Unchained’s crypto news in your inbox with the free Unchained Daily newsletter.
A Bug in Account Signups
Optimizely told BleepingComputer the attacker got in through a bug in how new accounts are created for its Experimentation testing product. It said it has signed affected users out, revoked access tokens and reset their access. Its status page does not mention signup; it says an unauthorized party “exploited a vulnerability in Experimentation and used it to add malicious JavaScript to some customer projects,” and the incident was still listed as monitoring on Tuesday.
Optimizely has not said how a flaw in signing up new accounts gave one attacker write access to projects at 178 unrelated organizations. Helme wrote that this was “for Optimizely to explain.”
Ledger’s security team said in an X post that “the malicious code is no longer being served through our website.” The team added in the same post, “This incident does not affect the security architecture of Ledger devices.”
Attacker Cashes Out, Then a Late Deposit
Report URI found every infected file cleaned by 6:11 p.m. ET Monday. Report URI’s updated tally puts the attacker’s receipts at about $7,150 in bitcoin, litecoin, ether, USDT (Tether’s dollar-pegged stablecoin) and other tokens, and the attacker emptied the wallets around midnight ET. That total counts every receipt, not confirmed victim losses.
Unchained’s check of the attacker’s Litecoin address found a new deposit of 1.7065 litecoin, about $76, at 5:18 a.m. ET Tuesday, about 11 hours after Report URI found every infected file clean. Who sent it is unknown.
In October, SlowMist flagged similar address-swapping code in Udesk’s chat script.
Related Listen: Why the Theft of $100 Million From Ledgers Took ‘Months of Research and Development’
