- Update payment plugins immediately on any security release, and verify the version in wp-admin afterwards
- Audit payment settings, payout accounts, webhooks and admin users — a store compromise is a financial incident, not just a website incident
- Scan the checkout flow specifically for injected scripts (skimmers live there, not on your homepage)
- If you suspect payment data exposure, follow your payment provider’s incident process promptly — card-brand rules impose timelines
This post is part of our series on WordPress attacks in the last 10 years — one major attack per day, what it was, how to detect it, how to remove it and how to keep it out. This instalment covers WooCommerce Payments Admin Bypass (CVE-2023-28121) (March 2023).
What happened
In March 2023 Automattic disclosed and patched a critical vulnerability in WooCommerce Payments: a flaw in how the plugin determined a requester’s identity could be abused to act with administrator-level access. Stores were force-updated where possible. Payment plugins sit at the very top of attackers’ target lists — not because their code is worse, but because the payoff per compromised site is highest: admin access to a store can be turned into payment redirection, order and customer data theft, and skimmer installation.
Who was exposed: WooCommerce Payments versions up to 5.6.1 — the payments plugin on over 500,000 stores. Why it mattered: A critical flaw that could let an unauthorised attacker gain administrator access to a store — the keys not just to the website, but to its orders, customers and payment settings.
How this attack works
The vulnerable code trusted identity information in a way an attacker could spoof, effectively letting them present themselves as an administrator to the plugin’s endpoints. From admin, the rest is standard: install or edit code, create accounts, touch payment settings. The incident is a clean example of why ‘authentication bypass’ is the most dangerous flaw class in Patchstack’s exploitation data — it skips the entire fight and starts at the prize.
The exploitation itself is usually automated end to end. Bots continuously scan the web reading plugin readme files and version strings; the moment a vulnerable version is fingerprinted, an exploit script fires — creating an admin account, uploading a web shell, or injecting a database payload, depending on the flaw. The site owner typically did nothing ‘wrong’ on the day it happened beyond running a popular plugin a few versions behind, which is why the median time from disclosure to mass attack — about five hours for the worst flaws in 2025 — matters so much.
Signs your site has it — and how to confirm
- A payments or checkout plugin within a disclosed affected range — for a store, that is a drop-everything event
- New admin accounts, changed payout or payment settings, or new webhooks/endpoints you did not configure
- Customers reporting card problems or unexpected charges after shopping with you (possible skimmer fallout)
- Checkout code or files modified outside your own release process
Confirm the plugin and its version on your site against the affected versions in the advisory — if you are at or below the vulnerable version, treat the site as exposed, not just at risk. Then check for the fingerprints of a successful exploit: admin users you did not create, files modified after the disclosure date, PHP files in uploads, and unfamiliar options or cron jobs in the database.
Step-by-step removal and recovery
Immediate actions for this attack
- Update payment plugins immediately on any security release, and verify the version in wp-admin afterwards
- Audit payment settings, payout accounts, webhooks and admin users — a store compromise is a financial incident, not just a website incident
- Scan the checkout flow specifically for injected scripts (skimmers live there, not on your homepage)
- If you suspect payment data exposure, follow your payment provider’s incident process promptly — card-brand rules impose timelines
The full protocol
- Back up first, labelled infected — you may need it for evidence or rollback.
- Update the vulnerable plugin immediately if a fix exists; if none exists, deactivate and delete it — an unpatched known flaw is an open door.
- Assume entry may already have happened: audit every administrator account (including in the database, where hidden admins do not show in wp-admin).
- Scan files and database: recently modified PHP, PHP in uploads, encoded payloads in wp_options, rogue cron jobs.
- Reinstall the plugin (and ideally core and theme) from clean official sources rather than trusting edited files.
- Rotate wp-admin, hosting, database and FTP credentials, and regenerate wp-config.php salt keys to kill every existing session.
- Verify with a fresh fetch of key pages and a server-side scan, then watch file-change alerts closely for two weeks — reinfection almost always means a persistence point survived.
How to prevent it
- Keep the number of plugins on a store minimal; every non-essential plugin shares the store’s blast radius
- Separate duties: daily store staff should not hold full admin where avoidable
- Monitor file changes on checkout and payment templates specifically
- Keep your payment plugin’s account and API keys rotated and scoped; review connected services quarterly
The defences repeat across this whole series for a reason: kept-updated software, unique passwords with 2FA, the fewest possible plugins, backups stored off the server, and monitoring that looks at your site the way an attacker — or Google — does. Sites rarely fall to one exotic trick; they fall to one ordinary gap.
FAQs
Does using a hosted payment gateway protect my store?
It protects card data from touching your server, which is valuable — but an admin-level compromise can still redirect customers, change settings, or skim at the browser level. Platform security and gateway security are different layers.
Why do store plugins get force-updated so often?
Because the downside of delay is measured in money and card data, WordPress.org and Automattic use force-updates for store-critical flaws more readily. Let them — and still verify.
What’s the first thing to check after any store plugin CVE?
Admin users and payment settings, before content. Attackers monetise stores through configuration, not blog posts.
Next in the series and the full timeline: WordPress Attacks in the Last 10 Years — the complete guide.
JunoBizz audits, cleans and hardens WordPress sites — cloaked spam, rogue admins, poisoned plugins and everything in this series. Get the checks run before Google finds the problem.
Talk to JunoBizz