For most of a day this week, visitors to some of the world’s best-known websites were loading code designed to steal their card details and redirect their cryptocurrency. The code did not come from the sites themselves. It arrived through Optimizely, a widely used service that companies plug into their websites to test different layouts and features on live visitors.
Optimizely has confirmed that an attacker exploited a vulnerability in its Web Experimentation service and added malicious JavaScript to some customer projects. The company says it has blocked the vulnerable path, deployed a fix, removed the injected code, revoked access tokens, reset access for affected accounts and notified the customers involved. Its investigation is continuing.
How the attack worked
Each Optimizely customer has a project script that runs on every page of its site. The attacker wrote extra code into that script, so it was delivered from Optimizely’s own servers with a valid security certificate and looked like a normal part of the website.
Security researchers at Report URI checked 1,611 Optimizely scripts and found the malicious code in 188 of them, tied to 178 organisations. Names that have surfaced include the BBC, CNN, Zoom, HSBC, Equifax and IKEA. A separate analysis by StepSecurity counted banks and financial firms as the largest group, followed by technology companies, retailers and streaming services. For most sites, the code was live for roughly 16 hours on 16 November, from about 10am Dhaka time until the early hours of the next morning.
The payload did several things. It watched for cryptocurrency wallet addresses being copied or typed and quietly swapped them for the attacker’s own across eight blockchains. It captured card numbers, expiry dates and security codes entered into forms. It took screenshots and collected some browser cookies. On iPhones and iPads it tried to load known iOS exploit kits, although researchers say they have found no evidence that any device was actually compromised.
Visible cryptocurrency losses appear small, estimated at a few thousand dollars. The harder number to know is how much card data was captured, because that leaves no public trail.
What it means here
Bangladeshi banks, e-commerce shops, news sites and fintech apps lean on the same kind of third-party tools: analytics tags, ad scripts, chat widgets and testing services, each of which can run code on every visitor’s browser. This attack shows that a site can do everything right internally and still be compromised through a supplier.
The practical defences are well understood. Keep third-party scripts off login and checkout pages. Use the payment gateway’s hosted payment page or secure card fields rather than collecting card numbers on your own forms. Keep an up-to-date list of every outside script your site loads, and use a content security policy that limits where scripts can come from and where data can be sent. Review who has access to tools like Optimizely, and remove accounts and tokens nobody recognises.
For ordinary users, the advice is simpler. If you made a card payment on a major international website during that window, keep an eye on your statement and ask your bank for a replacement card if anything looks off.







