Koken CMS 0.22.24 contains a file upload vulnerability that allows authenticated attackers to bypass file extension restrictions by renaming malicious PHP files. Attackers can upload PHP files with system command execution capabilities by manipulating the file upload request through a web proxy and changing the file extension.
Koken CMS 0.22.24 contains a critical authenticated file upload vulnerability (CVE-2020-37023) allowing attackers to bypass file extension restrictions and upload malicious PHP files with command execution capabilities. This vulnerability affects organizations using Koken CMS for content management and poses significant risk to web application security. Immediate patching is required as the vulnerability enables remote code execution once authenticated.
1. IMMEDIATE ACTIONS:
- Identify all instances of Koken CMS 0.22.24 in your environment
- Restrict access to file upload functionality to trusted users only
- Review recent file uploads for suspicious PHP files or unexpected extensions
- Monitor web server logs for unusual file upload patterns
2. PATCHING GUIDANCE:
- Upgrade Koken CMS to version 0.22.25 or later immediately
- Test patches in non-production environment first
- Verify file upload restrictions are enforced post-patch
3. COMPENSATING CONTROLS (if patching delayed):
- Implement web application firewall (WAF) rules to block PHP file uploads
- Disable PHP execution in upload directories via web server configuration
- Implement strict file type validation on server-side (whitelist approach)
- Require file extension verification against MIME type
4. DETECTION RULES:
- Monitor for POST requests to file upload endpoints with suspicious parameters
- Alert on PHP files appearing in upload directories
- Track failed file upload attempts with extension manipulation
- Monitor for execution of recently uploaded files
1. الإجراءات الفورية:
- تحديد جميع نسخ Koken CMS 0.22.24 في بيئتك
- تقييد الوصول إلى وظيفة تحميل الملفات للمستخدمين الموثوقين فقط
- مراجعة عمليات التحميل الأخيرة للبحث عن ملفات PHP مريبة أو امتدادات غير متوقعة
- مراقبة سجلات خادم الويب للبحث عن أنماط تحميل ملفات غير عادية
2. إرشادات التصحيح:
- ترقية Koken CMS إلى الإصدار 0.22.25 أو أحدث فوراً
- اختبار التصحيحات في بيئة غير الإنتاج أولاً
- التحقق من فرض قيود تحميل الملفات بعد التصحيح
3. الضوابط البديلة (إذا تأخر التصحيح):
- تطبيق قواعد جدار حماية تطبيقات الويب (WAF) لحظر تحميل ملفات PHP
- تعطيل تنفيذ PHP في مجلدات التحميل عبر إعدادات خادم الويب
- تطبيق التحقق الصارم من نوع الملف على جانب الخادم (نهج القائمة البيضاء)
- طلب التحقق من امتداد الملف مقابل نوع MIME
4. قواعد الكشف:
- مراقبة طلبات POST إلى نقاط نهاية تحميل الملفات بمعاملات مريبة
- تنبيه عند ظهور ملفات PHP في مجلدات التحميل
- تتبع محاولات تحميل الملفات الفاشلة مع معالجة امتداد الملف
- مراقبة تنفيذ الملفات المحملة مؤخراً