dnsmasq: Whitespace should not be allowed between characters in HostnameField #8733
Closed
2 tasks done
Labels
bug
Production bug
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
PR: https://www.reddit.com/r/opnsense/comments/1kwuljq/dnsmasq_wont_start_and_i_cant_find_logs/
/ui/dnsmasq/settings#hosts
Due to inconsistent validation of the hostname, whitespaces inbetween characters are allowed.
This causes a dhcp-host to fail hard if it exists
bad DHCP host name at line 109 of /usr/local/etc/dnsmasq.conf
To Reproduce
Steps to reproduce the behavior:
abc def abc
Expected behavior
Input validation should prevent non standard hostnames (e.g. whitespaces)
core/src/opnsense/mvc/app/models/OPNsense/Dnsmasq/Dnsmasq.xml
Lines 78 to 81 in 4381fe4
The text was updated successfully, but these errors were encountered: