SonicWall Email Security Unrestricted Upload of File Vulnerability — SonicWall Email Security contains an unrestricted upload of file with dangerous type vulnerability that allows a post-authenticated attacker to upload a file to the remote host. This vulnerability has known usage in a SonicWall Email Security exploit chain along with CVE-2021-20021 and CVE-2021-20023 to achieve privilege escalation.
CVE-2021-20022 is a critical post-authenticated file upload vulnerability in SonicWall Email Security (CVSS 9.0) that allows attackers to upload dangerous file types to the remote host. This vulnerability is actively exploited in conjunction with CVE-2021-20021 and CVE-2021-20023 to achieve privilege escalation. Given the widespread deployment of SonicWall Email Security in Saudi organizations and the availability of working exploits, immediate patching is essential to prevent unauthorized system compromise.
IMMEDIATE ACTIONS:
1. Identify all SonicWall Email Security instances in your environment and document versions
2. Restrict access to SonicWall Email Security administrative interfaces to trusted IP ranges only
3. Implement strict file upload validation at the application level
4. Monitor email gateway logs for suspicious file upload activities
PATCHING GUIDANCE:
1. Apply the latest SonicWall Email Security security patches immediately (consult SonicWall security advisories for specific version patches)
2. Test patches in a non-production environment before deployment
3. Prioritize patching for systems exposed to untrusted networks
COMPENSATING CONTROLS (if patching delayed):
1. Implement Web Application Firewall (WAF) rules to block file upload endpoints
2. Disable file upload functionality if not operationally required
3. Implement strict file type validation and sandboxing for uploaded files
4. Deploy intrusion detection signatures for CVE-2021-20022 exploitation attempts
DETECTION RULES:
1. Monitor for HTTP POST requests to file upload endpoints with suspicious file extensions (.jsp, .aspx, .php, .exe, .sh)
2. Alert on multiple failed authentication attempts followed by successful uploads
3. Track file uploads with MIME type mismatches
4. Monitor for process execution from email gateway upload directories
الإجراءات الفورية:
1. حدد جميع مثيلات SonicWall Email Security في بيئتك وتوثيق الإصدارات
2. قيد الوصول إلى واجهات إدارة SonicWall Email Security على نطاقات IP موثوقة فقط
3. تطبيق التحقق الصارم من تحميل الملفات على مستوى التطبيق
4. مراقبة سجلات بوابة البريد الإلكتروني للأنشطة المريبة في تحميل الملفات
إرشادات التصحيح:
1. تطبيق أحدث تصحيحات أمان SonicWall Email Security على الفور (استشر إشعارات أمان SonicWall للحصول على تصحيحات إصدار محددة)
2. اختبر التصحيحات في بيئة غير إنتاجية قبل النشر
3. أولويات التصحيح للأنظمة المكشوفة للشبكات غير الموثوقة
الضوابط البديلة (إذا تأخر التصحيح):
1. تطبيق قواعد جدار حماية تطبيقات الويب (WAF) لحظر نقاط نهاية تحميل الملفات
2. تعطيل وظيفة تحميل الملفات إذا لم تكن مطلوبة تشغيلياً
3. تطبيق التحقق الصارم من نوع الملف والعزل الرملي للملفات المحملة
4. نشر توقيعات كشف التطفل لمحاولات استغلال CVE-2021-20022
قواعد الكشف:
1. مراقبة طلبات HTTP POST إلى نقاط نهاية تحميل الملفات بامتدادات ملفات مريبة (.jsp, .aspx, .php, .exe, .sh)
2. تنبيه على محاولات مصادقة متعددة فاشلة متبوعة بتحميلات ناجحة
3. تتبع تحميلات الملفات مع عدم تطابق نوع MIME
4. مراقبة تنفيذ العملية من أدلة تحميل بوابة البريد الإلكتروني