A computer screen at a cybersecurity center
A computer screen at a cybersecurity center in Vannes, France, on Feb. 4, 2016. Researchers have uncovered malicious code on major websites designed to steal cryptocurrency and financial information and target iPhone users. Getty Images

Websites belonging to some of the world's biggest companies, including Zoom, CNN, HSBC and Salesforce, were caught up in a cyberattack designed to steal cryptocurrency and financial information and target iPhone users, after attackers exploited a vulnerability in a widely used website software platform.

Security researchers identified malicious JavaScript associated with websites belonging to 178 organizations, including Equifax and IKEA. The attack involved Optimizely, a platform businesses use to test and optimize their websites, according to Reuters.

The malicious code was designed to replace legitimate cryptocurrency payment addresses with addresses controlled by attackers, potentially redirecting transfers intended for other recipients.

Researchers also identified attempts to capture credit card information entered into websites, steal browser cookies, collect screenshots and deliver exploit code targeting Apple's iOS operating system.

The findings were first detailed Monday by security researcher Scott Helme, founder of Report URI, which monitors website security.

In an investigation published Monday, Helme said his team examined 1,611 JavaScript files associated with Optimizely and identified 188 infected scripts connected to 178 organizations.

The affected organizations represented multiple industries, including technology, financial services, retail and media.

The attack exploited the way websites incorporate software supplied by outside companies.

Optimizely's Web Experimentation platform allows businesses to test different website layouts and features by loading JavaScript into visitors' browsers.

Attackers were able to insert unauthorized code into customer projects, allowing the malicious scripts to be delivered through infrastructure normally used by the legitimate software provider.

That meant visitors could encounter malicious code while browsing otherwise legitimate websites without deliberately visiting a fraudulent page.

Optimizely acknowledged the incident and confirmed that an unauthorized party had exploited a vulnerability in its Experimentation product.

The company said the attacker used the vulnerability to add malicious JavaScript to certain customer projects.

Optimizely said it had fixed the vulnerability, removed the injected code from affected projects and taken steps to secure impacted user accounts.

The company also introduced additional protections intended to prevent unauthorized code from being delivered through its platform.

The incident raised questions about whether visitors to the affected websites had suffered financial losses or device compromises.

However, Reuters said it could not immediately determine whether the malicious scripts had successfully stolen cryptocurrency or financial information, or how many users may have been affected.

The presence of malicious code on a website does not establish that every visitor's device was infected or that every attempted transaction interception succeeded.

Several companies named in the investigation responded to the findings. Salesforce said it was investigating the incident and had disabled scripts from Optimizely as a precaution. IKEA also said it was examining the matter. Equifax said it had investigated the issue and stopped using the affected platform, adding that it had found no evidence its own systems were compromised. HSBC said unauthorized scripts were not active on its websites.

Apple, Zoom and CNN had not immediately responded to Reuters' requests for comment at the time of its report.

Cybersecurity company Hudson Rock separately reported finding evidence that affected websites had delivered malicious code to visitors.

The attempted cryptocurrency theft involved a technique known as wallet-address replacement.

Cryptocurrency transactions generally require users to enter or paste a wallet address identifying the recipient. Malicious code can attempt to replace that address before a transaction is completed, causing funds to be sent elsewhere.

The attack also involved attempts to collect payment-card details and browser information, creating potential exposure beyond cryptocurrency users.

Researchers identified code targeting iOS devices, although the available reporting did not establish that the attackers had successfully compromised a particular number of iPhones.