Hacking WordPress with wp2shell Through a Critical SQLi to RCE
This lab is based on CVE-2026-63030. Exploit a real WordPress core vulnerability chain (which earned a 9.8 critical severity rating) against Trailhead Outfitters, a small marketing blog. Starting from zero access and no login, you will fingerprint the running version, confirm a pre authentication SQL injection by hand, and use that injection to read a secret straight out of the database (flag 1). From there you will run the full public exploit chain that escalates the injection into a forged administrator account and a working webshell, then read a second secret off the server's filesystem (flag 2). Finally you will remediate the vulnerability by applying the update and prove the attack no longer works. Because this is a genuine bug in WordPress core rather than a contrived scenario, every stage stays visible along the way, so you can watch the confused request, the injected query, the forged database rows, and the attacker's admin account.
- 6 guided tasks
- Capture the flag

Scenario
You just picked up a new client, Trailhead Outfitters. Their blog went live on WordPress 7.0.1, and they disabled auto-updates from WordPress Core, so it never got patched. That missed update left the site exposed to CVE-2026-63030, a publicly documented WordPress core flaw rated 9.8 critical. Anyone can exploit it without credentials, and it gives attackers command execution on the server.
In this lab we get to play the attacker. We will fingerprint the WordPress version, execute a SQL injection, read a secret out of the database, then run the full public exploit chain that turns our injection into an administrator account and a webshell. From there, we'll read a second secret off the server’s filesystem to capture the flag.
There are two flags to collect along the way, one from the database and one from the server itself. The server flag is the final flag.
Ready? Let's go!
What you will learn
- Fingerprint the WordPress version and match it to a public CVE
- Prove the unauthenticated SQL injection by hand with a single request
- Read the first secret out of the database through the injection
- Run the full public exploit chain into remote code execution
- Read the second secret off the server's filesystem
Hacking WordPress with wp2shell Through a Critical SQLi to RCE
Free with a Cybr account.