Pi-hole FTL is the core engine of the Pi-hole network-level advertisement and tracker blocker. In versions before 6.6.1, the `dns.interface` configuration field in Pi-hole FTL accepted newline characters without validation, allowing an attacker to inject arbitrary directives into the generated dnsmasq configuration file. On installations with no admin password set (the default for many deployments), the configuration API is fully accessible without credentials, allowing a network-adjacent attacker to inject the payload, enable the built-in DHCP server, and achieve arbitrary command execution on the host the next time any device on the network requests a DHCP lease. The injected value is persisted to /etc/pihole/pihole.toml and survives restarts. The strncpy in the code path limits the total interface field to 31 bytes, but payloads such as wlan0\ndhcp-script=/tmp/p fit within this constraint. The dnsmasq config validation introduced in FTL 6.6 only checks syntactic validity, so valid directives injected via newline pass validation successfully. This issue has been fixed in version 6.6.1.
Pi-hole FTL versions before 6.6.1 allow unauthenticated attackers to inject arbitrary dnsmasq configuration directives through the dns.interface field due to insufficient newline character validation. This enables remote code execution on networks where the admin password is not set, particularly when DHCP is enabled.
يحتوي Pi-hole FTL على ثغرة حقن في حقل dns.interface التي تقبل أحرف السطر الجديد دون التحقق من صحتها. يمكن للمهاجمين المجاورين للشبكة استغلال هذا عبر واجهة برمجة التطبيقات المكشوفة لحقن أوامر تعسفية في ملف تكوين dnsmasq. يؤدي هذا إلى تنفيذ أوامر بعيدة عند طلب أي جهاز على الشبكة عنوان DHCP.
Pi-hole FTL قبل الإصدار 6.6.1 يسمح للمهاجمين غير المصرح لهم بحقن توجيهات dnsmasq عشوائية عبر حقل dns.interface بسبب التحقق غير الكافي من أحرف السطر الجديد. يمكّن هذا من تنفيذ أوامر بعيدة على الشبكات حيث لم يتم تعيين كلمة مرور المسؤول.
Upgrade Pi-hole FTL to version 6.6.1 or later immediately. Set a strong admin password on all Pi-hole installations. Restrict network access to the Pi-hole admin interface using firewall rules. Disable DHCP if not required. Monitor /etc/pihole/pihole.toml for unauthorized modifications.
قم بترقية Pi-hole FTL إلى الإصدار 6.6.1 أو أحدث على الفور. قم بتعيين كلمة مرور مسؤول قوية على جميع تثبيتات Pi-hole. قيّد الوصول إلى واجهة مسؤول Pi-hole باستخدام قواعد جدار الحماية. عطّل DHCP إذا لم تكن مطلوبة. راقب /etc/pihole/pihole.toml للتعديلات غير المصرح بها.