Wp2Shell
wp2shell is an easy CTF machine built around a realistic WordPress 7.0.x deployment vulnerable to the public CVE-2026-63030 batch route confusion chain. The lab is designed for beginner to intermediate security learners who are practicing ethical web exploitation and understanding how REST API validation bypasses can lead to full compromise.
Players begin by discovering a WordPress site with a lab-specific REST API
endpoint at /wp-json/wp2shell-lab/v1/batch. The batch handler
mirrors the real WordPress core vulnerability: a malformed URL (http://:)
causes wp_parse_url() to fail, pushing a WP_Error to
$validation[] without a corresponding $matches[]
entry. This desynchronizes the arrays, and the dispatch loop reads
$matches[$i] by original index — resolving to a different route's
handler and permissive schema validation.
Skills covered:
- WordPress REST API enumeration
- Batch endpoint discovery
- Malformed URL parsing exploitation
- Array index desync understanding
- Schema validation bypass
- UNION-based SQL injection
- Token-based authentication chaining
- Post-exploitation via bounded diagnostic console