WordPress Security ServicesMalware Removal
WooCommerce

Fake WooCommerce Orders Even Though You Use Classic Checkout? Check the Store API

Your store uses the classic checkout. You added a CAPTCHA, turned on rate limiting, maybe even Cloudflare rules. And bots still create orders. A recent case on r/woocommerce shows why: there's a second checkout on every modern WooCommerce store, and it doesn't care about your classic checkout protections.

Sergey By Sergey, WordPress security specialist Published 3 min read
In this post
  1. What happened
  2. Why classic checkout protections didn’t help
  3. The catch: express payment buttons
  4. What to do if you’re seeing fake orders

What happened

In October, a store owner on r/woocommerce described a night of fake orders. At first it looked like card testing: lots of failed orders with “Unknown” origin. But no cards were being tried. It was an automated vulnerability scanner. It created customer accounts named after the tests it was running, and sent fake Stripe and PayPal webhooks with injection attempts in them.

The good news: Stripe’s and PayPal’s webhook signature checks rejected every fake webhook. Nothing got in.

The interesting part is what didn’t work. The owner added Cloudflare Turnstile to checkout, turned on WooCommerce’s rate limiting, and blocked /wp-json/wc/store/v1/checkout in Cloudflare. Orders kept coming.

Why classic checkout protections didn’t help

The store used the classic checkout, but the orders were coming in through the Store API, the backend of the newer block checkout. It’s part of WooCommerce whether you use blocks or not. Three details made it slip through:

  1. Different code path. CAPTCHA plugins built for the classic checkout form don’t run on Store API requests.
  2. Different URLs for the same endpoint. The bot used ?rest_route=/wc/store/v1/checkout instead of /wp-json/…, so a WAF rule matching only the /wp-json/ path missed it.
  3. Batch requests. It also wrapped checkouts in /wc/store/v1/batch, which, according to the owner, WooCommerce’s rate limiter didn’t count.

The catch: express payment buttons

The owner’s first fix removed the Store API checkout route entirely, and it stopped the bot instantly. It also broke Apple Pay and Google Pay: with their Stripe setup, those express buttons place orders through the Store API even on classic checkout. Their final version allowed only verified express payment requests and blocked everything else.

That’s the general lesson. Don’t block the Store API blindly. Know what on your store uses it first.

What to do if you’re seeing fake orders

  1. Look at the orders. Check the order notes, the origin, and the customer accounts created at the same time. Odd account names, test-like emails and a burst of failed orders point to bots.
  2. Check the access logs for wc/store/v1/checkout and wc/store/v1/batch, in both the /wp-json/ and the ?rest_route= form. That tells you which checkout is being used.
  3. Make firewall rules match both URL forms. In Cloudflare, match the query string as well as the path, and use a challenge or rate limit rather than a hard block until you know express payments still work. See my Cloudflare rules for WordPress.
  4. List what uses the Store API on your store: block cart or checkout, express payment buttons, mini-cart widgets. Test them on a staging copy before restricting anything.
  5. Lean on your payment provider. Make sure webhook signature checks are on (the defaults in official Stripe and PayPal plugins), and use the provider’s fraud tools for card testing.
  6. Check that it’s only bots. Look for unknown administrators, unexpected plugin installs and modified files. A scanner probing your store today may find something else tomorrow.

From my cleanup work: on WooCommerce stores, I always ask which checkout a site really uses. Owners often say “classic”, but the theme, an express payment plugin or a mini-cart quietly uses block or API features too. Every extra path to an order is one more thing to protect. Security rules have to cover all of them.

If you think the store itself is compromised, for example with a card skimmer on the checkout page, see my WooCommerce malware removal service.

Sergey, WordPress Security Specialist
About the author
Sergey, WordPress Security Specialist

10 years in WordPress security and incident investigation, and more than 200 websites cleaned of malware. Top Rated on Upwork with a 100% Job Success score. More about me

Frequently Asked Questions

What is the WooCommerce Store API?

It's the API behind the block-based Cart and Checkout. Its checkout endpoint lives at /wp-json/wc/store/v1/checkout. It's part of WooCommerce itself, so it exists even if your store uses the classic shortcode checkout.

Can I just disable the Store API?

Be careful. Some payment buttons, such as Stripe's Apple Pay and Google Pay express buttons, may use it even on classic checkout, and some themes and plugins rely on it for the cart. Test on staging before blocking anything.

Do fake orders mean my store is hacked?

Not necessarily. Card testing and vulnerability scanning are attacks on your checkout, not an infection of your site. But check for unknown admin accounts and unexpected file changes anyway, and contact your payment provider if real cards are being tested.

Need a hand?

Let me clean your WordPress site for you

Send me your site URL and what you're seeing. I'll reply with what I think is going on and the next step.

$95 per infected site · 1-month guarantee · direct contact with the specialist

Get My Site Cleaned →