PMB 5.6 contains a local file disclosure vulnerability in getgif.php that allows attackers to read arbitrary system files by manipulating the 'chemin' parameter. Attackers can exploit the unsanitized file path input to access sensitive files like /etc/passwd by sending crafted requests to the getgif.php endpoint.
CVE-2020-36970 is a path traversal vulnerability in PMB 5.6's getgif.php that enables unauthenticated attackers to read arbitrary system files through unsanitized 'chemin' parameter manipulation. With a CVSS score of 8.4, this vulnerability poses significant risk to organizations running vulnerable PMB instances, potentially exposing sensitive configuration files, credentials, and system information. Immediate patching is critical as exploitation requires minimal technical sophistication.
IMMEDIATE ACTIONS:
1. Identify all systems running PMB 5.6 and document their network locations and data sensitivity levels
2. Implement network-level access controls restricting access to getgif.php endpoint to authorized users only
3. Deploy Web Application Firewall (WAF) rules to block requests containing path traversal patterns (../, ..\ , %2e%2e) in the 'chemin' parameter
PATCHING:
1. Upgrade PMB to version 5.7 or later immediately
2. If immediate upgrade is not possible, apply vendor security patches when available
3. Test patches in non-production environment before deployment
COMPENSATING CONTROLS (if patch unavailable):
1. Implement input validation: whitelist allowed file paths and reject any requests containing directory traversal sequences
2. Run PMB with minimal file system permissions (principle of least privilege)
3. Disable getgif.php if not actively used
4. Implement strict file access controls on sensitive system files (/etc/passwd, configuration files)
DETECTION:
1. Monitor web server logs for requests to getgif.php containing: ../, ..\ , %2e%2e, or encoded variants
2. Alert on any access to /etc/passwd or other sensitive system files via web application
3. Implement IDS/IPS signatures for path traversal attempts
4. Log all file access attempts from web application processes
الإجراءات الفورية:
1. تحديد جميع الأنظمة التي تشغل PMB 5.6 وتوثيق مواقعها على الشبكة ومستويات حساسية البيانات
2. تطبيق عناصر التحكم في الوصول على مستوى الشبكة لتقييد الوصول إلى نقطة نهاية getgif.php للمستخدمين المصرح لهم فقط
3. نشر قواعد جدار حماية تطبيقات الويب (WAF) لحجب الطلبات التي تحتوي على أنماط اجتياز المسار (../, ..\ , %2e%2e) في معامل 'chemin'
التصحيح:
1. ترقية PMB إلى الإصدار 5.7 أو أحدث فوراً
2. إذا لم يكن الترقية الفورية ممكنة، طبق تصحيحات الأمان من المورد عند توفرها
3. اختبر التصحيحات في بيئة غير الإنتاج قبل النشر
عناصر التحكم البديلة (إذا لم يكن التصحيح متاحاً):
1. تطبيق التحقق من صحة الإدخال: إدراج المسارات المسموحة في القائمة البيضاء ورفض أي طلبات تحتوي على تسلسلات اجتياز الدليل
2. تشغيل PMB بأقل صلاحيات نظام الملفات (مبدأ أقل امتياز)
3. تعطيل getgif.php إذا لم يكن قيد الاستخدام النشط
4. تطبيق عناصر تحكم صارمة في الوصول إلى الملفات الحساسة (/etc/passwd، ملفات التكوين)
الكشف:
1. مراقبة سجلات خادم الويب للطلبات إلى getgif.php التي تحتوي على: ../, ..\ , %2e%2e، أو متغيرات مشفرة
2. تنبيه عند أي وصول إلى /etc/passwd أو ملفات نظام حساسة أخرى عبر تطبيق الويب
3. تطبيق توقيعات IDS/IPS لمحاولات اجتياز المسار
4. تسجيل جميع محاولات الوصول إلى الملفات من عمليات تطبيق الويب