All field notes

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.

~11,000Online stores infected with a skimmer in 2024, three times the 2023 count (Recorded Future)
23M+Transactions likely compromised by skimmers active in 2025 (Recorded Future)
178Organizations whose sites ran malicious code through one vendor’s script on November 16 (Report URI)
14 hrsFrom first request to a skimmer on every page of the Magento store (Sansec)
Status, as of December 1: Rootways released the fix, version 4.1.5, on November 17, and the flaw is tracked as CVE-2026-130583. Sansec has not said how many stores ran the vulnerable versions. Optimizely has said the attacker got in through its account signup flow, and Report URI confirmed every infected file clean by 23:11 UTC on November 16. Neither company has published how many shoppers’ data was taken.

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.

BRAND SITES · NOV 16 · OPTIMIZELY178 organizations, one vendor scriptSMALL STORE · NOV 15 · ROOTWAYSOne self-hosted Magento storeruns in the shopper’s browserruns on the store’s serverA vendor’s scriptA/B-testing code, loaded from the vendor’s serverson every page. Attacker edited it at the source.Pages on the brand’s siteCard fieldsinside the processor’siframe (Stripe, Adyen)✓ out of reachEverything elsecrypto wallets, cookies,screens, the device× reachedWhat it tookSwapped crypto wallet addresses, stole cookies andscreenshots, delivered iPhone exploit kits. Cards onlywhere a site took them in its own form fields.A vendor’s extensionPayment plugin for Apple Pay, installed on thestore’s server. Its endpoint fetched any address.The store, from the insideconfig file → database login → new admin→ web shell → skimmer in the header settingCard fields on the store’s own page× reached, on every page, in 14 hoursWhat it tookCard data from the store’s own fields, sent over aWebSocket to the attacker. The classic Magecartpayload, where the card fields still are.Same entry on both sides: code from a vendor the site chose to run.What decided the payload was where the card fields lived.red = what the attacker reachedgreen = what a hosted payment iframe kept out
Two breaches, one day apart, through two vendors. At the brand sites, the card fields were in the payment processor’s iframe, so the attacker took what the page could still reach. At the Magento store, the card fields were on the store’s own page, and the skimmer read them directly. Sources: Report URI and StepSecurity (Optimizely); Sansec (Rootways).

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.

ROOTWAYS · ONE MAGENTO STORE14 hours from Nov 14, 22:58 UTC
REQUESTfrom the store’s own checkout
GET /rootways_authorizecim/applepay/index?validationUrl=
RESPONSEfrom the store

The timeline

Five dated events across four days. Both attacks ran their course before either vendor published anything.

01

November 14, 22:58 UTC · reconnaissance on the store

Requests against the Magento store begin, trying four known Magento attack techniques.

Probing
02

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.

No login needed14 hours end to end
03

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.

178 organizationsIframe card fields held
04

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.

DisclosureAfter the damage
05

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.

Unpatched storesFreeze in effect

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.

Card fields in the processor’s iframeThe brand sites
Card numbers are out of reach.Report URI found the November 16 skimmer couldn’t read hosted fields from Stripe, Adyen and similar processors.
Everything else on the page is not.Logins, addresses, wallet addresses, session cookies and the device itself. Those are what the November 16 payloads went after.
SAQ A now asks about scripts.Since April 1, 2025, SAQ A applies only if “the merchant has confirmed that their site is not susceptible to attacks from scripts that could affect the merchant’s e-commerce system(s).” The PCI Council’s February 2025 FAQ says this doesn’t apply to merchants who redirect shoppers to the processor’s own page.
Card fields on your own pageThe Magento store
Every extension and every script can reach the card.Code on the server writes the page, and code on the page reads the fields.
↑ most of the skimming counts live here
Two PCI requirements apply directly.Requirement 6.4.3: an inventory of every script on payment pages, with a reason for each and a way to confirm it hasn’t changed. Requirement 11.6.1: an alert when the page or its headers change, checked at least weekly. Both have been mandatory since March 31, 2025.
The shortest questionnaire is off the table.A page that serves the payment form is SAQ A-EP at least, and a server that handles card data is SAQ D.

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.

×What it wouldn’t have fixed
The 14 hours on November 15.

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.

The script change at 04:21.

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.

The vendors’ own flaws.

Optimizely’s signup flow and Rootways’ endpoint were in the vendors’ code. No customer could have fixed them before the vendors did.

✓What it would have made materially better
The right questionnaire, chosen honestly.

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.

6.4.3 and 11.6.1 graded against what the assessor asks for.

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.

A script rule with an owner.

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.

The vendor’s advisory shows up on your side.

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.

The endpoint tested before an attacker found it.

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