Sploitus

Exploit for CVE-2026-18366

githubexploit Β· 2026-08-16

Exploit Code

README219 lines
## https://sploitus.com/exploit?id=0D05FDA5-2D32-5BF2-B5F3-D39DFE729B14
# CVE-2026-18366
Events Manager < 7.4.1 - Unauthenticated Privilege Escalation to Administrator



  
  
  



  


---



## πŸ”— Stay Updated


  


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

[![Telegram Channel](https://img.shields.io/badge/Join_Now-Latest_Exploits-00FF00?style=flat-square&logo=telegram)](https://t.me/KNxploited)



---

## πŸ“‹ Vulnerability Overview

| Attribute | Details |
|-----------|---------|
| **CVE ID** | CVE-2026-18366 |
| **Severity** | πŸ”΄ **CRITICAL** (CVSS 9.8) |
| **Plugin** | Events Manager for WordPress |
| **Affected Versions** |  ⚠️ 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

```bash
pip install aiohttp
```

### Quick Start

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

```bash
python CVE-2026-18366.py -l targets.txt -s 20 --timeout 30
```

| Option | Description |
|--------|-------------|
| `-l, --list` | Path to file containing target URLs |
| `-s, --speed` | Number of concurrent workers (1-200) |
| `--timeout` | Request 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:

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](https://img.shields.io/badge/Telegram-@KNxploited-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/KNxploited)

---

Security Research β€’ Ethical Hacking β€’ Zero-Day Discovery