WSO2 Multiple Products Unrestrictive Upload of File Vulnerability — Multiple WSO2 products allow for unrestricted file upload, resulting in remote code execution.
WSO2 products widely deployed across Saudi organizations contain a critical unrestricted file upload vulnerability (CVSS 9.0) enabling remote code execution. This affects multiple WSO2 solutions including API Manager, Identity Server, and Enterprise Integrator commonly used in Saudi banking, government, and telecom sectors. Immediate patching is required as active exploits are available and the vulnerability allows unauthenticated attackers to execute arbitrary code.
IMMEDIATE ACTIONS:
1. Identify all WSO2 product instances in your environment (API Manager, Identity Server, Enterprise Integrator, API Microgateway, Stream Processor)
2. Check version numbers against WSO2 security advisory for affected versions
3. Isolate affected systems from production networks if patching cannot be completed within 24 hours
4. Review access logs for suspicious file uploads to /repository/deployment/server/webapps/ and similar directories
PATCHING:
1. Apply WSO2 security patches immediately from official WSO2 portal
2. For API Manager: Update to 3.2.0, 4.0.0, or later
3. For Identity Server: Update to 5.10.0, 5.11.0, or later
4. For Enterprise Integrator: Update to 6.6.0 or later
5. Test patches in staging environment before production deployment
COMPENSATING CONTROLS (if immediate patching not possible):
1. Implement strict file upload validation at WAF/reverse proxy level - whitelist only required file types
2. Disable file upload functionality if not required
3. Implement network segmentation to restrict access to WSO2 admin interfaces
4. Enable authentication and authorization checks for all upload endpoints
5. Monitor for suspicious file uploads and execution attempts
DETECTION:
1. Monitor for POST/PUT requests to file upload endpoints with executable file extensions (.jsp, .war, .jar, .sh, .exe)
2. Alert on files uploaded to /repository/deployment/server/webapps/ directories
3. Monitor process execution from WSO2 application directories
4. Check for unexpected JAR/WAR files in deployment directories
5. Monitor for outbound connections from WSO2 processes to external IPs
الإجراءات الفورية:
1. تحديد جميع مثيلات منتجات WSO2 في بيئتك (API Manager و Identity Server و Enterprise Integrator و API Microgateway و Stream Processor)
2. التحقق من أرقام الإصدارات مقابل تنبيه أمان WSO2 للإصدارات المتأثرة
3. عزل الأنظمة المتأثرة عن شبكات الإنتاج إذا لم يتمكن التصحيح خلال 24 ساعة
4. مراجعة سجلات الوصول للتحميلات المريبة إلى /repository/deployment/server/webapps/ والمجلدات المماثلة
التصحيح:
1. تطبيق تصحيحات أمان WSO2 فوراً من بوابة WSO2 الرسمية
2. لـ API Manager: التحديث إلى 3.2.0 أو 4.0.0 أو أحدث
3. لـ Identity Server: التحديث إلى 5.10.0 أو 5.11.0 أو أحدث
4. لـ Enterprise Integrator: التحديث إلى 6.6.0 أو أحدث
5. اختبار التصحيحات في بيئة التجريب قبل نشرها في الإنتاج
الضوابط البديلة (إذا لم يكن التصحيح الفوري ممكناً):
1. تطبيق التحقق الصارم من تحميل الملفات على مستوى WAF/reverse proxy - قائمة بيضاء فقط لأنواع الملفات المطلوبة
2. تعطيل وظيفة تحميل الملفات إذا لم تكن مطلوبة
3. تطبيق تقسيم الشبكة لتقييد الوصول إلى واجهات إدارة WSO2
4. تفعيل فحوصات المصادقة والتفويض لجميع نقاط نهاية التحميل
5. مراقبة التحميلات والمحاولات المريبة للملفات
الكشف:
1. مراقبة طلبات POST/PUT إلى نقاط نهاية تحميل الملفات بامتدادات ملفات قابلة للتنفيذ (.jsp و .war و .jar و .sh و .exe)
2. تنبيه على الملفات المحملة إلى مجلدات /repository/deployment/server/webapps/
3. مراقبة تنفيذ العمليات من مجلدات تطبيق WSO2
4. التحقق من ملفات JAR/WAR غير المتوقعة في مجلدات النشر
5. مراقبة الاتصالات الصادرة من عمليات WSO2 إلى عناوين IP خارجية