Hacker Plants Crypto Address-Swapping Code in Optimizely Scripts Used on 178 Websites

Hacker Plants Crypto Address-Swapping Code in Optimizely Scripts Used on 178 Websites

Hacker turns Optimizely scripts into a crypto address swapper

An attacker planted code in Optimizely's page-testing scripts late Sunday into Monday that could replace crypto wallet addresses on websites with the attacker's own addresses. The infected scripts were served on the sites of 178 organizations, including hardware wallet maker Ledger, Zoom, HSBC and the BBC.

Optimizely, a company that sells A/B testing software, says the attacker got in through a bug in how new accounts are created for its Experimentation product. A/B testing tools load a script on a website to show different versions of a page to different visitors, so the company can keep the version that performs better.

Key points

  • The code scanned pages and the visitor's clipboard for crypto wallet addresses and swapped them for the attacker's addresses, so a visitor who pasted an address could send funds to the attacker.
  • About nine hours into the attack, the attacker added code that could capture the number, expiry date and security code of any card typed into a checkout form the site hosted itself.
  • Of 1,611 Optimizely files the web-security firm Report URI fetched, 188 carried the malicious code.
  • Report URI put the attacker's receipts at about $7,150 in bitcoin, litecoin, ether, USDT and other tokens. USDT is a stablecoin, a token pegged to the US dollar.
  • A new deposit arrived in an attacker wallet about 11 hours after the last infected file was cleaned.

What the security firm found

Report URI published its findings at 5:47 p.m. ET Monday in a post by Scott Helme. The firm said every infected file was cleaned by 6:11 p.m. ET Monday. The $7,150 figure counts every receipt into the attacker's wallets, not confirmed victim losses.

Unchained's check of one attacker Litecoin address found a new deposit of 1.7065 litecoin, about $76, at 5:18 a.m. ET Tuesday. That was about 11 hours after Report URI found every infected file clean. Who sent the deposit is unknown. The attacker emptied the wallets around midnight ET.

What Optimizely says happened

Optimizely told BleepingComputer that 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.

The company's status page does not mention the signup issue. It says an unauthorized party "exploited a vulnerability in Experimentation and used it to add malicious JavaScript to some customer projects." The incident was still listed as being monitored on Tuesday.

Optimizely has not explained 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 says its devices are unaffected

Ledger's security team said in an X post that "the malicious code is no longer being served through our website." The team added, "This incident does not affect the security architecture of Ledger devices."

What is confirmed and what is not

Confirmed: the infected scripts ran on 178 organizations' websites, the code swapped crypto addresses and later captured card details, Optimizely cited a signup bug, the infected files were cleaned by 6:11 p.m. ET Monday, and Report URI counted about $7,150 in attacker receipts.

Still unclear: the exact number of victims who lost funds, who sent the late Litecoin deposit, and how the signup bug gave the attacker access to so many customer projects. Optimizely has not answered that last question yet.

Why it matters

The attack shows how a compromise at one software supplier can reach many well-known websites at once. In October, the security firm SlowMist flagged similar address-swapping code in the chat script of another company, Udesk, suggesting this type of attack has appeared before.

Sources

Newisty Editorial Team
Written by

Newisty Editorial Team

Technology · Crypto · Digital Economy
View all posts

Newisty Editorial Team covers technology, cryptocurrency, digital products, online platforms, developer tools and the wider digital economy. Our content is researched from official sources, company announcements, public documentation, market data and other primary or reputable sources. Articles are reviewed and edited before publication for clarity, accuracy and useful context.

Comments (0)

Leave a comment
Your comment will appear publicly after submission.
No comments yet. Be the first to comment!