Web skimming: customers pay, but their card details end up elsewhere
TL;DR – in a nutshell:
Web skimming is a stealthy script on a payment page that copies the data entered by the customer. The shop continues to operate completely normally.
British Airways paid a fine of £20 million for such an incident. The data of 429,612 people was leaked (ICO, 2020).
In 2024, 4,275 online stores were compromised via a single vulnerability in Magento, partly to implant a skimmer (Sansec).
Variations of this attack also include replacing the account number in a confirmation email and using fake payment buttons.
The risk is mitigated by three factors: an up-to-date platform, a list of scripts on the payment page, and the detection of changes to that page.

ATM skimming device, available only in your shop
Almost everyone has heard of ATM skimming devices. Someone attaches a thin strip to the card reader which copies the card details. The ATM dispenses the money, the customer leaves satisfied, and the details are sent to the thief.
Web skimming is exactly the same, only it happens on an online shop. Instead of a strip, there are a dozen or so – or even several dozen – lines of code added to the payment page. The customer enters their details, the payment goes through, and the order is processed. Meanwhile, a copy of what they’ve entered is sent to a third-party server.
What the shop owner sees
Nothing. And that is the most difficult part of this attack. Sales figures add up, the dashboard shows orders, and customers receive their parcels.
The skimmer doesn’t even need to target cards. In 2020, the Polish security service Sekurak described a campaign affecting over 1,200 shops worldwide, including Polish websites. Among the tricks described was the substitution of the account number in the order confirmation email. PrestaShop, for its part, warned against code that replaces payment buttons with fake ones.
| Variety | What’s going on? | When it comes to light |
|---|---|---|
| Copying card data | Customer data ends up in the wrong hands, whilst the in-shop payment goes through | When a bank or customers report card fraud |
| Changing your account number | The customer pays by bank transfer to the fraudster’s account | When there are orders but no payments |
| A fake payment button or form | The customer enters their details in the box provided | When customers report duplicate payment requests or fraud |
In the first scenario, the account holder may remain unaware of the situation for months. In the second, they notice the missing payments, but transfers sent to someone else’s account usually cannot be reversed.
British Airways: a £20 million lesson
The most high-profile case involves an airline, not a shop, but the mechanism is the same. In 2018, someone added a short script to the page where British Airways customers paid for their tickets.
The UK’s Information Commissioner’s Office (ICO) established that the attacker had access to the airline’s systems for over two months. The data of 429,612 people was leaked, including the full details of approximately 244,000 credit cards.
The ICO concluded that the security measures were inadequate and, in October 2020, imposed a fine of £20 million. It had previously indicated a fine of over 183 million. For us, the lesson to be learnt is more important than the amount: a company with a large IT department failed to spot foreign code on its own payment page.
How does a skimmer end up in a shop?
Nobody installs it manually. It finds its way into the shop via one of three routes.
An unpatched vulnerability in the platform
This is the best-documented route. In 2024, the CosmicSting vulnerability in Magento allowed 4,275 shops to be compromised. A patch had been available since 11 June. Sansec, which tracked the campaign, described, amongst other things, the insertion of skimmers onto payment pages. I write more about how automated systems find such shops in the article ‘Who’s knocking on your shop’s door every day?’.
A compromised third-party script
A shop loads dozens of third-party scripts: chat, analytics, reviews, maps. If someone compromises one of them at source, the altered code ends up on all pages at once. In 2024, following the compromise of the popular polyfill.io script, malicious code appeared on over 100,000 websites. In that particular instance, it redirected users to fraudsters’ sites, but the method is the same.
Stolen admin panel password
Someone logs in as an administrator and adds code to the template settings. Updates won’t help here. Two-factor authentication and limiting the number of accounts with full privileges do help.
Not sure what’s loading on your payment page?
We’ll check this along with the versions of the platform and modules.
What reduces the risk
There is no single security measure that solves the problem on its own. There are four things which, taken together, make a big difference.
Up-to-date platform and modules
This blocks the most common attack vector. Payment modules and anything related to the shopping basket are particularly important.
List of scripts on the payment page
Someone in the company should know which scripts are loaded on this page and why. From 31 March 2025, this will be required by version 4 of the PCI DSS security standard.
Detecting changes
The same standard requires a mechanism to detect if the payment page has changed. This is a direct response to skimming: if a new script appears, someone is alerted.
Payment on the payment service provider’s side
If a customer enters their card details on the payment provider’s page rather than on the shop’s site, there is less for a skimmer to copy. This reduces the risk, but does not eliminate it. A fake button could redirect the customer elsewhere before they reach the payment provider.
The scope of obligations under PCI DSS depends on how payments are integrated. It is worth asking the payment provider about this.
A question worth asking yourself
How many scripts are currently loading on your checkout page? And who added them there?
If no one in the company can tell you without checking, that’s a good place to start. It’s not about being afraid. It’s about knowing what’s at the checkout.
FAQ
No. The same mechanism is used to change the account number or display a fake payment window.
It’s difficult to do on your own. You need to compare the code on the payment page with the version that should be there, and check the scripts that are being loaded.
It’s difficult to do on your own. You need to compare the code on the payment page with the version that should be there, and check the scripts that are being loaded.
No. It encrypts the connection between the customer and the shop. The skimmer operates within the website itself, so it can see the data before it is encrypted.
The attacks are automated. In the CosmicSting campaign, thousands of small shops suffered alongside major brands.
You can find more articles on this topic on our blog
An alarm or just noise? How to evaluate a high-profile security vulnerability
Approximately 550 new software vulnerabilities are published every day. Most of them do not affect your store. Learn how to distinguish a real threat from the noise.
7 min
Read more
Bots scan every online shop. What do they see in yours?
Attacks on online shops are automated and do not target victims based on their size. Find out what actually prevents the majority of breaches.
4 min
Read more
AI in field sales: how an AI assistant is reshaping the Rep's job and company results in 2026
Discover how an AI sales assistant automates reporting, optimizes routes, and boosts sales efficiency. Stop spending evenings updating your CRM.
10 min
Read more





