A tool used by companies to test and personalize digital experiences became a malware distribution channel this Monday (16). An attack on the Optimizely Web platform exposed visitors to websites of at least 178 organizations, including BBC, CNN, Zoom, IKEA, Salesforce, GitLab and Ledger.

The investigation conducted by Scott Helme, a researcher at security company Report URI, identified malicious code in 188 of the 1,611 scripts examined. The number of affected organizations may be higher, since the survey was limited to the files located by the researchers.

Optimizely is used to run A/B tests, personalize pages and evaluate consumer behavior. To offer these features, the platform provides scripts that are embedded directly into its clients' websites.

The attackers exploited a vulnerability in the platform's account registration process to insert malicious code into client projects. Because the files continued to be distributed by Optimizely's legitimate servers, the attack exploited an already established trust relationship.

The malware was designed to replace cryptocurrency wallet addresses, capture payment card information, collect cookies and take screenshots. It also distributed code designed to exploit vulnerabilities in iPhones and iPads.

Payment fields hosted separately by providers such as Stripe and Adyen were outside the reach of the card-capture mechanism identified in the investigation. However, information entered into the websites' own forms could be intercepted.

Only 15% of the organizations assessed had protection capable of blocking the malware

In a complementary investigation, Report URI analyzed the content security policies of the affected websites. Known by the acronym CSP (Content Security Policy), these policies allow restricting the resources a browser can load and the destinations to which a page can transmit information.

Of the 159 organizations assessed, only 24 had configurations capable of blocking the malicious code. Another 68 did not use any policy of this type, while 50 had configurations that allowed both the execution of the malware and the transmission of data.

The remaining 17 offered partial protection: they could prevent certain information from being sent to attackers, but not the replacement of cryptocurrency addresses.

“A website can be compromised through a third-party dependency without its own code or infrastructure having been breached,” Helme wrote.

At 21:52 UTC on Monday, only one of the 188 previously compromised scripts still contained the malicious code. In an update published on November 17, Optimizely confirmed the vulnerability had been fixed, the injected code had been removed and additional security measures had been adopted.

The number of visitors actually affected by the malware and the amount of payment information possibly stolen have not yet been determined.

More from Radar