[Bug 260770] libc resolver does not validate domain names

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 28 Dec 2021 21:38:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260770

            Bug ID: 260770
           Summary: libc resolver does not validate domain names
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: emaste@freebsd.org

e.g. `host 127.0.0.1#test.example.com` will perform a DNS query as shown below,
although # is not a valid character in a domain name

0020                                 da 7c 01 00 00 01             .|....
0030   00 00 00 00 00 00 03 31 32 37 01 30 01 30 06 31   .......127.0.0.1
0040   23 74 65 73 74 07 65 78 61 6d 70 6c 65 03 63 6f   #test.example.co
0050   6d 00 00 01 00 01                                 m.....

-- 
You are receiving this mail because:
You are the assignee for the bug.