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
CVE-2026-87902 — Tkinter GUI exploit console for CVE-2026-87902: fingerprints WordPress, confirms unauthenticated LFI via pagename traversal, escalates to RCE through a PEAR gadget chain, and deploys a file manager. | Kitploit
Tools/GitHubGitHub/tonydelouvre/cve-2026-87902
Vulnerability ScannersExploitationWeb Application ExploitationInformation GatheringPost-ExploitationWeb SecurityPenetration TestingRed TeamingRemote Access ToolPayload Development
GitHub
51 month agoNot yet reviewed
tonydelouvre/cve-2026-87902

CVE-2026-87902

Tkinter GUI exploit console for CVE-2026-87902: fingerprints WordPress, confirms unauthenticated LFI via pagename traversal, escalates to RCE through a PEAR gadget chain, and deploys a file manager.

View Repository

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

⚡ XWP_RCE — CVE-2026-87902 Hacker Console

WordPress Core get_page_template() — Unauthenticated LFI → PEAR Gadget → RCE

CVE CVSS GHSA CWE Python GUI License

A dark-neon GUI built on top of the logic from MRdark-ops/CVE-2026-87902.


🔍 Overview

A modern Tkinter GUI (standard library only, no third-party dependencies) for CVE-2026-87902 — an unauthenticated Local File Inclusion in WordPress core via the pagename parameter of get_page_template(), escalated to Remote Code Execution through a PEAR gadget chain (pearcmd.php + config-create).

  • Affected: WordPress 4.7.0 – 7.1.1
  • Fixed in: 6.8.10, 7.0.6, 7.1.2
  • CVSS: 9.8 — CWE: 22 — GHSA: 7hp8-65ch-5whp

✨ Features

  • 🎯 Single & mass scanning — one target or a URL list from a file, multi-threaded
  • 🔎 Fingerprinting — detects WordPress, core version, and active theme
  • 🧪 Non-destructive check — check-only mode confirms the LFI without executing anything
  • 💥 LFI → RCE — brute-forces pearcmd.php (Linux + XAMPP/Windows) across depths 1–19, writes PHP via config-create
  • 📁 File Manager deployment — drops fm_<hex>.php into the configured drop directory once RCE succeeds
  • 🛡️ False-positive guard — negative-control probe on the OPML oracle (detects ambient output)
  • 🎨 Hacker Console UI — dark-neon theme, matrix rain, colour-coded console, live stats, progress bar
  • 📊 CSV export — dump the full result set to CSV

📦 Requirements

  • Python 3.8 or newer
  • No pip install needed — pure standard library (tkinter, urllib, ssl, socket, gzip, zlib, threading, queue, ...)

If Tkinter is missing on your system (this is an OS package, not a pip package):

PlatformCommand
Debian / Ubuntusudo apt install python3-tk
Fedora / RHELsudo dnf install python3-tkinter
Arch Linuxsudo pacman -S tk
macOS (Homebrew)brew install python-tk
WindowsBundled with the official Python installer

⚡ Quick Start

git clone https://github.com/tonydelouvre/CVE-2026-87902.git
cd CVE-2026-87902
python3 xwp_gui.py

Keyboard shortcuts:

KeyAction
Ctrl+EnterStart scan
EscStop scan

🎯 Usage

  1. TARGET — choose SINGLE (one URL) or MASS, then BROWSE LIST a .txt file containing one URL per line.
  2. MODE — tick exploit -> RCE and deploy file manager for the full chain, or check-only for a safe verification pass.
  3. ADVANCED — tune oracle, depths, segments, probe, threads, timeout, proxy.
  4. Hit START SCAN and watch the CONSOLE and RESULTS tabs.

Configuration fields

FieldDefaultDescription
target url–Target base URL (single mode)
target list–File of URLs (mass mode)
commandidCommand executed once RCE is achieved
drop dir/tmpDirectory where the File Manager is written
oraclewp-links-opmlCore file abused as the LFI oracle
depths4,3,5,6,7../ traversal depths to try
segmentstemplates,templates/page-templates,page-templatesTheme page-* directories
probe12Number of page_id values to probe
threads10Parallel workers (max 50)
timeout12.0Per-request timeout in seconds
max time60.0Time budget per target in seconds
proxy–http://host:port

Payload construction

build_pagename() produces segment + %252f + N× %252e%252e%252f + target, applying double URL-encoding:

/?page_id=<N>&pagename=templates%252f%252e%252e%252f...%252fwp-links-opml

🔬 How It Works

PhaseModuleAction
1. FingerprintFingerprinterDetect WordPress + version (generator, ?ver=, wp-links-opml.php) and theme
2. PreconditionPreconditionCheckerLocate the theme page-* directory used as the traversal segment
3. DiscoveryPageDiscovererCollect page_id values via REST API, sitemaps, shortlinks, page-id- classes
4. LFITraversalExploiterRequest ?page_id=N&pagename=<double-encoded path> and look for the <opml version= oracle
5. RCERCEEscalatorLocate a pearcmd.php gadget at depth 1–19, write PHP via pear +config-create+, execute the command
6. Post-exploitshell.phpDeploy the File Manager (fm_<hex>.php) into the drop directory

Version shortcuts: if the fingerprint reports patched or out_of_range, the target is skipped immediately to save time.


🖥️ Output

The RESULTS tab shows the columns target, verdict, version, lfi, rce, shell. Rows classified VULNERABLE are highlighted in cyan; rows that achieved RCE turn magenta. EXPORT writes everything to CSV:

target,verdict,version,lfi,rce,shell,detail
http://target.local,VULNERABLE,6.4,templates/../../ d=4 POST,uid=33(www-data),http://target.local/?page_id=2&pagename=...,

🛡️ Mitigation

For system administrators:

  1. Update WordPress to 7.1.2 or later (backports: 6.8.10, 7.0.6, 7.1.2).
  2. Add a WAF rule blocking requests whose pagename contains ../ or %2e%2e.
  3. Disable register_argc_argv in php.ini — this breaks the PEAR gadget chain.
  4. Remove pearcmd.php if PEAR is not required.
; php.ini
register_argc_argv = Off

⚖️ Legal Disclaimer

FOR AUTHORIZED SECURITY TESTING ONLY

This tool is provided exclusively for penetration testing and security research with prior written consent. Using it against targets without explicit authorisation is:

Download Tool