XenForo before 2.3.10 and before 2.2.19 is vulnerable to stored cross-site scripting (XSS) in structured text mentions, primarily affecting legacy profile post content. An attacker can inject malicious scripts through crafted mentions that are stored and executed when other users view the content.
XenForo versions before 2.3.10 and 2.2.19 contain a stored XSS vulnerability in structured text mentions affecting legacy profile posts. Attackers can inject malicious scripts through crafted mentions that execute when other users view the content. With exploit availability and widespread XenForo deployment in Saudi community forums and corporate platforms, this poses a moderate-to-high risk for credential theft and malware distribution.
IMMEDIATE ACTIONS:
1. Identify all XenForo installations in your environment and document versions (check Admin CP > System Information)
2. Disable or restrict access to legacy profile posts containing user-generated mentions until patching
3. Review access logs for suspicious mention patterns or XSS payloads in profile posts
4. Notify users to avoid clicking links in profile posts from untrusted sources
PATCHING GUIDANCE:
1. Upgrade to XenForo 2.3.10 or 2.2.19 immediately when patches become available
2. If running versions 2.3.x, upgrade to 2.3.10+
3. If running versions 2.2.x, upgrade to 2.2.19+
4. If running versions 2.1.x or earlier, plan migration to supported versions
COMPENSATING CONTROLS (until patch available):
1. Implement Content Security Policy (CSP) headers: Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none'
2. Enable XenForo's built-in HTML sanitization for all user content
3. Disable or remove legacy profile post functionality if not critical
4. Implement Web Application Firewall (WAF) rules to detect XSS patterns in mention syntax
5. Monitor for JavaScript execution in profile post contexts
DETECTION RULES:
1. Monitor for POST requests to profile post endpoints with special characters: [, @, <, >, script, onerror, onload
2. Alert on profile post content containing: <script>, javascript:, onerror=, onload=, onclick=
3. Track user sessions accessing profile posts followed by suspicious JavaScript execution
4. Log all modifications to legacy profile posts for audit review
الإجراءات الفورية:
1. حدد جميع تثبيتات XenForo في بيئتك وقثق الإصدارات (تحقق من لوحة التحكم > معلومات النظام)
2. عطّل أو قيّد الوصول إلى منشورات الملف الشخصي القديمة التي تحتوي على إشارات من المستخدمين حتى التصحيح
3. راجع سجلات الوصول للبحث عن أنماط إشارات مريبة أو حمولات XSS في منشورات الملف الشخصي
4. أخطر المستخدمين بتجنب النقر على الروابط في منشورات الملف الشخصي من مصادر غير موثوقة
إرشادات التصحيح:
1. قم بالترقية إلى XenForo 2.3.10 أو 2.2.19 فوراً عند توفر التصحيحات
2. إذا كنت تقوم بتشغيل إصدارات 2.3.x، قم بالترقية إلى 2.3.10+
3. إذا كنت تقوم بتشغيل إصدارات 2.2.x، قم بالترقية إلى 2.2.19+
4. إذا كنت تقوم بتشغيل إصدارات 2.1.x أو أقدم، خطط للهجرة إلى الإصدارات المدعومة
الضوابط التعويضية (حتى توفر التصحيح):
1. تطبيق رؤوس سياسة أمان المحتوى (CSP): Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none'
2. تفعيل تنظيف HTML المدمج في XenForo لجميع محتوى المستخدم
3. تعطيل أو إزالة وظيفة منشورات الملف الشخصي القديمة إذا لم تكن حرجة
4. تطبيق قواعد جدار حماية تطبيقات الويب (WAF) للكشف عن أنماط XSS في بناء الجملة الإشارة
5. مراقبة تنفيذ JavaScript في سياقات منشورات الملف الشخصي
قواعد الكشف:
1. مراقبة طلبات POST إلى نقاط نهاية منشورات الملف الشخصي بأحرف خاصة: [، @، <، >، script، onerror، onload
2. تنبيه على محتوى منشور الملف الشخصي يحتوي على: <script>، javascript:، onerror=، onload=، onclick=
3. تتبع جلسات المستخدم التي تصل إلى منشورات الملف الشخصي متبوعة بتنفيذ JavaScript مريب
4. تسجيل جميع التعديلات على منشورات الملف الشخصي القديمة لمراجعة التدقيق