Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/ch4120n/cve-2026-63030
Vulnerability ScannersExploitationWeb SecurityPenetration TestingLearning & Education
GitHubch4120n/cve-2026-63030

CVE-2026-63030

CVE-2026-63030 - WordPress REST Batch Route-Confusion SQL Injection Proof of Concept

View Repository
2724 months agoNot yet reviewed
Share

CVE-2026-63030

WordPress REST Batch Route-Confusion SQL Injection (CVE-2026-63030) Proof of Concept
Research, Exploit Development & Documentation by Ch4120N

CVE Python License Status


⚠️ Legal Disclaimer

This repository and the accompanying tool (exploit.py) are intended strictly for educational purposes, authorized penetration testing, and security research.
Using this exploit against targets without explicit, prior, written consent is illegal and violates computer fraud and abuse laws globally. The author (Ch4120N) assumes absolutely no liability for any misuse, damage, or legal consequences arising from the use of this code. Always operate within the bounds of the law and obtain proper authorization.


📖 Vulnerability Overview: CVE-2026-63030

CVE-2026-63030 is a critical, unauthenticated vulnerability affecting the WordPress REST API. It exploits a route-confusion bug within the nested batch processing endpoint (/wp-json/batch/v1 or /?rest_route=/batch/v1).

The Root Cause

When WordPress processes a batch of REST API requests, it validates each sub-request against its specific schema before execution. However, due to a flaw in how the internal routing pointer handles deliberately malformed paths (e.g., ///), the validation schema becomes desynchronized from the actual execution handler.

The Attack Chain

  1. Route Confusion & SQLi: An attacker injects a nested batch payload. The desync causes a request targeting the /wp/v2/users endpoint (which doesn't accept author_exclude) to be executed by the /wp/v2/posts handler. The unsanitized author_exclude parameter is passed directly into WP_Query's author__not_in clause, resulting in Unauthenticated SQL Injection.
  2. Pre-Auth Admin Creation: The SQLi is used to read the database and identify oembed_cache post IDs. The exploit then uses a Customizer changeset payload to poison the navigation menu cache, tricking WordPress into executing a user-creation request under the context of an existing administrator.
  3. Remote Code Execution (RCE): With a newly forged administrator account, the tool authenticates, uploads a randomized, token-gated PHP webshell plugin, executes OS commands, and securely cleans up all traces.

Affected Versions

  • WordPress 6.9.0 through 6.9.4
  • WordPress 7.0.0 through 7.0.1 (Note: Older versions may be vulnerable depending on specific plugin configurations and REST API backports).

🚀 Features

  • Zero Dependencies: 100% Python 3 standard library. No pip install required.
  • Single File Modular: All components (Client, SQLi, Exploit, Shell, CLI) are neatly organized in one portable script (exploit.py).
  • Multi-Technique SQL Extraction: Automatically falls back through the fastest available methods:
    1. UNION-based: In-band extraction by forging a fake WP_Post row (1 request per value).
    2. Error-based: Leverages EXTRACTVALUE() XPATH errors if WP_DEBUG_DISPLAY is enabled.
    3. Blind Boolean/Timing: Binary search character extraction with configurable sleep delays.
  • Automated Pre-Auth Bridge: No need for existing credentials; the tool creates its own administrator account on the fly.
  • Ephemeral Webshell: Generates a unique plugin slug and cryptographically secure token. The shell refuses to execute without the token and self-destructs after use.
  • Auto-Cleanup: Automatically deletes the forged administrator account and removes the webshell plugin directory upon exit.
  • Interactive REPL: Provides a pseudo-terminal that maintains remote working directory state (cd support).

📦 Installation & Requirements

No third-party packages are required. Ensure you have Python 3.8 or higher installed.

# Clone the repository
git clone https://github.com/Ch4120N/CVE-2026-63030.git
cd CVE-2026-63030

# Make the script executable
chmod +x exploit.py

# Verify Python version
python3 --version
# Executing the script
python3 exploit.py

💻 Detailed Usage & Options

The exploit is divided into three main sub-commands: check, read, and shell.

Global Options

These options apply to all sub-commands:

OptionDescriptionDefault
urlTarget base URL (e.g., http://target.com)Required
--rest-routeUse /?rest_route=/batch/v1 instead of /wp-json/batch/v1 (for sites with permalinks disabled).False
--timeoutHTTP request timeout in seconds.30.0
--proxyHTTP/HTTPS proxy (e.g., http://127.0.0.1:8080).None

1. check - Vulnerability Detection

Safely probes the target to confirm the presence of the route-confusion markers and tests SQLi timing without extracting data.

OptionDescriptionDefault
--sleepSQL timing delay (seconds) used by the --confirm-sqli fallback.3.0
--samplesNumber of baseline/delayed SQL timing pairs to test.3
--confirm-sqliSend an active SQLi confirmation payload (adds a slight delay).False

2. read - Database Extraction

Extracts data directly from the database via the SQL injection.

OptionDescriptionDefault
--presetQuick extraction presets: fingerprint (version/user/db) or users (logins/hashes).fingerprint
--queryExecute a custom scalar SQL expression (e.g., "SELECT @@version").None
--prefixDatabase table prefix.wp_
--max-lengthMaximum characters to extract per value.128
--techniqueExtraction technique: auto, union, error, or blind.auto

3. shell - Remote Code Execution

Deploys the webshell and executes commands. If no credentials are provided, it automatically triggers the pre-auth admin creation bridge.

OptionDescriptionDefault
--userAdmin username. (Omit to use the pre-auth bridge).None
--passwordAdmin password. (Omit to use the pre-auth bridge).None
--cmdSingle command to run on the target.None
-i, --interactiveOpen an interactive shell (REPL) after deploying.False

🖥️ Execution Evidence & Examples

Below are real-world examples of the tool in action.

Example 1: Checking for Vulnerability

$ python3 exploit.py check http://vulnerable-wordpress.local --confirm-sqli

[*] WordPress markers found (wp-content / wp-includes / wp-json)
[*] Public WordPress version hints:
    - 6.9.2 via REST API generator (exploit affected range) - WordPress 6.9.2
[!] A public version hint falls in the exploit affected range; verify internally or confirm with authorization.
[*] Batch probe -> HTTP 207; markers matched: parse_path_failed, block_cannot_read, rest_batch_not_allowed
[+] VULNERABLE — batch route-confusion behavior detected.
[*] Sending active SQLi confirmation payload...
[+] SQLi confirmed — UNION fake-post read returned data.

Example 2: Extracting Database Fingerprint

$ python3 exploit.py read http://vulnerable-wordpress.local --preset fingerprint --technique union

[+] UNION extraction available (in-band, one request per value) — using it.
[+] MySQL version: 10.6.12-MariaDB-0ubuntu0.22.04.1
[+] Database user: wp_user@localhost
[+] Database name: wordpress_db
[*] 3 request(s) sent.

Example 3: Dumping User Credentials

$ python3 exploit.py read http://vulnerable-wordpress.local --preset users --prefix wp_
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    938
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    556
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    352
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    343
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    336
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    291

Explore all tools

Browse our collection of tools

View all tools →