whatisgithub

What is wp2shell?

0xsha/wp2shell — explained in plain English

Analysis updated 2026-05-18

59PythonAudience · developerComplexity · 5/5Setup · moderate

In one sentence

A proof-of-concept tool showing how two chained WordPress bugs let an attacker with no login gain full site control.

Mindmap

mindmap
  root((wp2shell))
    What it does
      Demonstrates WordPress RCE chain
      Non destructive vulnerability check
      Docker reproduction labs
    Tech stack
      Python
      Docker
    Use cases
      Test site exposure
      Reproduce in isolated lab
      Study the bug chain
    Audience
      Security researchers
      WordPress administrators

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Check whether a WordPress site is affected by CVE-2026-63030 and CVE-2026-60137 using a non-destructive detector.

USE CASE 2

Reproduce the full vulnerability chain in an isolated Docker lab across different WordPress and database versions.

USE CASE 3

Study how a REST API batch-processing bug and a SQL injection flaw combine into unauthenticated remote code execution.

USE CASE 4

Confirm that a patched WordPress version is no longer exposed to this attack chain.

What is it built with?

PythonDocker

How does it compare?

0xsha/wp2shellcp-cp/liveeditnuitka/monolithpy
Stars595959
LanguagePythonPythonPython
Last pushed2026-05-20
MaintenanceMaintained
Setup difficultymoderatehardhard
Complexity5/55/54/5
Audiencedeveloperresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires Docker for the reproducible lab environment and Python for running the tool.

So what is it?

wp2shell is a security research tool that demonstrates a serious, publicly disclosed vulnerability chain in core WordPress software, tracked as CVE-2026-63030 and CVE-2026-60137. Combined, these two bugs let an attacker with no login credentials at all take full control of a default WordPress site by creating a new administrator account and running their own code on the server. The first bug is a mix-up in how WordPress's REST API processes batches of requests sent together, where an error in one request accidentally causes a later request to be handled with the wrong instructions. The second bug is a SQL injection flaw in how WordPress filters posts by author, caused by a missing safety check on one specific input. Neither bug alone is enough to fully compromise a site on the newest WordPress versions, but chaining them together removes that protection, allowing database access and, from there, a path to running commands on the server. The repository provides a single Python file that combines ideas from six earlier, separately published proof of concept tools into one clean version with no extra software dependencies. It includes a safe, non destructive way to check whether a WordPress site is vulnerable, options for routing traffic through a proxy or adding delays between requests to avoid disruption, and Docker based lab setups so researchers can safely reproduce the issue against specific WordPress and database version combinations rather than testing on a live site. The author explains the underlying bugs in detail, including which WordPress versions are affected and which have already been patched. This project is intended for security researchers and WordPress site administrators who need to confirm whether their own sites are exposed and should be updated immediately, not for use against systems they do not own or have permission to test.

Copy-paste prompts

Prompt 1
Explain in plain terms how the two chained WordPress vulnerabilities in this repo lead to full site takeover.
Prompt 2
Help me set up the Docker lab from this repo to safely reproduce CVE-2026-63030 in an isolated environment.
Prompt 3
Walk me through using wp2shell.py's non-destructive check mode to test my own WordPress site.
Prompt 4
Explain which WordPress versions are patched against these vulnerabilities and how to update safely.

Frequently asked questions

What is wp2shell?

A proof-of-concept tool showing how two chained WordPress bugs let an attacker with no login gain full site control.

What language is wp2shell written in?

Mainly Python. The stack also includes Python, Docker.

How hard is wp2shell to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is wp2shell for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.