SiteUnhack. Get a free assessment

Guides · WooCommerce

A card skimmer on your checkout, and orders that look completely normal

Your shop is busy. Orders come in, payments go through, nobody complains. Then a customer emails to say their card was used somewhere they've never shopped, and a week later another one does. The common link is your checkout.

That's how a card skimmer usually shows up. It's a small piece of code added to a hacked WooCommerce store that copies what customers type into the checkout form and sends it to the attacker. It doesn't break anything, which is the point. The holiday season is when it does the most damage, because that's when the most cards go through.

How a skimmer works

Skimmers come in two main flavours.

  • The quiet copier. JavaScript added to the checkout page reads the card fields as the customer types, or when they click Place order, and quietly sends the details to a server the attacker controls. The real payment still goes through, so nothing looks wrong.
  • The fake payment form. If your payment gateway shows its own secure card box, or sends customers to the gateway's own page, there's nothing on your page to copy. So the skimmer draws a fake card form instead. The customer fills it in, often sees an error, then fills in the real one. Two card entries for one order is a classic sign.

Why you probably haven't noticed

  • It only runs on the checkout page, often only once a cart has something in it. Browsing the shop shows nothing.
  • It hides from admins. Many skimmers switch themselves off when they see you're logged in to WordPress. You test your own checkout and everything looks fine.
  • It's disguised. The code is usually scrambled (obfuscated) and given a name that looks like analytics, a font loader or a payment library. The address it sends data to often looks like a real service too.
  • Orders still work. There's no error and no drop in sales, so there's nothing to make you look.

Signs to watch for

  • Customers reporting fraud on cards they used in your shop.
  • Your payment provider asking questions about fraud linked to your store.
  • Customers saying they had to enter their card twice, or saw a payment error and then it worked.
  • A checkout page that looks slightly different from usual, such as an extra card form or unfamiliar styling.
  • Admin users, plugins or files you don't recognise, the same signs as any other hack.

How to check your checkout

  1. Check as a customer, not as you. Open a private or incognito window where you're not logged in, add something to the cart and go to checkout. Use a different browser too if you can.
  2. Look at what the page loads. Open your browser's developer tools (F12), go to the Network tab, reload the checkout and look through the list of scripts and requests. Anything you can't explain is worth a closer look: an unfamiliar domain, a script with a random name, a request that fires when you type in the card fields.
  3. Count the card forms. If your gateway uses its own secure card box, there should be exactly one. A second card form on your page is a red flag.
  4. Search the database. Skimmers often live in the database rather than in files: in theme options, widgets, custom HTML or CSS fields, or WooCommerce settings. Look for <script tags and long scrambled strings where they don't belong.
  5. Check the files. Reinstall WordPress core, every plugin and your theme from clean copies, then compare. Look in the must use plugins folder and any custom code snippets plugin, where injected code is easy to hide.

Our free check looks at your public pages as different visitors and flags injected code, but it can't add items to a cart and go through your checkout. For a skimmer, the checks above (or a proper review) matter more.

Don't place test orders with a real card on a checkout you suspect. If you need to test, use a card your payment provider gives you for testing, or a virtual card you can cancel straight away.

If you find one

  1. Take a full backup first, files and database. It's evidence, and you may need it.
  2. Stop the bleeding. Put the shop into maintenance mode, or switch checkout to your gateway's own hosted payment page, until it's clean. Losing a day of sales is better than losing customers' cards.
  3. Tell your payment provider. They deal with this regularly, can tell you what they need from you, and may already be seeing fraud linked to your store.
  4. Remove the skimmer and how it got in. Clean the database, reinstall code from clean copies, remove unknown admins, change every password (WordPress, hosting, database, SFTP and your payment gateway keys), and update everything. Find the way in, or it will come back.
  5. Check your obligations. Depending on where you and your customers are, you may have to notify affected customers and others. Your payment provider and, if needed, a lawyer can tell you what applies. Being open with customers early is almost always the better path.

Making it harder next time

  • Keep WooCommerce, plugins and themes updated, and delete the ones you don't use.
  • Turn on two factor login for every admin and shop manager.
  • Prefer a gateway that keeps card entry on its own secure fields or page, so your site never handles the card itself.
  • Consider a Content Security Policy that limits which domains your checkout can load scripts from and send data to. It takes some setup, but it's one of the strongest defences against skimmers.
  • Check your checkout as a logged out visitor every few weeks, especially before busy periods.

Need a hand?

If something on your checkout doesn't look right, or customers are reporting fraud, we can investigate and clean it properly. You'll get a written report of what we found, how it got in and what we changed, which also helps when your payment provider asks. We agree the scope and price with you before any paid work starts.

Ask us to check your shop Or run the free check