Field note · Incident study
Where Magecart Went After 2018, and Why It's Back in the News
Cyber Monday is behind us and checkout traffic will stay high through the December holidays. Two breaches from the middle of November are worth reading together before it ends. On November 15, a Magento store was taken over through the Rootways Authorize.net CIM payment extension it used for Apple Pay, and within 14 hours a card skimmer ran on every page. The next day, an attacker edited scripts served by Optimizely, an A/B-testing vendor, and for most of that day those scripts ran malicious code on the sites of 178 organizations, including the BBC, CNN, HSBC and Zoom.
Both were Magecart attacks: code injected into a website to steal what shoppers type. Magecart was front-page news in 2018 and mostly absent from the news since, which makes it easy to assume it went away. The data says it didn’t. It moved to stores nobody writes about, and these two breaches show both why it moved and what it looks like when it comes back to large sites.
2018: the year Magecart had names
Magecart became a household term in 2018 because of who it hit. At British Airways, attackers changed a JavaScript file on the airline’s own booking pages, and over about two weeks the altered file sent customers’ card details to a server the attackers controlled. The UK Information Commissioner’s Office later counted 429,612 affected customers and staff and fined the airline £20 million. At Ticketmaster, the attackers never touched Ticketmaster’s code. They changed the script of Inbenta, the chatbot vendor whose widget sat on Ticketmaster’s payment pages.
The Ticketmaster case is the template for what happened on November 16. A large company loads a vendor’s script, the attacker compromises the vendor, and the script carries the attack onto the company’s pages from a source the company already trusts.
After 2018 the attacks continued, at smaller stores
The volume never went down. Recorded Future found skimmers on nearly 11,000 online stores in 2024, three times the 2023 count, and traced the jump to a single Magento flaw, CosmicSting. Sansec counted 4,275 stores hacked through that flaw by seven different groups, which it estimated at 5% of all Adobe Commerce and Magento stores, in one summer. For 2025, Recorded Future counted more than 10,500 active infections, likely compromising more than 23 million transactions.
Those numbers rarely made the news because the victims were small, self-hosted stores. What changed after 2018 is where large sites take card numbers. Many large merchants now put the card fields inside an iframe served by the payment processor, the hosted fields from Stripe, Adyen, Braintree and others. Code running on the merchant’s page can’t read inside that iframe, because the browser treats it as a different site. PCI DSS rewarded the move with SAQ A, the shortest compliance questionnaire, for merchants whose card entry is fully hosted by the processor.
Stores that still collect card numbers in their own form fields, which is common on self-hosted Magento and WooCommerce, didn’t get that protection. Skimming followed the card fields. This is our reading of the evidence rather than a finding any one report states, but the November breaches line up with it closely.
Two breaches, one day apart
The same entry point on both sides, and a different payload depending on where the card fields were.
The brand sites. An attacker wrote code into the Project JavaScript of Optimizely customer projects, the field that customers use to run their own code inside Optimizely’s script. Optimizely has said the flaw was in its account signup flow. Report URI, which tracked the infections, saw the first injection at 04:21 UTC on November 16 and had confirmed all infected files clean by 23:11 UTC. During that window the code swapped cryptocurrency wallet addresses for the attacker’s, stole cookies and screenshots, delivered iPhone exploit kits, and ran a card skimmer. Report URI is specific about the limit of that skimmer: cards entered in hosted payment iframes were out of its reach, and cards typed into a site’s own form fields were not.
Many of the 178 don’t sell anything online, and at sites that take cards in hosted fields a card skimmer gets nothing. The attacker brought payloads for the things the page could still reach. That is the 2018 technique applied to sites that had closed the 2018 target.
The Magento store. Rootways’ Apple Pay endpoint fetched any web address it was sent, with no login. The attacker used it to read the store’s configuration file, used the database credentials in it to log in to a database admin tool on an internal port, created a store admin account, installed a web shell, and placed a skimmer loader in the store’s header configuration. The card fields were on the store’s own page, so the skimmer could read the card data shoppers entered and send it out over a WebSocket. Rootways fixed the flaw in version 4.1.5 on November 17; every earlier version is affected. Recorded Future traced 2024’s threefold jump to a Magento flaw, so self-hosted stores like this one, running their own checkout with vendor code on the server, make up a large share of those counts.
The timeline
Five dated events across four days. Both attacks ran their course before either vendor published anything.
November 14, 22:58 UTC · reconnaissance on the store
Requests against the Magento store begin, trying four known Magento attack techniques.
November 15 · the store is taken over
8,272 requests from 19 IP addresses. The Apple Pay endpoint hands over the configuration file, the database, an admin account and a way to run code. By the end of the day a skimmer loader sits in the header setting of every page.
November 16, 04:21–23:11 UTC · the vendor script
Code appears in Optimizely-hosted scripts on 188 snippets belonging to 178 organizations. Report URI tracks it until the last infected file is clean. The same day, Sansec finds the Rootways root cause, reports it to Rootways, and Sansec Shield starts blocking the attack.
November 17 · the fix and the write-ups
Rootways releases 4.1.5 and an advisory; every earlier version is affected. Sansec publishes the full chain, and StepSecurity publishes its analysis of the Optimizely payloads.
November 27 – December 1 · peak season, frozen
Black Friday and Cyber Monday pass. Retailers in a change freeze can’t easily patch, any store still below 4.1.5 remains exploitable, and checkout traffic stays high through the December holidays.
Which half your store is on
The useful question for a merchant is where shoppers type their card number. The answer decides what a skimmer can take and which PCI questionnaire you’re allowed to file.
The check you can run this week
The freeze limits what you can change in December. It doesn’t stop you finding out where you stand. Four steps.
1. Patch Rootways if you run it. Run composer show rootways/module-authorizecim on the store. Anything below 4.1.5 is exploitable without a login. If you can’t upgrade during the freeze, Sansec’s advice is to turn off Apple Pay in the extension and flush the cache. Either way, check the store’s admin users for accounts you don’t recognize and look for unfamiliar PHP files in pub/ and var/report/.
2. Find out where your card fields live. Open your checkout, start a payment, and check whether the card number box comes from your own domain or the processor’s. That answer puts you in one of the two lanes above, and it decides whether your current SAQ is the right one.
3. List every vendor whose code runs on checkout. Both the scripts in the page and the extensions on the server behind it. For each one, write down who on your team added it, what it is for, and when someone last checked what it does. Seasonal scripts added for promotions tend to skip the freeze, so check those first.
4. Record a baseline now. Save the current list of scripts on your payment pages, a hash of each, and the page’s security headers. That is the starting point 6.4.3 and 11.6.1 ask for, and it is what you will compare against in January when someone asks whether anything changed during peak.
What vCISO Lite would and wouldn’t have changed
Both attacks ran in places we don’t sit: a shopper’s browser and a store’s web server, in real time. Here’s the honest split.
Stopping requests to the Apple Pay endpoint as they happened takes a web application firewall or a Magento security service on the store itself. We don’t sit in that path.
Seeing a vendor’s script change in shoppers’ browsers takes script monitoring or Content Security Policy reporting on the page. We don’t run in the browser.
Optimizely’s signup flow and Rootways’ endpoint were in the vendors’ code. No customer could have fixed them before the vendors did.
Our PCI DSS assessment starts by asking how you take card payments online: fully redirected to the processor, your page serves the payment script, or card data reaches your servers. It won’t recommend SAQ A when your page serves the payment script, and any override needs a written reason your assessor reads. A store like the one on November 15 lands on the full set, 6.4.3 and 11.6.1 included.
Each requirement lists the evidence that passes it: a script inventory with a business reason for each script, authorization records and integrity evidence such as SRI for 6.4.3, and the monitoring configuration, weekly cadence and a sample alert with its response for 11.6.1. Gaps are named before fieldwork, and both requirements map through the Secure Controls Framework, so the evidence you collect for them counts toward the other frameworks you run. More on proving compliance.
In policy management, “every script on the payment page is approved and checked” is a clause with the controls it maps to and a proof state: backed by evidence, nothing proves it, or out of scope with a reason. Reviewers approve the exact revision they read, and when your vendors change, a drafted edit appears on the clause it affects.
Every vendor on your list is watched by eight detection sources, including CVE databases, advisory feeds, security news and breach registries. Our vendor-incident auto-declaration would have turned the Rootways CVE, or the Optimizely coverage, into a declared incident against that vendor, with the patch ranked first for a Rootways store.
Red Claw tests web apps, APIs and authenticated flows. A payment endpoint that fetches any address it is sent, with no login, is server-side request forgery, the class of flaw a web application test is built to find. A finding closes only when a retest shows the exploit no longer works.
Our read
Four calls, most confident first, with what to look for and what to do.
We think PCI scope and attacker scope have come apart on the checkout page. The Optimizely attacker arrived ready for pages where the card was out of reach. It swapped crypto wallet addresses, took cookies and screenshots, and served iPhone exploit kits. None of that touches cardholder data, so none of it is in a PCI assessment. A merchant on SAQ A can pass cleanly while its checkout hands session cookies to whoever controls a testing script.
Look for what else of value your checkout page holds: session and login cookies readable by scripts, saved addresses, gift card and loyalty balances, wallet or bank details shown for other payment methods. Thentreat the checkout as its own trust zone. Serve it with the fewest scripts the business can live with, set session cookies HttpOnly so page scripts can’t read them, and use a Content Security Policy that limits where the page can load code from and send data to.
We think a vendor’s security fix is a reason to switch the feature off. Rootways’ October 29 release, 4.1.4, patched the same Apple Pay feature. Two weeks later a different flaw in that feature gave an attacker the store. A fix for one flaw doesn’t mean anyone went looking for the next one in the same code.
Look forfeatures your extensions expose that you don’t use, especially anything that answers requests without a login. Payment methods are the usual suspects, since extensions ship them enabled for the storefront. In Magento, each module’s routes.xml lists the URL paths it adds. Then, when a vendor ships a security fix to a feature you don’t need, disable the feature as well as applying the patch.
We think your host’s defaults decide how bad an SSRF gets. The Rootways flaw let an attacker make the server fetch any address. That became a takeover because of what the server could reach on itself: a database admin tool on port 8082, installed by default on the hosting platform, and an admin email preview that ran a poisoned error report as code. The extension opened the door, and the server’s own tools did the rest.
Look for everything listening on your web server, including services bound only to localhost (ss -ltnp on Linux), and any admin tool your host installs for you. Then remove database admin tools from production, or put them behind their own login and network rule, and send logs and error reports off the box. The attacker deleted 2,408 error reports on the way out.
We think the holiday freeze is the best week of the year to catch a skimmer. The script monitoring PCI DSS 11.6.1 requires alerts on change, and in most months marketing changes checkout often enough to bury the alerts. During a freeze the expected number of checkout changes is close to zero, so an alert is far more likely to mean something. We hold this one most loosely, because it depends on a team that can tell an approved change from a bad one within hours.
Look for who receives your checkout change alerts and how fast they see them. Then, for the rest of the freeze, treat any change to checkout scripts or security headers as an incident until someone proves it was approved, and page a person instead of filing a ticket.
Primary sources
- Sansec, Rootways Authorize.net CIM: Apple Pay SSRF exploited on Magento stores (Nov 17, 2026)
- Report URI, World’s largest brands infected with malware via Optimizely (Nov 16, 2026, updated Nov 17)
- StepSecurity, OPTIMJACK: Optimizely-hosted scripts loaded a crypto clipper and card skimmer (Nov 17, 2026, updated Nov 20)
- Recorded Future, 2024 Payment Fraud Report: Trends, Insights, and Predictions for 2025
- Recorded Future, The industrialization of the fraud ecosystem (2025 Magecart figures)
- Sansec, CosmicSting fallout: 4,275 stores hacked (Oct 1, 2024)
- PCI Security Standards Council, FAQ clarifies new SAQ A eligibility criteria for e-commerce merchants (Feb 28, 2025)
- CNBC, British Airways fined £20 million for 2018 data breach (Oct 16, 2020)
- cside, The biggest Magecart attacks in history (British Airways and Ticketmaster details)
