Skip to main content
VulnerabilityPublished

WP2Shell: Hands-On Lab Reproducing the Pre-Auth WordPress Core RCE

Source Reddit Cybersecurity

0

Mentioned vulnerabilities

Severity
Medium

Rated by Threat Radar

Data as of 21 Jul 2026, 17:56 UTC

What to do

AI-suggested

Until an official fix is available, monitor vendor channels for updates. No direct mitigation steps are provided in the available information.

Discussion

WP2Shell is a hands-on lab demonstrating a pre-authentication remote code execution (RCE) vulnerability in WordPress core. The lab reproduces the exploit chain starting from an unauthenticated request leading to RCE, involving a read-only SQL injection that is escalated to code execution using legitimate WordPress features. The original vulnerability research is attributed to Adam Kues at Searchlight Cyber. No affected versions or patches are explicitly stated in the available information.

r/cybersecurity (opens in a new tab)u/No_Zookeepergame75520 points0 comments

When the WP2Shell writeup came out recently (unauth RCE in WordPress core, CVE-2026-63030 + CVE-2026-60137), I read it a few times and still couldn't really understand the whole chain in my head. I personally don’t have a lot of experience with WP internals, so I had a lot of “whys” when reading it. The way I usually deal with that is to just try to reproduce the thing to see how it works.

I then turned it into a full lab that has a WordPress 7.0.1 app and steps through the entire chain from an unauthenticated request to RCE.

Honestly it was more work than I expected. The SQL injection is read-only, so a good amount of the exploiting part is dedicated to finding a way to turn that SQLi into an actual write. It uses a bunch of WP legitimate features that I had no idea about, so reproducing each hop reliably took a while.

I built it mostly for my own understanding, but made it available for free in case anyone else is struggling to understand the middle part of the exploit. Original research is Adam Kues at Searchlight Cyber, I recommend reading his article if you haven't done so already.

Link to the lab (it doesn’t work on mobile, you’ll need a desktop device): https://learn.uphack.io/lab/wp2shell-wordpress-rce

Also discussed in r/netsec

References

Community reviews

Loading reviews…