A vulnerability has been found in Dromara UJCMS 101.2. This issue affects the function deleteDirectory of the file WebFileTemplateController.delete of the component Template Handler. Such manipulation leads to path traversal. The attack may be performed from remote. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
A path traversal vulnerability exists in Dromara UJCMS 10.1.2's Template Handler component, allowing remote attackers to delete arbitrary directories through the deleteDirectory function. With a CVSS score of 5.4 and publicly disclosed exploit code, this poses a moderate risk to organizations using this CMS. No patch is currently available from the vendor, requiring immediate compensating controls.
IMMEDIATE ACTIONS:
1. Inventory all systems running UJCMS 10.1.2 and isolate affected instances from production if possible
2. Implement Web Application Firewall (WAF) rules to block requests containing path traversal patterns (../, ..\, %2e%2e) targeting the /template or /delete endpoints
3. Restrict access to WebFileTemplateController.delete to authorized administrators only via IP whitelisting and authentication enforcement
4. Monitor and log all file deletion operations in the application
COMPENSATING CONTROLS:
5. Implement strict file system permissions—ensure UJCMS application runs with minimal privileges and cannot access parent directories
6. Deploy file integrity monitoring (FIM) on template directories to detect unauthorized deletions
7. Maintain automated daily backups of template directories with immutable retention policies
8. Disable the deleteDirectory functionality if not operationally required
DETECTION RULES:
9. Monitor for HTTP requests with patterns: POST/GET to */delete* containing encoded or literal path traversal sequences
10. Alert on unexpected file deletions in template directories outside normal maintenance windows
11. Track failed authentication attempts to template management endpoints
PATCHING STRATEGY:
12. Contact Dromara for security updates or consider migration to patched versions when available
13. Evaluate alternative CMS solutions with active security support if vendor remains unresponsive
الإجراءات الفورية:
1. قم بحصر جميع الأنظمة التي تعمل بـ UJCMS 10.1.2 وعزل الحالات المتأثرة عن الإنتاج إن أمكن
2. تطبيق قواعد جدار حماية تطبيقات الويب (WAF) لحجب الطلبات التي تحتوي على أنماط اجتياز المسار (../, ..\, %2e%2e) الموجهة إلى نقاط نهاية /template أو /delete
3. تقييد الوصول إلى WebFileTemplateController.delete للمسؤولين المصرح لهم فقط عبر قائمة بيضاء IP وفرض المصادقة
4. مراقبة وتسجيل جميع عمليات حذف الملفات في التطبيق
الضوابط التعويضية:
5. تطبيق أذونات نظام الملفات الصارمة—تأكد من أن تطبيق UJCMS يعمل بأقل الامتيازات ولا يمكنه الوصول إلى المجلدات الأب
6. نشر مراقبة سلامة الملفات (FIM) على مجلدات القوالب للكشف عن الحذف غير المصرح به
7. الحفاظ على النسخ الاحتياطية اليومية الآلية لمجلدات القوالب مع سياسات الاحتفاظ غير القابلة للتغيير
8. تعطيل وظيفة deleteDirectory إذا لم تكن مطلوبة تشغيلياً
قواعد الكشف:
9. مراقبة طلبات HTTP بالأنماط: POST/GET إلى */delete* تحتوي على تسلسلات اجتياز مسار مشفرة أو حرفية
10. تنبيه على حذف الملفات غير المتوقعة في مجلدات القوالب خارج نوافذ الصيانة العادية
11. تتبع محاولات المصادقة الفاشلة لنقاط نهاية إدارة القوالب
استراتيجية التصحيح:
12. اتصل بـ Dromara للحصول على تحديثات الأمان أو فكر في الترقية إلى إصدارات مصححة عند توفرها
13. قيّم حلول CMS البديلة مع دعم أمان نشط إذا ظل البائع غير مستجيب