Roundcube Webmail File Disclosure Vulnerability — Roundcube Webmail contains a file disclosure vulnerability caused by insufficient input validation in conjunction with file-based attachment plugins, which are used by default.
CVE-2017-16651 is a critical file disclosure vulnerability in Roundcube Webmail caused by insufficient input validation in file-based attachment plugins that are enabled by default. With a CVSS score of 9.0 and known exploits available, attackers can read arbitrary files from the server, potentially exposing sensitive configuration files, credentials, and other confidential data. This vulnerability affects all Roundcube installations using default attachment plugin configurations. Organizations using Roundcube for webmail services should patch immediately as exploitation is actively possible.
Immediate Actions:
1. Update Roundcube Webmail to version 1.3.3, 1.2.8, or 1.1.10 or later immediately
2. If immediate patching is not possible, disable file-based attachment plugins (filesystem_attachments, redundant_attachments) and switch to database-based attachment storage
Patching Guidance:
- Download the latest stable release from https://roundcube.net/download/
- Apply the security patch and restart the web server
- Verify the update by checking the Roundcube version in the admin panel
Compensating Controls:
- Restrict access to Roundcube to internal networks or VPN only
- Implement WAF rules to detect path traversal patterns in attachment-related requests
- Monitor web server logs for suspicious file access patterns (e.g., attempts to read /etc/passwd, configuration files)
- Review server file permissions to minimize readable files by the web server user
Detection Rules:
- Monitor for HTTP requests containing path traversal sequences (../) targeting attachment endpoints
- Alert on access to sensitive system files from the web server process
- Implement file integrity monitoring on Roundcube configuration files
الإجراءات الفورية:
1. تحديث Roundcube Webmail إلى الإصدار 1.3.3 أو 1.2.8 أو 1.1.10 أو أحدث فوراً
2. في حال عدم إمكانية التحديث الفوري، قم بتعطيل إضافات المرفقات المعتمدة على الملفات (filesystem_attachments, redundant_attachments) والتحول إلى تخزين المرفقات في قاعدة البيانات
إرشادات التصحيح:
- تنزيل أحدث إصدار مستقر من https://roundcube.net/download/
- تطبيق التصحيح الأمني وإعادة تشغيل خادم الويب
- التحقق من التحديث عبر فحص إصدار Roundcube في لوحة الإدارة
الضوابط التعويضية:
- تقييد الوصول إلى Roundcube على الشبكات الداخلية أو عبر VPN فقط
- تطبيق قواعد جدار حماية تطبيقات الويب لاكتشاف أنماط اجتياز المسار في طلبات المرفقات
- مراقبة سجلات خادم الويب للكشف عن أنماط وصول مشبوهة للملفات
- مراجعة أذونات ملفات الخادم لتقليل الملفات القابلة للقراءة بواسطة مستخدم خادم الويب
قواعد الكشف:
- مراقبة طلبات HTTP التي تحتوي على تسلسلات اجتياز المسار (../) التي تستهدف نقاط نهاية المرفقات
- التنبيه عند الوصول إلى ملفات النظام الحساسة من عملية خادم الويب
- تطبيق مراقبة سلامة الملفات على ملفات تكوين Roundcube