CMS Made Simple 2.2.15 contains a stored cross-site scripting vulnerability that allows authenticated users with Content Manager access to inject malicious scripts through SVG file uploads. Attackers can upload SVG files containing embedded JavaScript to the file manager, which executes when other authenticated users access the uploaded file, enabling cookie theft and session hijacking.
CMS Made Simple 2.2.15 contains a stored XSS vulnerability in SVG file upload functionality that allows authenticated Content Managers to inject malicious scripts. When other authenticated users access uploaded SVG files, embedded JavaScript executes, enabling session hijacking and credential theft. This vulnerability poses a significant insider threat risk, particularly in organizations using CMS Made Simple for content management and collaboration.
Immediate Actions:
1. Audit all SVG files currently uploaded in CMS Made Simple 2.2.15 instances for suspicious content or embedded scripts
2. Review Content Manager account access logs for unauthorized file uploads in the past 90 days
3. Implement file upload restrictions: disable SVG uploads or restrict to trusted administrators only
4. Enforce Content Security Policy (CSP) headers to prevent inline script execution
Patching Guidance:
5. Upgrade to CMS Made Simple version 2.2.16 or later when available (currently no patch released - monitor vendor advisories)
6. If upgrade unavailable, implement input validation to sanitize SVG files before storage
Compensating Controls:
7. Deploy Web Application Firewall (WAF) rules to detect and block SVG files containing script tags
8. Implement strict file type validation on server-side (verify MIME type and file signature)
9. Store uploaded files outside web root or serve with Content-Disposition: attachment header
10. Enable session timeout policies and implement re-authentication for sensitive operations
11. Deploy endpoint detection and response (EDR) to monitor for suspicious session activity
12. Conduct security awareness training for Content Manager users on file upload risks
Detection Rules:
13. Monitor for SVG uploads containing <script>, javascript:, or event handlers (onload, onerror, etc.)
14. Alert on multiple authenticated users accessing same SVG file within short timeframe
15. Track session token usage anomalies post-SVG file access
الإجراءات الفورية:
1. تدقيق جميع ملفات SVG المحملة حاليًا في مثيلات CMS Made Simple 2.2.15 للبحث عن محتوى مريب أو نصوص برمجية مضمنة
2. مراجعة سجلات الوصول لحسابات مدير المحتوى للبحث عن تحميلات ملفات غير مصرح بها في آخر 90 يومًا
3. تنفيذ قيود تحميل الملفات: تعطيل تحميل SVG أو تقييده على المسؤولين الموثوقين فقط
4. فرض رؤوس سياسة أمان المحتوى (CSP) لمنع تنفيذ النصوص البرمجية المضمنة
إرشادات التصحيح:
5. الترقية إلى CMS Made Simple الإصدار 2.2.16 أو أحدث عند توفره (لا يوجد تصحيح حاليًا - راقب إشعارات البائع)
6. إذا لم تكن الترقية متاحة، قم بتنفيذ التحقق من الإدخال لتنظيف ملفات SVG قبل التخزين
الضوابط البديلة:
7. نشر قواعد جدار حماية تطبيقات الويب (WAF) للكشف عن ملفات SVG التي تحتوي على علامات نصية وحظرها
8. تنفيذ التحقق الصارم من نوع الملف على جانب الخادم (التحقق من نوع MIME وتوقيع الملف)
9. تخزين الملفات المحملة خارج جذر الويب أو تقديمها برأس Content-Disposition: attachment
10. تفعيل سياسات انتهاء صلاحية الجلسة وتنفيذ إعادة المصادقة للعمليات الحساسة
11. نشر كشف نقاط النهاية والاستجابة (EDR) لمراقبة نشاط الجلسة المريب
12. إجراء تدريب الوعي الأمني لمستخدمي مدير المحتوى حول مخاطر تحميل الملفات
قواعد الكشف:
13. مراقبة تحميلات SVG التي تحتوي على <script> أو javascript: أو معالجات الأحداث (onload, onerror, إلخ)
14. التنبيه على وصول عدة مستخدمين مصرح لهم إلى نفس ملف SVG في إطار زمني قصير
15. تتبع شذوذ استخدام رمز الجلسة بعد الوصول إلى ملف SVG