MyBB Recent threads 17.0 contains a persistent cross-site scripting vulnerability that allows attackers to inject malicious scripts by creating threads with crafted subject lines. Attackers can create threads with script tags in the subject parameter to execute arbitrary JavaScript in the browsers of all users viewing the index page.
MyBB Recent Threads 17.0 contains a persistent XSS vulnerability (CVE-2018-25309) allowing attackers to inject malicious scripts via crafted thread subject lines. The vulnerability affects all users viewing the index page and has publicly available exploits. This poses significant risk to organizations using MyBB for community forums, particularly those in Saudi Arabia managing internal or customer-facing discussion platforms.
Immediate Actions:
1. Disable the Recent Threads plugin immediately if not critical to operations
2. Restrict forum access to authenticated users only to limit exposure
3. Implement Web Application Firewall (WAF) rules to block script tags in POST requests to thread creation endpoints
4. Review forum logs for suspicious thread creation activity with script tags in subject lines
Patching Guidance:
1. No official patch available for version 17.0 - upgrade to MyBB 1.8.x or later if available
2. If upgrade not feasible, apply input validation: sanitize all thread subject inputs using htmlspecialchars() or equivalent
3. Implement output encoding on index page display using Content Security Policy (CSP) headers
Compensating Controls:
1. Deploy WAF rules: Block requests containing <script>, javascript:, onerror=, onload= in subject parameter
2. Enable HTML filtering in MyBB admin panel to strip HTML/script tags from user input
3. Implement strict CSP headers: Content-Security-Policy: default-src 'self'; script-src 'self'
4. Enable forum moderation queue for all new threads pending admin review
Detection Rules:
1. Monitor for POST requests to thread creation endpoints containing script tags or event handlers
2. Alert on database queries inserting <script> or javascript: into thread subject fields
3. Log and review all thread subjects containing HTML special characters or encoded script patterns
الإجراءات الفورية:
1. تعطيل مكون Recent Threads فوراً إذا لم يكن حرجاً للعمليات
2. تقييد وصول المنتدى للمستخدمين المصرح لهم فقط لتقليل التعرض
3. تطبيق قواعد جدار الحماية لتطبيقات الويب (WAF) لحظر علامات البرامج النصية في طلبات POST لنقاط نهاية إنشاء الموضوعات
4. مراجعة سجلات المنتدى للنشاط المريب في إنشاء الموضوعات التي تحتوي على علامات برامج نصية
إرشادات التصحيح:
1. لا يوجد تصحيح رسمي متاح للإصدار 17.0 - قم بالترقية إلى MyBB 1.8.x أو إصدار أحدث إن أمكن
2. إذا لم يكن الترقية ممكنة، طبق التحقق من الإدخال: تطهير جميع مدخلات موضوع الخيط باستخدام htmlspecialchars() أو ما يعادله
3. تطبيق ترميز الإخراج على عرض صفحة الفهرس باستخدام رؤوس سياسة أمان المحتوى (CSP)
الضوابط التعويضية:
1. نشر قواعد WAF: حظر الطلبات التي تحتوي على <script>، javascript:، onerror=، onload= في معامل الموضوع
2. تفعيل تصفية HTML في لوحة إدارة MyBB لإزالة علامات HTML/البرامج النصية من مدخلات المستخدم
3. تطبيق رؤوس CSP صارمة: Content-Security-Policy: default-src 'self'; script-src 'self'
4. تفعيل قائمة انتظار الاعتدال للمنتدى لجميع الموضوعات الجديدة في انتظار مراجعة المسؤول
قواعد الكشف:
1. مراقبة طلبات POST لنقاط نهاية إنشاء الموضوعات التي تحتوي على علامات برامج نصية أو معالجات أحداث
2. التنبيه على استعلامات قاعدة البيانات التي تدرج <script> أو javascript: في حقول موضوع الخيط
3. تسجيل ومراجعة جميع موضوعات الخيط التي تحتوي على أحرف خاصة HTML أو أنماط برامج نصية مشفرة