The attackers attempted to steal credit card details, manipulate cryptocurrency transactions, capture browser cookies, and access financial screenshots. Reports also indicated that vulnerable iPhones and iPads were targeted. This incident comes just weeks after cybersecurity experts identified PHP2Shell, a vulnerability that exposed vulnerable web servers to malicious code execution.
These back-to-back incidents point to a growing challenge in web security. Attackers are finding opportunities across the digital ecosystem, from vulnerabilities in web servers to weaknesses in third-party tools that websites rely on. A single compromised component can potentially put hundreds of websites and their visitors at risk.
As organisations increasingly depend on interconnected platforms, plugins, scripts, and external services, the security of a website is no longer determined by its own defences alone. Every integration introduces another point that needs to be monitored, tested, and secured.
What happened?
According to Report URI (a SaaS company who discovered the attack), hackers injected malicious JavaScript into the website testing platform. Websites spanning across banking, technology, retail, media and healthcare is said to have been affected.
[Visitors accessing these websites during the exposure period could have received the malicious code through their browsers.]
There were no reports that indicated that the companies' internal network were breached. Instead, attackers is said to have exploited a trusted third-party service to distribute malicious scripts through their websites. The number of users actually compromised remains unknown.
How did attackers gain access?
Optimizely allows businesses to customise their websites by adding JavaScript snippets through its platform. These snippets are loaded into the end user's browsers whenever they access pages using the integration.
Attackers exploited a vulnerability allowing them to impersonate administrators and modify the custom JavaScript in customer projects without even having to steal their passwords.
They then inserted malicious code into these projects. When visitors opened affected websites, the modified scripts loaded additional malicious JavaScript from attacker-controlled domains. Because the code was delivered through a service that the websites already trusted, it could bypass some conventional security checks.
Optimizely confirmed that it fixed the vulnerability and removed the injected code from affected projects. The incident was contained on November 16, although investigations continued.
1. Payment card theft:The code monitored payment forms for card numbers, expiry dates and CVVs.
2. Cryptocurrency theft: The script could replace legitimate cryptocurrency wallet addresses with addresses controlled by attackers.
3. Browser cookie and screenshot theft: The malware could collect accessible browser cookies and capture screenshots of certain pages.
4. Attacks targeting Apple devices: The malicious code also attempted to deploy two iOS exploit kits, Coruna and DarkSword, targeting vulnerable iPhones and iPads.
[Apple had already addressed the vulnerabilities targeted by these exploit chains through security updates. Devices running patched software are protected against those known vulnerabilities.]
Why are third-party integrations a security concern?
The incident highlights the risks of relying on external scripts, plugins and services to run websites. While it is common for organizations to integrate third-party tools to improve functionality, they also introduce dependencies outside an organisation's direct control.
Some of the major security risks include:
1. Over-reliance on trusted services:
Websites may automatically load scripts from approved third-party domains. If one of these services is compromised, malicious code could reach visitors without attackers directly accessing the website's infrastructure.
2. Limited script monitoring:
Organisations may not continuously monitor changes to third-party JavaScript. Malicious modifications can go unnoticed when scripts are loaded from familiar and trusted sources.
3. Weak security policies:
Without properly configured Content Security Policy (CSP) rules, browsers may allow scripts from unauthorised sources to execute. This can give attackers an opportunity to run malicious code in visitors' browsers.
What can organisations do to prevent such attacks?
Securing a website requires more than protecting its own servers. Organisations must also monitor the external services and scripts they depend on.
Regularly review all external scripts, plugins and services running on websites. Remove unnecessary integrations and restrict access to only trusted providers. Implement Content Security that verifies the authenticity of the sources before the browsers can load them.
Use script integrity monitoring to detect unexpected changes to approved website scripts. Alert security teams when new scripts or unfamiliar external connections appear. Use multi-factor authentication, unique credentials and role-based access controls for third-party platforms. Review account permissions regularly and remove access that is no longer required.
What can users do to stay safe?
Users can also take a few precautions to reduce their exposure to browser-based threats:
Keep devices updated: Install the latest security updates for operating systems and browsers.
Check payment activity: Review bank and card statements for suspicious transactions.
Use multi-factor authentication: Add another layer of protection to important online accounts.
Be cautious with sensitive information: Always double check the authenticity of the website before clicking. Do not feed sensitive information on unknown websites.