OpenClaw before 2026.4.2 fails to normalize trailing-dot localhost hosts in remote CDP discovery responses, allowing bypass of loopback protections. Attackers can craft hostile discovery responses returning localhost. to retarget authenticated browser control toward localhost endpoints and expose browser state.
OpenClaw before version 2026.4.2 contains a critical loopback protection bypass vulnerability in its remote Chrome DevTools Protocol (CDP) discovery mechanism. Attackers can craft malicious discovery responses using trailing-dot localhost notation (localhost.) to circumvent security controls and redirect authenticated browser sessions to local endpoints, potentially exposing sensitive browser state and session data. This vulnerability affects Node.js-based implementations and poses significant risk to development environments and automated testing infrastructure.
Immediate Actions:
1. Identify all instances of OpenClaw in your environment, particularly in development, CI/CD, and testing infrastructure
2. Audit recent CDP discovery responses and browser session logs for suspicious localhost. entries
3. Implement network segmentation to restrict CDP discovery traffic to trusted internal networks only
4. Review browser automation logs for unauthorized localhost redirections
Patching Guidance:
1. Upgrade OpenClaw to version 2026.4.2 or later immediately when available
2. If upgrade is not immediately possible, implement input validation on all CDP discovery responses
3. Deploy DNS filtering to block resolution of localhost. (trailing-dot notation)
Compensating Controls:
1. Implement strict firewall rules limiting CDP discovery responses to whitelisted internal IP ranges
2. Deploy Web Application Firewall (WAF) rules to detect and block localhost. patterns in HTTP responses
3. Enable comprehensive logging and monitoring of all CDP discovery transactions
4. Implement mutual TLS (mTLS) for CDP discovery communications to prevent man-in-the-middle attacks
5. Restrict browser automation to isolated, air-gapped development environments
Detection Rules:
1. Monitor for CDP discovery responses containing 'localhost.' (with trailing dot)
2. Alert on browser session redirections to 127.0.0.1 or ::1 from external discovery sources
3. Track failed loopback protection validations in application logs
4. Monitor for unusual localhost endpoint access patterns in development environments
الإجراءات الفورية:
1. حدد جميع حالات OpenClaw في بيئتك، خاصة في البنية التحتية للتطوير والـ CI/CD والاختبار
2. قم بمراجعة استجابات اكتشاف CDP الحديثة وسجلات جلسات المتصفح بحثاً عن إدخالات localhost. المريبة
3. طبق تقسيم الشبكة لتقييد حركة اكتشاف CDP إلى الشبكات الداخلية الموثوقة فقط
4. راجع سجلات أتمتة المتصفح للتحقق من إعادة التوجيه غير المصرح بها إلى localhost
إرشادات التصحيح:
1. قم بترقية OpenClaw إلى الإصدار 2026.4.2 أو أحدث فوراً عند توفره
2. إذا لم يكن الترقية ممكنة على الفور، طبق التحقق من صحة الإدخال على جميع استجابات اكتشاف CDP
3. نشر تصفية DNS لحظر دقة localhost. (تدوين النقطة النهائية)
عناصر التحكم التعويضية:
1. طبق قواعد جدار الحماية الصارمة لتقييد استجابات اكتشاف CDP على نطاقات IP الداخلية المدرجة في القائمة البيضاء
2. نشر قواعد جدار تطبيقات الويب (WAF) للكشف عن أنماط localhost. وحظرها
3. فعّل التسجيل والمراقبة الشاملة لجميع معاملات اكتشاف CDP
4. طبق TLS المتبادل (mTLS) لاتصالات اكتشاف CDP لمنع هجمات الوسيط
5. قيّد أتمتة المتصفح إلى بيئات تطوير معزولة وغير متصلة بالشبكة
قواعد الكشف:
1. راقب استجابات اكتشاف CDP التي تحتوي على 'localhost.' (مع نقطة نهائية)
2. أصدر تنبيهات لإعادة توجيه جلسات المتصفح إلى 127.0.0.1 أو ::1 من مصادر اكتشاف خارجية
3. تتبع التحققات الفاشلة من حماية الحلقة المحلية في سجلات التطبيق
4. راقب أنماط الوصول إلى نقاط نهاية localhost غير العادية في بيئات التطوير