CyberPanel 2.1 contains a command execution vulnerability that allows authenticated attackers to read arbitrary files and execute remote code by exploiting symlink attacks through the filemanager controller endpoint. Attackers can manipulate the completeStartingPath parameter in POST requests to /filemanager/controller to create symbolic links, read sensitive files like database credentials, and execute arbitrary shell commands through the /websites/fetchFolderDetails endpoint.
CyberPanel 2.1 contains a critical authenticated remote code execution vulnerability (CVE-2021-47949) exploiting symlink attacks in the filemanager controller. Attackers with valid credentials can manipulate file paths to read sensitive files including database credentials and execute arbitrary shell commands. This poses significant risk to Saudi hosting providers and web hosting companies managing customer websites.
IMMEDIATE ACTIONS:
1. Identify all CyberPanel 2.1 instances in your environment and isolate from production if possible
2. Review access logs for /filemanager/controller endpoint for suspicious POST requests with completeStartingPath parameters
3. Audit database credentials and rotate all passwords immediately
4. Check for unauthorized symbolic links in website directories
COMPENSATING CONTROLS (No patch available):
1. Implement strict network access controls - restrict filemanager endpoint to trusted IPs only
2. Disable filemanager functionality if not actively used
3. Implement Web Application Firewall (WAF) rules to block POST requests to /filemanager/controller with suspicious path traversal patterns
4. Monitor for symlink creation attempts in /websites/ directories
5. Implement file integrity monitoring on critical configuration files
6. Enforce strong authentication and disable default credentials
7. Consider upgrading to alternative control panel solutions (cPanel, Plesk) if available
DETECTION RULES:
- Alert on POST requests to /filemanager/controller containing '../' or symlink creation patterns
- Monitor /websites/fetchFolderDetails for unusual parameter values
- Track file access to database configuration files and credentials
- Log all shell command executions from web server processes
الإجراءات الفورية:
1. تحديد جميع نسخ CyberPanel 2.1 في بيئتك وعزلها عن الإنتاج إن أمكن
2. مراجعة سجلات الوصول لنقطة نهاية /filemanager/controller للطلبات المريبة
3. تدقيق بيانات اعتماد قاعدة البيانات وتدوير جميع كلمات المرور فوراً
4. التحقق من الروابط الرمزية غير المصرح بها في مجلدات الموقع
الضوابط التعويضية (لا توجد تصحيحات متاحة):
1. تطبيق ضوابط وصول شبكة صارمة - تقييد نقطة نهاية مدير الملفات لعناوين IP موثوقة فقط
2. تعطيل وظيفة مدير الملفات إذا لم تكن قيد الاستخدام
3. تطبيق قواعد جدار حماية تطبيقات الويب لحظر طلبات POST المريبة
4. مراقبة محاولات إنشاء الروابط الرمزية
5. تطبيق مراقبة سلامة الملفات على الملفات الحساسة
6. فرض المصادقة القوية وتعطيل بيانات الاعتماد الافتراضية
7. النظر في الترقية إلى حلول لوحة تحكم بديلة