A vulnerability was found in D-Link DCS-935L up to 1.10.01. The impacted element is the function SetDeviceSettings of the file /web/cgi-bin/hnap/hnap_service of the component HNAP Service. The manipulation of the argument AdminPassword results in buffer overflow. The attack can be executed remotely. The exploit has been made public and could be used.
A critical remote buffer overflow vulnerability exists in D-Link DCS-935L IP cameras (firmware up to 1.10.01) affecting the HNAP service SetDeviceSettings function. The vulnerability allows unauthenticated remote attackers to execute arbitrary code by manipulating the AdminPassword parameter. With public exploits available and no patch currently available, this poses an immediate threat to organizations using these devices for surveillance and security monitoring.
IMMEDIATE ACTIONS:
1. Identify all D-Link DCS-935L devices in your network using asset discovery tools
2. Isolate affected cameras from critical networks or disable HNAP service if possible
3. Implement network segmentation to restrict access to camera management interfaces
4. Change all default credentials and AdminPassword values immediately
5. Monitor for suspicious HNAP service requests and SetDeviceSettings calls
COMPENSATING CONTROLS:
1. Deploy WAF/IPS rules to block malicious SetDeviceSettings requests with oversized AdminPassword parameters
2. Restrict HNAP service access (port 80/443) to authorized management networks only
3. Implement strict firewall rules limiting camera access to specific subnets
4. Enable detailed logging of all HNAP service activities
5. Deploy network-based intrusion detection signatures for buffer overflow attempts
DETECTION RULES:
1. Monitor for HTTP POST requests to /web/cgi-bin/hnap/hnap_service with AdminPassword parameter exceeding 256 bytes
2. Alert on SetDeviceSettings function calls from unexpected source IPs
3. Track failed authentication attempts followed by HNAP service calls
4. Monitor for process execution or shell spawning from camera processes
PATCHING:
1. Contact D-Link support for firmware updates beyond 1.10.01
2. Evaluate replacement with patched camera models if updates unavailable
3. Consider temporary decommissioning of affected devices until patches available
الإجراءات الفورية:
1. تحديد جميع أجهزة D-Link DCS-935L في شبكتك باستخدام أدوات اكتشاف الأصول
2. عزل الكاميرات المتأثرة عن الشبكات الحرجة أو تعطيل خدمة HNAP إن أمكن
3. تطبيق تقسيم الشبكة لتقييد الوصول إلى واجهات إدارة الكاميرا
4. تغيير جميع بيانات الاعتماد الافتراضية وقيم AdminPassword فوراً
5. مراقبة طلبات خدمة HNAP المريبة واستدعاءات SetDeviceSettings
الضوابط التعويضية:
1. نشر قواعد WAF/IPS لحجب طلبات SetDeviceSettings الضارة ذات معاملات AdminPassword الكبيرة
2. تقييد وصول خدمة HNAP (المنفذ 80/443) إلى شبكات الإدارة المصرح بها فقط
3. تطبيق قواعد جدار الحماية الصارمة لتقييد وصول الكاميرا إلى شبكات فرعية محددة
4. تفعيل تسجيل مفصل لجميع أنشطة خدمة HNAP
5. نشر توقيعات كشف الاختراق القائمة على الشبكة لمحاولات تجاوز السعة
قواعد الكشف:
1. مراقبة طلبات HTTP POST إلى /web/cgi-bin/hnap/hnap_service مع معامل AdminPassword يتجاوز 256 بايت
2. تنبيه استدعاءات SetDeviceSettings من عناوين IP غير متوقعة
3. تتبع محاولات المصادقة الفاشلة متبوعة باستدعاءات خدمة HNAP
4. مراقبة تنفيذ العمليات أو توليد shell من عمليات الكاميرا
التصحيح:
1. الاتصال بدعم D-Link للحصول على تحديثات البرامج الثابتة بعد 1.10.01
2. تقييم الاستبدال بنماذج كاميرا مصححة إذا لم تتوفر التحديثات
3. النظر في إيقاف مؤقت للأجهزة المتأثرة حتى توفر التصحيحات