MyBB Like Plugin 3.0.0 contains a cross-site scripting vulnerability that allows attackers to inject malicious scripts by creating posts or threads with unvalidated subject content. Attackers can craft post subjects containing script tags that execute when other users view the attacker's profile, where liked posts are displayed without sanitization.
CVE-2018-25247 is a stored cross-site scripting (XSS) vulnerability in MyBB Like Plugin 3.0.0 that allows attackers to inject malicious scripts through post subjects. When other users view the attacker's profile or liked posts section, the unsanitized content executes in their browsers, potentially compromising user sessions and data. While no patch is available and no public exploit exists, the vulnerability poses a moderate risk to organizations using this plugin.
Immediate Actions:
1. Audit all MyBB installations to identify those running Like Plugin version 3.0.0
2. Disable the Like Plugin immediately if no patch is available
3. Review user activity logs for suspicious post subjects containing script tags or HTML entities
4. Notify users to clear browser cache and reset passwords if XSS exploitation is suspected
Compensating Controls:
1. Implement Web Application Firewall (WAF) rules to block script tags in post subjects
2. Enable Content Security Policy (CSP) headers: Content-Security-Policy: script-src 'self'
3. Apply input validation at the application level to strip or escape HTML/JavaScript in post subjects
4. Implement output encoding for all user-generated content displayed on profiles
5. Use HTML sanitization libraries (e.g., HTML Purifier) for post content rendering
Detection Rules:
1. Monitor for POST requests containing <script>, javascript:, onerror=, onload= in subject parameters
2. Alert on profile page views immediately following suspicious post creation
3. Log and review any modifications to Like Plugin database tables
4. Monitor for unusual JavaScript execution in browser console logs if available
Long-term:
1. Migrate to alternative forum software with active security maintenance
2. If MyBB must be retained, implement a custom patch or hire security consultant to develop one
3. Establish regular security code reviews for all plugins
الإجراءات الفورية:
1. تدقيق جميع تثبيتات MyBB لتحديد تلك التي تعمل بإصدار Like Plugin 3.0.0
2. تعطيل إضافة Like Plugin فوراً إذا لم يكن هناك تصحيح متاح
3. مراجعة سجلات نشاط المستخدم للبحث عن عناوين منشورات مريبة تحتوي على علامات نصية برمجية أو كيانات HTML
4. إخطار المستخدمين بمسح ذاكرة التخزين المؤقت للمتصفح وإعادة تعيين كلمات المرور إذا كان هناك اشتباه في استغلال XSS
الضوابط التعويضية:
1. تنفيذ قواعد جدار حماية تطبيقات الويب (WAF) لحظر علامات النصوص البرمجية في عناوين المنشورات
2. تفعيل رؤوس سياسة أمان المحتوى (CSP): Content-Security-Policy: script-src 'self'
3. تطبيق التحقق من الإدخال على مستوى التطبيق لحذف أو تجنب HTML/JavaScript في عناوين المنشورات
4. تنفيذ ترميز الإخراج لجميع محتويات المستخدم المعروضة على الملفات الشخصية
5. استخدام مكتبات تنظيف HTML (مثل HTML Purifier) لعرض محتوى المنشورات
قواعد الكشف:
1. مراقبة طلبات POST التي تحتوي على <script>، javascript:، onerror=، onload= في معاملات الموضوع
2. التنبيه على عروض صفحات الملف الشخصي مباشرة بعد إنشاء منشور مريب
3. تسجيل ومراجعة أي تعديلات على جداول قاعدة بيانات Like Plugin
4. مراقبة تنفيذ JavaScript غير العادي في سجلات وحدة تحكم المتصفح إن أمكن
المدى الطويل:
1. الهجرة إلى برنامج منتدى بديل مع صيانة أمان نشطة
2. إذا كان يجب الاحتفاظ بـ MyBB، قم بتنفيذ تصحيح مخصص أو توظيف استشاري أمان لتطوير واحد
3. إنشاء مراجعات أمان منتظمة للأكواد لجميع الإضافات