Files
freebsd/sbin
Dag-Erling Smørgrav dfcb69cdb0 dhclient: Improve server and filename validation
* Don't iterate over each string three times; once is enough.

* Reject control characters (anything below space) in addition to the
  double quote and backslash.

* If an unsafe character is encountered, discard the string instead of
  rejecting the entire lease.

* If backslashes are encountered in the file name option, convert them
  to forward slashes instead of rejecting the option.

* Tweak the warning messages a bit.  Looking through the rest of the
  code, it seems to me that notes generally end with a period while
  warnings generally don't.

Approved by:	so
Security:	FreeBSD-EN-26:11.dhclient
Fixes:		8008e4b88d ("dhclient: Check for unexpected characters in some DHCP server options")
PR:		294886
MFC after:	1 week
Reviewed by:	brooks, markj
Differential Revision:	https://reviews.freebsd.org/D56740

(cherry picked from commit 873a195ba6)
(cherry picked from commit 2f9478ad42)
2026-04-30 21:21:45 +00:00
..
…
…
2025-11-20 10:37:34 -05:00
…
…
…
2025-08-14 14:00:09 +00:00
2026-01-05 12:01:01 -08:00
2025-01-23 22:36:03 -05:00
2026-01-31 17:50:03 +00:00
…
2026-01-30 13:00:35 -08:00
2025-07-19 02:03:53 +01:00