A vulnerability was identified in Dolibarr ERP CRM up to 23.0.2. The impacted element is an unknown function of the file htdocs/core/filemanagerdol/connectors/php/config.inc.php of the component Legacy Filemanager. The manipulation leads to improper authorization. It is possible to initiate the attack remotely. The exploit is publicly available and might be used. Upgrading to version 23.0.3 is sufficient to resolve this issue. The identifier of the patch is f1b2dd6481e22cacb561d29ffdcd3a50b618479d. Upgrading the affected component is advised.
Dolibarr ERP CRM versions up to 23.0.2 contain an improper authorization vulnerability in the Legacy Filemanager component that allows remote attackers to bypass access controls. The vulnerability affects the config.inc.php file and has a publicly available exploit, though patch availability is currently limited. Organizations using Dolibarr should immediately implement compensating controls and plan for urgent patching.
IMMEDIATE ACTIONS:
1. Identify all instances of Dolibarr ERP CRM in your environment and document versions (particularly versions ≤23.0.2)
2. Restrict network access to htdocs/core/filemanagerdol/connectors/php/config.inc.php using WAF rules or firewall ACLs
3. Implement IP whitelisting for administrative access to Dolibarr instances
4. Review access logs for suspicious activity targeting the Legacy Filemanager component
PATCHING GUIDANCE:
1. Upgrade to Dolibarr version 23.0.3 or later immediately when available
2. Apply patch f1b2dd6481e22cacb561d29ffdcd3a50b618479d from official Dolibarr repository
3. Test patches in non-production environment before deployment
4. Maintain backup before patching
COMPENSATING CONTROLS (until patch available):
1. Disable Legacy Filemanager component if not actively used
2. Implement reverse proxy authentication (e.g., nginx/Apache) requiring additional authentication
3. Deploy Web Application Firewall (WAF) rules to block suspicious requests to config.inc.php
4. Implement file integrity monitoring (FIM) on affected PHP files
5. Restrict PHP execution permissions on filemanagerdol directory
DETECTION RULES:
1. Monitor HTTP requests to /htdocs/core/filemanagerdol/connectors/php/config.inc.php with unusual parameters
2. Alert on unauthorized file access attempts in Dolibarr logs
3. Track failed authentication attempts followed by successful access to filemanager functions
4. Monitor for privilege escalation patterns in Dolibarr audit logs
الإجراءات الفورية:
1. حدد جميع مثيلات Dolibarr ERP CRM في بيئتك وتوثيق الإصدارات (خاصة الإصدارات ≤23.0.2)
2. قيد الوصول إلى الشبكة إلى htdocs/core/filemanagerdol/connectors/php/config.inc.php باستخدام قواعد WAF أو قوائم التحكم في الوصول بجدار الحماية
3. تنفيذ قائمة بيضاء IP للوصول الإداري إلى مثيلات Dolibarr
4. راجع سجلات الوصول للنشاط المريب الموجه نحو مكون Legacy Filemanager
إرشادات التصحيح:
1. قم بالترقية إلى إصدار Dolibarr 23.0.3 أو أحدث فوراً عند توفره
2. تطبيق التصحيح f1b2dd6481e22cacb561d29ffdcd3a50b618479d من مستودع Dolibarr الرسمي
3. اختبر التصحيحات في بيئة غير الإنتاج قبل النشر
4. الحفاظ على النسخة الاحتياطية قبل التصحيح
عناصر التحكم التعويضية (حتى توفر التصحيح):
1. تعطيل مكون Legacy Filemanager إذا لم يكن قيد الاستخدام النشط
2. تنفيذ مصادقة reverse proxy (مثل nginx/Apache) تتطلب مصادقة إضافية
3. نشر قواعد Web Application Firewall (WAF) لحظر الطلبات المريبة إلى config.inc.php
4. تنفيذ مراقبة سلامة الملفات (FIM) على ملفات PHP المتأثرة
5. تقييد أذونات تنفيذ PHP على دليل filemanagerdol
قواعد الكشف:
1. مراقبة طلبات HTTP إلى /htdocs/core/filemanagerdol/connectors/php/config.inc.php بمعاملات غير عادية
2. تنبيه على محاولات الوصول غير المصرح بها للملفات في سجلات Dolibarr
3. تتبع محاولات المصادقة الفاشلة متبوعة بالوصول الناجح إلى وظائف filemanager
4. مراقبة أنماط تصعيد الامتيازات في سجلات تدقيق Dolibarr