Wing FTP Server 6.3.8 contains a remote code execution vulnerability in its Lua-based web console that allows authenticated users to execute system commands. Attackers can leverage the console to send POST requests with malicious commands that trigger operating system execution through the os.execute() function.
Wing FTP Server 6.3.8 contains a critical remote code execution vulnerability in its Lua-based web console that allows authenticated users to execute arbitrary system commands. The vulnerability exploits unsafe use of the os.execute() function, enabling attackers to gain complete system control. With public exploits available and widespread FTP server deployments across Saudi organizations, immediate patching is essential to prevent unauthorized access and data exfiltration.
IMMEDIATE ACTIONS:
1. Identify all Wing FTP Server 6.3.8 instances in your environment using network scanning tools and asset management systems
2. Restrict access to the Lua web console to trusted IP addresses only via firewall rules
3. Disable the web console if not actively required for operations
4. Review FTP server access logs for suspicious POST requests to the console endpoint
5. Monitor for os.execute() function calls in Lua scripts
PATCHING GUIDANCE:
1. Upgrade Wing FTP Server to version 6.3.9 or later immediately
2. Test patches in non-production environments first
3. Schedule maintenance windows for production server updates
4. Verify functionality post-patch before returning to full operation
COMPENSATING CONTROLS (if immediate patching not possible):
1. Implement network segmentation to isolate FTP servers
2. Enforce strong authentication (disable default credentials, enforce complex passwords)
3. Deploy Web Application Firewall (WAF) rules to block suspicious POST requests to console endpoints
4. Implement rate limiting on authentication attempts
5. Enable detailed logging and alerting for console access
DETECTION RULES:
1. Monitor for POST requests to /console or similar endpoints with suspicious parameters
2. Alert on os.execute() function calls in Lua console logs
3. Track failed and successful authentication attempts to FTP console
4. Monitor for unusual process execution spawned by FTP server process
5. Implement YARA rules to detect malicious Lua payloads in POST requests
الإجراءات الفورية:
1. تحديد جميع نسخ Wing FTP Server 6.3.8 في بيئتك باستخدام أدوات المسح الشبكي وأنظمة إدارة الأصول
2. تقييد الوصول إلى وحدة التحكم Lua للعناوين الموثوقة فقط عبر قواعد جدار الحماية
3. تعطيل وحدة التحكم إذا لم تكن مطلوبة بنشاط للعمليات
4. مراجعة سجلات الوصول لخادم FTP للطلبات المريبة
5. مراقبة استدعاءات دالة os.execute() في نصوص Lua
إرشادات التصحيح:
1. ترقية Wing FTP Server إلى الإصدار 6.3.9 أو أحدث فوراً
2. اختبار التصحيحات في بيئات غير الإنتاج أولاً
3. جدولة نوافذ الصيانة لتحديثات خادم الإنتاج
4. التحقق من الوظائف بعد التصحيح قبل العودة للعملية الكاملة
الضوابط البديلة (إذا لم يكن التصحيح الفوري ممكناً):
1. تنفيذ تقسيم الشبكة لعزل خوادم FTP
2. فرض المصادقة القوية (تعطيل بيانات الاعتماد الافتراضية، فرض كلمات مرور معقدة)
3. نشر قواعد جدار تطبيقات الويب لحظر طلبات POST المريبة
4. تنفيذ تحديد معدل محاولات المصادقة
5. تفعيل السجلات التفصيلية والتنبيهات لوصول وحدة التحكم
قواعد الكشف:
1. مراقبة طلبات POST إلى نقاط نهاية وحدة التحكم بمعاملات مريبة
2. التنبيه على استدعاءات دالة os.execute() في سجلات وحدة التحكم
3. تتبع محاولات المصادقة الفاشلة والناجحة لوحدة تحكم FTP
4. مراقبة تنفيذ العمليات غير العادية التي يرعاها عملية خادم FTP
5. تنفيذ قواعد YARA للكشف عن حمولات Lua الضارة