A vulnerability was detected in D-Link DWR-M920 up to 1.1.50. The affected element is the function sub_41CF20 of the file /boafrm/formUSSDSetup. The manipulation of the argument ussdValue results in command injection. It is possible to launch the attack remotely. The exploit is now public and may be used.
A command injection vulnerability exists in D-Link DWR-M920 routers (up to firmware 1.1.50) affecting the USSD setup function. The vulnerability allows remote attackers to execute arbitrary commands with medium severity (CVSS 6.3). While no public exploit is currently available, the vulnerability details are public, increasing the risk of exploitation.
Immediate Actions:
1. Identify all D-Link DWR-M920 devices in your network using network scanning tools
2. Restrict access to the /boafrm/formUSSDSetup endpoint using firewall rules
3. Disable remote management features if not required
4. Implement network segmentation to isolate affected devices
Patching Guidance:
1. Contact D-Link support for firmware updates beyond version 1.1.50
2. Monitor D-Link security advisories for patch availability
3. Establish a firmware update schedule once patches are released
Compensating Controls:
1. Implement Web Application Firewall (WAF) rules to block malicious USSD parameter values
2. Deploy intrusion detection/prevention systems (IDS/IPS) to monitor for command injection patterns
3. Restrict administrative access to router management interfaces to trusted IP ranges only
4. Enable logging and monitoring of all /boafrm/formUSSDSetup requests
5. Implement rate limiting on the vulnerable endpoint
Detection Rules:
1. Monitor for HTTP POST requests to /boafrm/formUSSDSetup with special characters (|, ;, &, $, `, etc.) in ussdValue parameter
2. Alert on any successful command execution attempts following USSD setup requests
3. Track firmware versions of D-Link DWR-M920 devices and flag those below 1.1.50
الإجراءات الفورية:
1. تحديد جميع أجهزة D-Link DWR-M920 في شبكتك باستخدام أدوات المسح
2. تقييد الوصول إلى نقطة نهاية /boafrm/formUSSDSetup باستخدام قواعد جدار الحماية
3. تعطيل ميزات الإدارة البعيدة إذا لم تكن مطلوبة
4. تنفيذ تقسيم الشبكة لعزل الأجهزة المتأثرة
إرشادات التصحيح:
1. الاتصال بدعم D-Link للحصول على تحديثات البرامج الثابتة بعد الإصدار 1.1.50
2. مراقبة تنبيهات أمان D-Link لتوفر التصحيحات
3. إنشاء جدول زمني لتحديث البرامج الثابتة عند توفر التصحيحات
الضوابط البديلة:
1. تنفيذ قواعد جدار تطبيقات الويب (WAF) لحجب قيم معاملات USSD الضارة
2. نشر أنظمة كشف/منع الاختراق (IDS/IPS) لمراقبة أنماط حقن الأوامر
3. تقييد الوصول الإداري إلى واجهات إدارة الموجهات على نطاقات IP موثوقة فقط
4. تفعيل تسجيل ومراقبة جميع طلبات /boafrm/formUSSDSetup
5. تنفيذ تحديد معدل على نقطة النهاية الضعيفة
قواعد الكشف:
1. مراقبة طلبات HTTP POST إلى /boafrm/formUSSDSetup بأحرف خاصة (|، ;، &، $، `، إلخ) في معامل ussdValue
2. التنبيه على أي محاولات تنفيذ أوامر ناجحة بعد طلبات إعداد USSD
3. تتبع إصدارات البرامج الثابتة لأجهزة D-Link DWR-M920 والإشارة إلى تلك التي تقل عن 1.1.50