The AM LottiePlayer plugin for WordPress is vulnerable to Stored Cross-Site Scripting via uploaded SVG files in all versions up to, and including, 3.6.0 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
The AM LottiePlayer WordPress plugin versions up to 3.6.0 contains a Stored Cross-Site Scripting (XSS) vulnerability through SVG file uploads. Authenticated users with Author-level permissions can inject malicious scripts that execute for all site visitors. While currently unpatched, the attack requires legitimate user access, limiting immediate risk but posing significant threat to WordPress sites with multiple content creators.
Immediate Actions:
1. Audit all SVG files uploaded via AM LottiePlayer plugin for suspicious content
2. Review user access logs for Author-level accounts and identify suspicious uploads
3. Disable the AM LottiePlayer plugin immediately if not critical to operations
Patching Guidance:
1. Contact plugin developer for security update timeline
2. Monitor plugin repository for version 3.6.1+ release
3. Implement file upload restrictions at WordPress level
Compensating Controls (until patch available):
1. Restrict SVG upload capability to Administrator-level users only
2. Implement Web Application Firewall (WAF) rules to detect/block SVG uploads containing script tags
3. Use WordPress security plugins (Wordfence, Sucuri) to monitor file uploads
4. Enable Content Security Policy (CSP) headers to restrict inline script execution
5. Implement file type validation at server level (whitelist only safe SVG attributes)
Detection Rules:
1. Monitor wp-content/uploads/ for SVG files containing <script>, onclick, onerror, onload attributes
2. Alert on any SVG uploads by non-Administrator accounts
3. Log all modifications to posts/pages containing Lottie animations
4. Monitor for JavaScript execution from SVG sources in browser console logs
الإجراءات الفورية:
1. تدقيق جميع ملفات SVG المرفوعة عبر مكون AM LottiePlayer بحثاً عن محتوى مريب
2. مراجعة سجلات وصول المستخدمين لحسابات مستوى المؤلف وتحديد التحميلات المريبة
3. تعطيل مكون AM LottiePlayer فوراً إذا لم يكن حرجاً للعمليات
إرشادات التصحيح:
1. التواصل مع مطور المكون بشأن جدول زمني لتحديث الأمان
2. مراقبة مستودع المكون للإصدار 3.6.1+ أو أحدث
3. تطبيق قيود تحميل الملفات على مستوى ووردبريس
الضوابط البديلة (حتى توفر التصحيح):
1. تقييد إمكانية تحميل SVG لمستخدمي مستوى المسؤول فقط
2. تطبيق قواعد جدار الحماية (WAF) للكشف عن وحجب تحميلات SVG التي تحتوي على علامات نصية
3. استخدام مكونات أمان ووردبريس (Wordfence, Sucuri) لمراقبة تحميلات الملفات
4. تفعيل رؤوس سياسة أمان المحتوى (CSP) لتقييد تنفيذ النصوص البرمجية المضمنة
5. تطبيق التحقق من نوع الملف على مستوى الخادم (قائمة بيضاء لسمات SVG الآمنة فقط)
قواعد الكشف:
1. مراقبة wp-content/uploads/ بحثاً عن ملفات SVG تحتوي على <script>، onclick، onerror، onload
2. تنبيه عند أي تحميلات SVG بواسطة حسابات غير المسؤول
3. تسجيل جميع التعديلات على المنشورات/الصفحات التي تحتوي على رسوم متحركة Lottie
4. مراقبة تنفيذ JavaScript من مصادر SVG في سجلات وحدة التحكم بالمتصفح