Endian Firewall version 3.3.25 and prior allow stored cross-site scripting (XSS) via the ADDRESS BCC parameter to /cgi-bin/smtprouting.cgi. An authenticated attacker can inject arbitrary JavaScript that is stored and executed when other users view the affected page.
Endian Firewall versions 3.3.25 and earlier contain a stored XSS vulnerability in the SMTP routing configuration interface that allows authenticated attackers to inject malicious JavaScript through the ADDRESS BCC parameter. The vulnerability affects administrative interfaces where multiple users may access the same configuration pages, enabling session hijacking and credential theft. While currently unpatched, the requirement for authentication limits immediate external exploitation risk.
IMMEDIATE ACTIONS:
1. Restrict access to /cgi-bin/smtprouting.cgi to trusted administrative networks only using firewall rules
2. Implement IP whitelisting for administrative access to Endian Firewall management interfaces
3. Enforce strong authentication (MFA if supported) for all administrative accounts
4. Review SMTP routing configuration logs for suspicious modifications
5. Audit all users with access to SMTP routing settings
COMPENSATING CONTROLS:
6. Deploy Web Application Firewall (WAF) rules to detect and block XSS payloads in ADDRESS BCC parameter
7. Implement Content Security Policy (CSP) headers if Endian supports custom headers
8. Monitor for JavaScript execution in administrative sessions using endpoint detection tools
9. Disable unnecessary administrative accounts and enforce principle of least privilege
10. Implement session timeout policies (15-30 minutes for administrative sessions)
DETECTION RULES:
- Monitor POST requests to /cgi-bin/smtprouting.cgi containing script tags, event handlers (onclick, onerror), or encoded JavaScript
- Alert on ADDRESS BCC parameter values exceeding normal length (>255 characters)
- Track administrative session anomalies and concurrent logins from different IPs
- Log all modifications to SMTP routing configurations with administrator identity
PATCHING:
- Contact Endian support for security updates; upgrade to version >3.3.25 when available
- Maintain offline backups of SMTP routing configurations before applying patches
الإجراءات الفورية:
1. تقييد الوصول إلى /cgi-bin/smtprouting.cgi على الشبكات الإدارية الموثوقة فقط باستخدام قواعد جدار الحماية
2. تطبيق قائمة بيضاء للعناوين IP للوصول الإداري إلى واجهات إدارة Endian Firewall
3. فرض المصادقة القوية (MFA إن أمكن) لجميع الحسابات الإدارية
4. مراجعة سجلات تكوين توجيه SMTP للتعديلات المريبة
5. تدقيق جميع المستخدمين الذين لديهم وصول إلى إعدادات توجيه SMTP
الضوابط البديلة:
6. نشر قواعد جدار تطبيقات الويب (WAF) للكشف عن حمولات XSS وحجبها في معامل ADDRESS BCC
7. تطبيق رؤوس سياسة أمان المحتوى (CSP) إذا كان Endian يدعم رؤوس مخصصة
8. مراقبة تنفيذ JavaScript في الجلسات الإدارية باستخدام أدوات الكشف عن نقاط النهاية
9. تعطيل الحسابات الإدارية غير الضرورية وفرض مبدأ الامتياز الأدنى
10. تطبيق سياسات انتهاء الجلسة (15-30 دقيقة للجلسات الإدارية)
قواعد الكشف:
- مراقبة طلبات POST إلى /cgi-bin/smtprouting.cgi التي تحتوي على علامات البرامج النصية أو معالجات الأحداث أو JavaScript المشفر
- تنبيه على قيم معامل ADDRESS BCC التي تتجاوز الطول الطبيعي (>255 حرف)
- تتبع شذوذ الجلسة الإدارية وتسجيلات الدخول المتزامنة من عناوين IP مختلفة
- تسجيل جميع التعديلات على تكوينات توجيه SMTP مع هوية المسؤول
التصحيح:
- الاتصال بدعم Endian للحصول على تحديثات الأمان؛ الترقية إلى الإصدار >3.3.25 عند توفره
- الاحتفاظ بنسخ احتياطية غير متصلة من تكوينات توجيه SMTP قبل تطبيق التصحيحات