eDirectory contains multiple SQL injection vulnerabilities that allow unauthenticated attackers to bypass administrator authentication and disclose sensitive files by injecting SQL code into parameters. Attackers can exploit the key parameter in the login endpoint with union-based SQL injection to authenticate as administrator, then leverage authenticated file disclosure vulnerabilities in language_file.php to read arbitrary PHP files from the server.
CVE-2019-25675 is a critical SQL injection vulnerability in eDirectory that allows unauthenticated attackers to bypass administrator authentication and disclose sensitive files. The vulnerability exists in the login endpoint's key parameter, enabling attackers to authenticate as administrators without credentials and subsequently read arbitrary PHP files. With a CVSS score of 8.2 and no available patch, this poses an immediate threat to organizations using affected eDirectory versions.
IMMEDIATE ACTIONS:
1. Identify all eDirectory installations in your environment and document versions
2. Implement network-level access controls to restrict access to eDirectory login endpoints
3. Enable comprehensive logging and monitoring of all authentication attempts
4. Isolate affected eDirectory systems from production networks if possible
DETECTION:
1. Monitor for SQL injection patterns in login requests: look for SQL keywords (UNION, SELECT, OR, --) in the 'key' parameter
2. Alert on multiple failed authentication attempts followed by successful admin logins
3. Monitor for unusual file access patterns in language_file.php requests
4. Log all requests containing special characters (%27, %22, %2D%2D) in authentication parameters
COMPENSATING CONTROLS:
1. Implement Web Application Firewall (WAF) rules to block SQL injection patterns in login parameters
2. Deploy input validation at network perimeter to reject requests with SQL keywords
3. Implement rate limiting on login endpoints to prevent brute force exploitation
4. Enable multi-factor authentication (MFA) for all administrative accounts
5. Restrict file system permissions on PHP files to read-only for web server process
6. Consider upgrading to alternative directory services (Active Directory, OpenLDAP) if available
PATCHING:
1. Contact eDirectory vendor immediately for security updates
2. If no patch available, plan migration to patched version or alternative solution
3. Implement temporary access controls while awaiting patches
الإجراءات الفورية:
1. تحديد جميع تثبيتات eDirectory في بيئتك وتوثيق الإصدارات
2. تطبيق عناصر تحكم الوصول على مستوى الشبكة لتقييد الوصول إلى نقاط نهاية تسجيل الدخول
3. تفعيل السجلات الشاملة ومراقبة جميع محاولات المصادقة
4. عزل أنظمة eDirectory المتأثرة عن شبكات الإنتاج إن أمكن
الكشف:
1. مراقبة أنماط حقن SQL في طلبات تسجيل الدخول: ابحث عن كلمات SQL (UNION, SELECT, OR, --) في معامل 'key'
2. تنبيهات على محاولات مصادقة فاشلة متعددة تتبعها عمليات تسجيل دخول إدارية ناجحة
3. مراقبة أنماط الوصول غير العادية في طلبات language_file.php
4. تسجيل جميع الطلبات التي تحتوي على أحرف خاصة في معاملات المصادقة
عناصر التحكم البديلة:
1. تطبيق قواعد جدار حماية تطبيقات الويب (WAF) لحظر أنماط حقن SQL
2. نشر التحقق من الإدخال على محيط الشبكة لرفض الطلبات التي تحتوي على كلمات SQL
3. تطبيق تحديد معدل على نقاط نهاية تسجيل الدخول
4. تفعيل المصادقة متعددة العوامل (MFA) لجميع الحسابات الإدارية
5. تقييد أذونات نظام الملفات على ملفات PHP
6. النظر في الترقية إلى خدمات دليل بديلة إذا كانت متاحة