Xerte Online Toolkits versions 3.15 and earlier contain a missing authentication vulnerability in the elFinder connector endpoint at /editor/elfinder/php/connector.php where an HTTP redirect to unauthenticated callers does not call exit() or die(), allowing PHP execution to continue and process the full request server-side. Unauthenticated attackers can perform file operations on project media directories including creating directories, uploading files, renaming files, duplicating files, overwriting files, and deleting files, which can be chained with path traversal and extension blocklist vulnerabilities to achieve remote code execution and arbitrary file read.
Xerte Online Toolkits versions 3.15 and earlier contain a critical authentication bypass vulnerability in the elFinder connector that allows unauthenticated attackers to perform arbitrary file operations on the server. The vulnerability stems from improper HTTP redirect handling that fails to terminate execution, enabling attackers to upload malicious files, manipulate project media, and potentially achieve remote code execution. This poses an immediate threat to educational institutions and organizations using Xerte for e-learning content management.
IMMEDIATE ACTIONS:
1. Identify all instances of Xerte Online Toolkits version 3.15 or earlier in your environment
2. Disable or restrict access to /editor/elfinder/php/connector.php endpoint immediately using web application firewall (WAF) rules
3. Implement network-level access controls limiting elFinder connector access to authenticated users only
4. Review access logs for the connector.php endpoint for signs of exploitation (file upload/creation/deletion attempts)
PATCHING GUIDANCE:
1. Monitor Xerte project repository for security patches (currently no official patch available)
2. As interim measure, implement authentication wrapper around the connector endpoint
3. Consider upgrading to Xerte version 3.16 or later when available
4. Apply input validation and output encoding to all file operations
COMPENSATING CONTROLS:
1. Deploy WAF rules to block requests to /editor/elfinder/php/connector.php from unauthenticated sources
2. Implement strict file upload restrictions: whitelist allowed file extensions, disable script execution in upload directories
3. Configure web server to prevent PHP execution in media directories (add .htaccess or nginx config)
4. Enable comprehensive logging and monitoring of file operations
5. Implement file integrity monitoring on project media directories
6. Use application-level authentication checks before processing any file operations
DETECTION RULES:
1. Alert on POST/GET requests to /editor/elfinder/php/connector.php without valid session tokens
2. Monitor for file creation/upload operations in media directories from unauthenticated sources
3. Flag requests containing path traversal patterns (../, ..\) in connector parameters
4. Alert on executable file uploads (.php, .phtml, .php5, .phar) to media directories
5. Monitor for unusual file operations (mass deletion, rapid file creation) in project directories
الإجراءات الفورية:
1. تحديد جميع نسخ Xerte Online Toolkits الإصدار 3.15 أو أقدم في بيئتك
2. تعطيل أو تقييد الوصول إلى نقطة نهاية /editor/elfinder/php/connector.php فوراً باستخدام قواعد جدار حماية تطبيقات الويب
3. تطبيق عناصر تحكم الوصول على مستوى الشبكة لتقييد وصول موصل elFinder للمستخدمين المصرح لهم فقط
4. مراجعة سجلات الوصول لنقطة نهاية connector.php للبحث عن علامات الاستغلال
إرشادات التصحيح:
1. مراقبة مستودع مشروع Xerte للحصول على تصحيحات أمان (لا يوجد تصحيح رسمي متاح حالياً)
2. كإجراء مؤقت، تطبيق غلاف مصادقة حول نقطة نهاية الموصل
3. النظر في الترقية إلى إصدار Xerte 3.16 أو أحدث عند توفره
4. تطبيق التحقق من صحة الإدخال والترميز على جميع عمليات الملفات
عناصر التحكم البديلة:
1. نشر قواعد WAF لحظر الطلبات إلى /editor/elfinder/php/connector.php من مصادر غير مصرح لها
2. تطبيق قيود صارمة على تحميل الملفات: قائمة بيضاء للامتدادات المسموحة، تعطيل تنفيذ البرامج النصية في دلائل التحميل
3. تكوين خادم الويب لمنع تنفيذ PHP في دلائل الوسائط
4. تفعيل السجلات الشاملة ومراقبة عمليات الملفات
5. تطبيق مراقبة سلامة الملفات على دلائل وسائط المشروع
6. استخدام فحوصات المصادقة على مستوى التطبيق قبل معالجة أي عمليات ملفات
قواعد الكشف:
1. تنبيهات على طلبات POST/GET إلى /editor/elfinder/php/connector.php بدون رموز جلسة صحيحة
2. مراقبة عمليات إنشاء/تحميل الملفات في دلائل الوسائط من مصادر غير مصرح لها
3. وضع علامة على الطلبات التي تحتوي على أنماط اجتياز المسار في معاملات الموصل
4. تنبيهات على تحميل الملفات القابلة للتنفيذ إلى دلائل الوسائط
5. مراقبة عمليات الملفات غير العادية في دلائل المشروع