HestiaCP versions 1.2.0 through 1.9.4 contain an IP spoofing vulnerability that allows unauthenticated remote attackers to bypass authentication security controls by supplying an arbitrary IP address in the CF-Connecting-IP HTTP header without verifying the request originated from Cloudflare's network. Attackers can exploit this to circumvent fail2ban brute-force protection, bypass per-user IP allowlists, and poison authentication audit logs by spoofing trusted IP addresses on each request.
HestiaCP versions 1.2.0-1.9.4 contain a critical IP spoofing vulnerability (CVE-2026-43634) allowing unauthenticated attackers to bypass authentication controls by manipulating the CF-Connecting-IP header without Cloudflare origin verification. This enables circumvention of brute-force protections, IP allowlists, and audit log poisoning. With no patch currently available and no exploit publicly disclosed, organizations must implement immediate compensating controls to prevent authentication bypass attacks.
IMMEDIATE ACTIONS:
1. Disable CF-Connecting-IP header processing in HestiaCP configuration if not using Cloudflare CDN
2. Implement strict IP allowlisting at firewall/WAF level for administrative interfaces
3. Enable multi-factor authentication (MFA) on all HestiaCP user accounts immediately
4. Review and reset authentication audit logs for suspicious IP patterns
5. Implement rate limiting on login endpoints (max 5 attempts per 15 minutes per IP)
COMPENSATING CONTROLS:
6. Deploy WAF rules to validate CF-Connecting-IP header only from Cloudflare ASN ranges (103.21.244.0/22, 103.22.200.0/22, etc.)
7. Configure fail2ban to monitor actual source IP (not header-based) using iptables logging
8. Implement reverse proxy (nginx/Apache) to strip untrusted headers before HestiaCP processing
9. Enable detailed logging of all authentication attempts with source IP verification
10. Monitor for multiple failed login attempts from different spoofed IPs
DETECTION RULES:
- Alert on CF-Connecting-IP header values not matching actual source IP
- Flag login attempts from IPs outside organization's known ranges
- Monitor for rapid authentication failures followed by successful login from different IP
- Track audit log entries with mismatched source IPs
الإجراءات الفورية:
1. تعطيل معالجة رأس CF-Connecting-IP في تكوين HestiaCP إذا لم تكن تستخدم Cloudflare CDN
2. تنفيذ قائمة IP مسموحة صارمة على مستوى جدار الحماية/WAF للواجهات الإدارية
3. تفعيل المصادقة متعددة العوامل (MFA) على جميع حسابات مستخدمي HestiaCP فوراً
4. مراجعة وإعادة تعيين سجلات تدقيق المصادقة للأنماط المريبة
5. تنفيذ تحديد معدل على نقاط نهاية تسجيل الدخول (5 محاولات كحد أقصى لكل 15 دقيقة لكل IP)
الضوابط التعويضية:
6. نشر قواعد WAF للتحقق من رأس CF-Connecting-IP فقط من نطاقات Cloudflare ASN
7. تكوين fail2ban لمراقبة IP المصدر الفعلي باستخدام تسجيل iptables
8. تنفيذ خادم وكيل عكسي لحذف الرؤوس غير الموثوقة قبل معالجة HestiaCP
9. تفعيل تسجيل مفصل لجميع محاولات المصادقة مع التحقق من IP المصدر
10. مراقبة محاولات تسجيل دخول متعددة الفشل من عناوين IP مختلفة مزيفة