Cassandra Web 0.5.0 contains a directory traversal vulnerability that allows unauthenticated attackers to read arbitrary files by manipulating path traversal parameters. Attackers can exploit the disabled Rack::Protection module to read sensitive system files like /etc/passwd and retrieve Apache Cassandra database credentials.
CVE-2020-36939 is a critical directory traversal vulnerability in Cassandra Web 0.5.0 that allows unauthenticated attackers to read arbitrary files from the system, including sensitive credentials and configuration files. The vulnerability exploits a disabled Rack::Protection module, enabling attackers to bypass path validation mechanisms. While no public exploit is currently available, the vulnerability poses significant risk to organizations running vulnerable Cassandra Web instances, particularly those exposing the interface to untrusted networks.
IMMEDIATE ACTIONS:
1. Identify all instances of Cassandra Web 0.5.0 in your environment using network scanning and asset inventory tools
2. Immediately restrict network access to Cassandra Web interfaces using firewall rules - limit to trusted administrative networks only
3. Disable or remove Cassandra Web if not actively required for operations
PATCHING GUIDANCE:
1. Upgrade Cassandra Web to version 0.6.0 or later immediately
2. Verify patch installation by checking application version in web interface
3. Test functionality in staging environment before production deployment
COMPENSATING CONTROLS (if immediate patching not possible):
1. Implement Web Application Firewall (WAF) rules to block path traversal attempts (../, ..\, encoded variants)
2. Deploy reverse proxy with strict input validation in front of Cassandra Web
3. Enable Rack::Protection module manually if possible through configuration
4. Implement network segmentation to isolate Cassandra Web from untrusted networks
5. Monitor access logs for suspicious path patterns
DETECTION RULES:
1. Monitor HTTP requests containing: ../, ..\, %2e%2e, encoded traversal sequences
2. Alert on requests to sensitive paths: /etc/passwd, /etc/shadow, /proc/, /sys/
3. Track failed authentication attempts followed by directory traversal attempts
4. Monitor for unusual file read patterns in application logs
الإجراءات الفورية:
1. تحديد جميع نسخ Cassandra Web 0.5.0 في بيئتك باستخدام أدوات المسح والجرد
2. تقييد الوصول الفوري إلى واجهات Cassandra Web باستخدام قواعد جدار الحماية - حصر الوصول للشبكات الإدارية الموثوقة فقط
3. تعطيل أو إزالة Cassandra Web إذا لم تكن مطلوبة للعمليات
إرشادات التصحيح:
1. ترقية Cassandra Web إلى الإصدار 0.6.0 أو أحدث فوراً
2. التحقق من تثبيت التصحيح بفحص إصدار التطبيق في الواجهة
3. اختبار الوظائف في بيئة التجريب قبل النشر الإنتاجي
الضوابط البديلة (إذا لم يكن التصحيح الفوري ممكناً):
1. تنفيذ قواعد جدار تطبيقات الويب لحجب محاولات اجتياز المسارات
2. نشر وكيل عكسي مع التحقق الصارم من المدخلات
3. تفعيل وحدة Rack::Protection يدوياً إن أمكن
4. تنفيذ تقسيم الشبكة لعزل Cassandra Web
5. مراقبة سجلات الوصول للأنماط المريبة
قواعد الكشف:
1. مراقبة طلبات HTTP التي تحتوي على: ../, ..\, %2e%2e
2. التنبيه على الطلبات للمسارات الحساسة: /etc/passwd, /etc/shadow
3. تتبع محاولات المصادقة الفاشلة متبوعة بمحاولات اجتياز المسارات
4. مراقبة أنماط قراءة الملفات غير العادية