A vulnerability was found in D-Link DNS-120, DNR-202L, DNS-315L, DNS-320, DNS-320L, DNS-320LW, DNS-321, DNR-322L, DNS-323, DNS-325, DNS-326, DNS-327L, DNR-326, DNS-340L, DNS-343, DNS-345, DNS-726-4, DNS-1100-4, DNS-1200-05 and DNS-1550-04 up to 20260205. Impacted is the function cgi_addgroup_get_group_quota_minsize of the file /cgi-bin/account_mgr.cgi. The manipulation of the argument Name results in stack-based buffer overflow. The attack may be performed from remote. The exploit has been made public and could be used.
A critical stack-based buffer overflow vulnerability exists in D-Link NAS devices (DNS and DNR series) affecting firmware versions up to 20260205. The vulnerability in the account_mgr.cgi script allows remote attackers to execute arbitrary code by manipulating the 'Name' parameter. With public exploits available and no patch currently released, this poses an immediate threat to organizations using these devices for network storage and backup.
IMMEDIATE ACTIONS:
1. Inventory all D-Link DNS/DNR devices in your environment and document firmware versions
2. Isolate affected devices from internet-facing networks immediately
3. Restrict access to the /cgi-bin/account_mgr.cgi endpoint using firewall rules
4. Monitor for suspicious HTTP requests to account_mgr.cgi with unusual 'Name' parameter values
COMPENSATING CONTROLS (until patch available):
1. Implement network segmentation - place NAS devices on isolated VLAN with restricted access
2. Disable remote management interfaces if not required
3. Change default credentials and enforce strong authentication
4. Deploy Web Application Firewall (WAF) rules to block requests with buffer overflow patterns to account_mgr.cgi
5. Implement rate limiting on CGI endpoints
6. Enable detailed logging of all CGI requests for forensic analysis
DETECTION RULES:
1. Monitor HTTP POST/GET requests to /cgi-bin/account_mgr.cgi with 'Name' parameter exceeding 256 bytes
2. Alert on any requests containing null bytes or shellcode patterns in the Name parameter
3. Track failed authentication attempts followed by CGI access attempts
4. Monitor for unexpected process execution from httpd/lighttpd processes
5. Establish baseline for normal account_mgr.cgi usage and alert on deviations
PATCHING GUIDANCE:
1. Contact D-Link support for emergency firmware updates
2. Prepare isolated test environment to validate patches when available
3. Plan maintenance window for firmware updates on non-production systems first
4. Maintain backup of current configuration before any firmware updates
الإجراءات الفورية:
1. قم بحصر جميع أجهزة D-Link DNS/DNR في بيئتك وتوثيق إصدارات البرامج الثابتة
2. عزل الأجهزة المتأثرة عن الشبكات المتصلة بالإنترنت فوراً
3. تقييد الوصول إلى نقطة نهاية /cgi-bin/account_mgr.cgi باستخدام قواعد جدار الحماية
4. مراقبة طلبات HTTP المريبة إلى account_mgr.cgi بقيم معاملات 'Name' غير عادية
الضوابط البديلة (حتى توفر التصحيح):
1. تنفيذ تقسيم الشبكة - ضع أجهزة NAS على VLAN معزول مع وصول مقيد
2. تعطيل واجهات الإدارة البعيدة إذا لم تكن مطلوبة
3. تغيير بيانات الاعتماد الافتراضية وفرض مصادقة قوية
4. نشر قواعد جدار تطبيقات الويب (WAF) لحظر الطلبات التي تحتوي على أنماط تجاوز المخزن المؤقت إلى account_mgr.cgi
5. تنفيذ تحديد معدل على نقاط نهاية CGI
6. تفعيل تسجيل مفصل لجميع طلبات CGI للتحليل الجنائي
قواعد الكشف:
1. مراقبة طلبات HTTP POST/GET إلى /cgi-bin/account_mgr.cgi مع معامل 'Name' يتجاوز 256 بايت
2. تنبيه على أي طلبات تحتوي على بايتات فارغة أو أنماط shellcode في معامل Name
3. تتبع محاولات المصادقة الفاشلة متبوعة بمحاولات الوصول إلى CGI
4. مراقبة تنفيذ العمليات غير المتوقعة من عمليات httpd/lighttpd
5. إنشاء خط أساس للاستخدام الطبيعي لـ account_mgr.cgi والتنبيه على الانحرافات
إرشادات التصحيح:
1. اتصل بدعم D-Link للحصول على تحديثات البرامج الثابتة الطارئة
2. تحضير بيئة اختبار معزولة للتحقق من صحة التصحيحات عند توفرها
3. تخطيط نافذة صيانة لتحديثات البرامج الثابتة على الأنظمة غير الإنتاجية أولاً
4. الاحتفاظ بنسخة احتياطية من التكوين الحالي قبل أي تحديثات للبرامج الثابتة