In this post
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:
- Different code path. CAPTCHA plugins built for the classic checkout form don’t run on Store API requests.
- Different URLs for the same endpoint. The bot used
?rest_route=/wc/store/v1/checkoutinstead of/wp-json/…, so a WAF rule matching only the/wp-json/path missed it. - 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
- 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.
- Check the access logs for
wc/store/v1/checkoutandwc/store/v1/batch, in both the/wp-json/and the?rest_route=form. That tells you which checkout is being used. - 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.
- 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.
- 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.
- 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.