From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27617 invoked by alias); 12 Sep 2013 08:35:25 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 27571 invoked by uid 48); 12 Sep 2013 08:35:22 -0000 From: "berend.de.schouwer at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug network/13935] getaddrinfo NXDOMAIN hijack exploit for hosts with two-component hostnames Date: Thu, 12 Sep 2013 08:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: network X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: berend.de.schouwer at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-09/txt/msg00078.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=13935 Berend changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |berend.de.schouwer at gmail dot co | |m --- Comment #6 from Berend --- As a workaround you can try 'domain .' WorksForMe(tm); but the file does get overwritten by NetworkManager. getdomainname(2) still returns the actual domainname, in my simplistic tests. I stumbled across this from a slightly different angle: - the corporate network sets the hostname. - connecting over a non-corporate network then keeps the machine hostname, but 'search ...' is blank. - externally the corporate network then ends up giving wildcards when there's a failed lookup. The end result is the same: typos result in answers rather than NXDOMAIN. I'm for disabling implicit search lists if 'search ...' is blank. I'll add network-specific search lists as I connect. (I also want the corporate DNS to not do this -- and have queried that internally, but DNS lookups end me on sedoparking eventually) -- You are receiving this mail because: You are on the CC list for the bug.