whatisgithub

What is wp2shell-detect?

own2pwn-fr/wp2shell-detect — explained in plain English

Analysis updated 2026-05-18

5PythonAudience · developerComplexity · 2/5LicenseSetup · easy

In one sentence

A read-only scanner that checks whether a WordPress site is exposed to the wp2shell pre-authentication remote code execution vulnerability.

Mindmap

mindmap
  root((wp2shell-detect))
    What it does
      Detects wp2shell exposure
      Fingerprints WP version
      Checks REST batch route
    Tech stack
      Python
      No dependencies
    Use cases
      Scan one or many sites
      Verify edge mitigation
      Discover headless WordPress
    Audience
      Security teams
      Site owners

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 running a version vulnerable to wp2shell.

USE CASE 2

Scan a list of many WordPress sites in parallel and export results as JSON.

USE CASE 3

Verify whether an edge mitigation is blocking the vulnerable REST batch route.

USE CASE 4

Discover and scan a headless WordPress backend behind a non-WordPress front end.

What is it built with?

Python

How does it compare?

own2pwn-fr/wp2shell-detect1ncendium/aibusteraaronmayeux/ha-hurricane-tracker
Stars555
LanguagePythonPythonPython
Setup difficultyeasymoderateeasy
Complexity2/53/52/5
Audiencedeveloperops devopsgeneral

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

How do you get it running?

Difficulty · easy Time to first run · 5min

Single dependency-free Python file, can also be installed with pip.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

wp2shell-detect is a security scanning tool that checks whether a WordPress website is exposed to a specific vulnerability called wp2shell, without ever exploiting it. wp2shell is a chain of two flaws in WordPress core disclosed in July 2026: a routing bug in the REST batch endpoint, and a SQL injection reachable through that same routing bug. Combined, they would let an unauthenticated attacker create a fake administrator account and install a malicious plugin on a default WordPress install, with no other plugin or theme needed. This tool only detects exposure, it does not attack anything. Every request it sends is a normal, read-only request that any web crawler could make. It figures out the WordPress core version from several public clues, such as the generator meta tag, version numbers on core script and style files, the RSS feed generator tag, the login page assets, and the version file, cross-checking these sources against each other and reporting how confident it is in the result. It then compares that version against the known vulnerable version ranges. It also sends a harmless request to the REST batch route that returns the route's structure without ever running the actual handler, which tells it whether the vulnerable endpoint is reachable or blocked at the edge. Finally, it can detect when a website's visible front end is not WordPress itself but is connected to a separate WordPress backend on another subdomain, and optionally follow that connection to scan the real WordPress host. The tool can be installed via pip or run directly as a single Python file with no dependencies, requiring only Python 3.8 or newer. It supports scanning a single site or a list of many targets in parallel, outputting results as plain text or JSON, and it returns a specific exit code when a vulnerable target is found, which makes it easy to use inside automated security checks. The README states plainly that vulnerable WordPress versions should be updated to the patched releases, and that if patching is not possible right away, the affected REST route can be blocked at the edge as a temporary measure. The README also includes a legal notice that the tool is meant for authorized security assessments only, and that scanning systems without permission may be illegal. The project is released under the MIT license.

Copy-paste prompts

Prompt 1
Help me install wp2shell-detect and scan a single site I am authorized to test.
Prompt 2
Show me how to run a parallel scan across a list of hosts with --targets.
Prompt 3
Explain what --discover does for headless WordPress setups.
Prompt 4
Walk me through interpreting a VULNERABLE result from this scanner.

Frequently asked questions

What is wp2shell-detect?

A read-only scanner that checks whether a WordPress site is exposed to the wp2shell pre-authentication remote code execution vulnerability.

What language is wp2shell-detect written in?

Mainly Python. The stack also includes Python.

What license does wp2shell-detect use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is wp2shell-detect to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is wp2shell-detect for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.