The All-in-One Video Gallery plugin for WordPress is vulnerable to arbitrary file upload in all versions up to, and including, 4.5.7. This is due to insufficient file type validation detecting VTT files, allowing double extension files to bypass sanitization while being accepted as a valid VTT file. This makes it possible for authenticated attackers, with author-level access and above, to upload arbitrary files on the affected site's server which may make remote code execution possible.
The All-in-One Video Gallery WordPress plugin (versions ≤4.5.7) contains a critical arbitrary file upload vulnerability allowing authenticated users with author-level privileges to bypass file type validation through double extension techniques. Attackers can upload malicious files (e.g., .php.vtt) that execute as code on the server, potentially leading to complete site compromise and lateral movement within organizational networks. This vulnerability poses significant risk to Saudi organizations using WordPress for content management, particularly those with multiple content contributors.
IMMEDIATE ACTIONS:
1. Update All-in-One Video Gallery plugin to version 4.5.8 or later immediately
2. Audit all uploaded files in the past 90 days, particularly those with double extensions (.php.vtt, .exe.vtt, .jsp.vtt, etc.)
3. Review web server access logs for suspicious file uploads and execution patterns
4. Restrict author-level permissions to trusted users only; implement principle of least privilege
5. Disable file uploads temporarily if patch cannot be applied immediately
PATCHING GUIDANCE:
- Deploy patch via WordPress admin dashboard or manually update plugin files
- Test in staging environment before production deployment
- Verify file upload validation is functioning correctly post-patch
COMPENSATING CONTROLS (if immediate patching impossible):
- Implement Web Application Firewall (WAF) rules blocking .php.vtt, .exe.vtt, .jsp.vtt uploads
- Configure web server to prevent execution of scripts in upload directories (disable PHP execution in /wp-content/uploads/)
- Implement file type validation at web server level using MIME type checking
- Monitor upload directory for suspicious files using SIEM/file integrity monitoring
DETECTION RULES:
- Alert on file uploads with double extensions matching executable patterns
- Monitor for POST requests to /wp-admin/upload.php with suspicious file parameters
- Track failed file type validations in WordPress debug logs
- Flag any .vtt files larger than 5MB or containing binary content
الإجراءات الفورية:
1. تحديث مكون All-in-One Video Gallery إلى الإصدار 4.5.8 أو أحدث فوراً
2. تدقيق جميع الملفات المرفوعة في آخر 90 يوماً، خاصة تلك التي تحتوي على امتدادات مزدوجة
3. مراجعة سجلات الوصول إلى خادم الويب للأنماط المريبة في التحميل والتنفيذ
4. تقييد صلاحيات مستوى المؤلف للمستخدمين الموثوقين فقط
5. تعطيل تحميل الملفات مؤقتاً إذا تعذر تطبيق التصحيح فوراً
إرشادات التصحيح:
- نشر التصحيح عبر لوحة تحكم WordPress أو تحديث ملفات المكون يدوياً
- الاختبار في بيئة التطوير قبل النشر في الإنتاج
- التحقق من أن التحقق من تحميل الملفات يعمل بشكل صحيح بعد التصحيح
الضوابط البديلة:
- تطبيق قواعد جدار الحماية لحجب تحميلات الملفات ذات الامتدادات المزدوجة
- تكوين خادم الويب لمنع تنفيذ البرامج النصية في مجلدات التحميل
- تطبيق التحقق من نوع الملف على مستوى خادم الويب
- مراقبة مجلد التحميل للملفات المريبة باستخدام أدوات المراقبة
قواعد الكشف:
- تنبيهات عند تحميل ملفات بامتدادات مزدوجة
- مراقبة طلبات POST المريبة إلى صفحات التحميل
- تتبع فشل التحقق من نوع الملف في سجلات WordPress
- وضع علامة على ملفات .vtt الكبيرة أو التي تحتوي على محتوى ثنائي