A security flaw has been discovered in Tenda HG3 2.0 300003070. This vulnerability affects the function formgponConf of the file /boaform/admin/formgponConf. The manipulation of the argument fmgpon_loid results in os command injection. It is possible to launch the attack remotely. The exploit has been released to the public and may be used for attacks.
A critical OS command injection vulnerability exists in Tenda HG3 2.0 firmware (version 300003070) affecting the /boaform/admin/formgponConf endpoint. The fmgpon_loid parameter is improperly sanitized, allowing unauthenticated remote attackers to execute arbitrary system commands with device privileges. With public exploit availability and no patch currently available, this poses immediate risk to organizations using this router model.
IMMEDIATE ACTIONS:
1. Identify and inventory all Tenda HG3 devices running firmware version 300003070 across your organization
2. Isolate affected devices from critical network segments if possible, or implement network segmentation
3. Restrict administrative access to the /boaform/admin/formgponConf endpoint using firewall rules
4. Monitor for suspicious command execution patterns on affected devices
COMPENSATING CONTROLS (until patch available):
5. Implement Web Application Firewall (WAF) rules to block requests containing shell metacharacters (|, ;, &, $, `, >, <) in the fmgpon_loid parameter
6. Disable remote management features if not required; restrict admin access to trusted IP ranges only
7. Change default credentials on all affected devices immediately
8. Enable logging and monitoring of /boaform/admin/ endpoint access
DETECTION RULES:
- Monitor for HTTP POST requests to /boaform/admin/formgponConf with fmgpon_loid parameter containing: pipe (|), semicolon (;), ampersand (&), backtick (`), dollar sign ($), or command substitution syntax
- Alert on any process execution initiated from web server processes (boa/httpd) on affected devices
- Track failed authentication attempts followed by successful command injection attempts
PATCHING STRATEGY:
9. Contact Tenda support for firmware updates; check vendor website regularly for patches
10. Prepare upgrade procedure and test in lab environment before production deployment
11. Establish timeline for device replacement if patches are not released within 30 days
الإجراءات الفورية:
1. تحديد وحصر جميع أجهزة Tenda HG3 التي تعمل بإصدار البرنامج الثابت 300003070 عبر مؤسستك
2. عزل الأجهزة المتأثرة عن قطاعات الشبكة الحرجة إن أمكن، أو تطبيق تقسيم الشبكة
3. تقييد الوصول الإداري إلى نقطة النهاية /boaform/admin/formgponConf باستخدام قواعد جدار الحماية
4. مراقبة أنماط تنفيذ الأوامر المريبة على الأجهزة المتأثرة
الضوابط البديلة (حتى توفر التصحيح):
5. تطبيق قواعد جدار تطبيقات الويب (WAF) لحجب الطلبات التي تحتوي على أحرف shell (|، ;، &، $، `، >، <) في معامل fmgpon_loid
6. تعطيل ميزات الإدارة البعيدة إذا لم تكن مطلوبة؛ تقييد الوصول الإداري على نطاقات IP موثوقة فقط
7. تغيير بيانات الاعتماد الافتراضية على جميع الأجهزة المتأثرة فوراً
8. تفعيل تسجيل ومراقبة الوصول إلى نقطة النهاية /boaform/admin/
قواعد الكشف:
- مراقبة طلبات HTTP POST إلى /boaform/admin/formgponConf مع معامل fmgpon_loid يحتوي على: أنبوب (|)، فاصلة منقوطة (;)، علامة العطف (&)، علامة خلفية (`)، علامة دولار ($)، أو بناء جملة استبدال الأوامر
- تنبيه عند تنفيذ أي عملية بدأت من عمليات خادم الويب (boa/httpd) على الأجهزة المتأثرة
- تتبع محاولات المصادقة الفاشلة متبوعة بمحاولات حقن أوامر ناجحة
استراتيجية التصحيح:
9. الاتصال بدعم Tenda للحصول على تحديثات البرنامج الثابت؛ تحقق من موقع البائع بانتظام للحصول على التصحيحات
10. تحضير إجراء الترقية واختباره في بيئة المختبر قبل نشره في الإنتاج
11. وضع جدول زمني لاستبدال الجهاز إذا لم يتم إصدار التصحيحات خلال 30 يوماً