Authentication Bypass in WooCommerce Payments (CVE-2023-28121)
CVE-2023-28121 is a critical authentication bypass and privilege escalation vulnerability in the WooCommerce Payments plugin for WordPress (versions <= 5.6.1). The flaw allows an unauthenticated attacker to impersonate any user, including administrators, by sending a specially crafted HTTP header (X-WCPAY-PLATFORM-CHECKOUT-USER) with a user ID. This enables attackers to perform actions as privileged users, such as creating new administrator accounts via the REST API, leading to full site compromise.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Exploitation of this vulnerability allows remote, unauthenticated attackers to gain administrative access to affected WordPress sites. Attackers can create new administrator accounts, modify site content, install malicious plugins, exfiltrate data, and fully compromise the site. The vulnerability is highly critical due to the ease of exploitation and the potential for complete site takeover.
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, disable the WooCommerce Payments plugin until it can be updated. Monitor for suspicious administrator account creation and restrict access to the /wp-json/wp/v2/users API endpoint where feasible. Employ web application firewalls to detect and block malicious requests leveraging the X-WCPAY-PLATFORM-CHECKOUT-USER header.
Patch, then assume compromise.
Upgrade the WooCommerce Payments plugin to version 5.6.2 or later, which removes the vulnerable code and mitigates the issue. Ensure all WordPress plugins are kept up to date and review administrator accounts for unauthorized additions.
7 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.