Re: [dnsext] A security concern regarding IPv6 support in name servers

Nicholas Weaver <nweaver@icsi.berkeley.edu> Mon, 20 September 2010 13:09 UTC

Return-Path: <owner-namedroppers@ops.ietf.org>
X-Original-To: ietfarch-dnsext-archive@core3.amsl.com
Delivered-To: ietfarch-dnsext-archive@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id BBD1D3A69D7; Mon, 20 Sep 2010 06:09:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.254
X-Spam-Level:
X-Spam-Status: No, score=-1.254 tagged_above=-999 required=5 tests=[AWL=-0.444, BAYES_05=-1.11, MIME_8BIT_HEADER=0.3]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NU8b81O9tS5v; Mon, 20 Sep 2010 06:09:09 -0700 (PDT)
Received: from psg.com (psg.com [IPv6:2001:418:1::62]) by core3.amsl.com (Postfix) with ESMTP id C6A343A6A63; Mon, 20 Sep 2010 06:09:07 -0700 (PDT)
Received: from majordom by psg.com with local (Exim 4.72 (FreeBSD)) (envelope-from <owner-namedroppers@ops.ietf.org>) id 1Oxg3F-0004yc-2B for namedroppers-data0@psg.com; Mon, 20 Sep 2010 13:04:57 +0000
Received: from taffy.icsi.berkeley.edu ([192.150.187.26]) by psg.com with esmtp (Exim 4.72 (FreeBSD)) (envelope-from <nweaver@icsi.berkeley.edu>) id 1Oxg39-0004xv-CN for namedroppers@ops.ietf.org; Mon, 20 Sep 2010 13:04:51 +0000
Received: from albook.hsd1.ca.comcast.net (c-67-164-126-174.hsd1.ca.comcast.net [67.164.126.174]) by taffy.ICSI.Berkeley.EDU (Postfix) with ESMTP id BEAF13137D2; Mon, 20 Sep 2010 06:04:50 -0700 (PDT)
Subject: Re: [dnsext] A security concern regarding IPv6 support in name servers
Mime-Version: 1.0 (Apple Message framework v1081)
Content-Type: text/plain; charset=iso-8859-1
From: Nicholas Weaver <nweaver@icsi.berkeley.edu>
In-Reply-To: <201009201228.OAA23223@TR-Sys.de>
Date: Mon, 20 Sep 2010 06:05:03 -0700
Cc: Nicholas Weaver <nweaver@icsi.berkeley.edu>, namedroppers@ops.ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <33355710-F8B0-4067-93BF-EC3663BE39CD@icsi.berkeley.edu>
References: <201009201228.OAA23223@TR-Sys.de>
To: =?iso-8859-1?Q?Alfred_H=CEnes?= <ah@tr-sys.de>
X-Mailer: Apple Mail (2.1081)
Sender: owner-namedroppers@ops.ietf.org
Precedence: bulk
List-ID: <namedroppers.ops.ietf.org>
List-Unsubscribe: To unsubscribe send a message to namedroppers-request@ops.ietf.org with
List-Unsubscribe: the word 'unsubscribe' in a single line as the message text body.
List-Archive: <http://ops.ietf.org/lists/namedroppers/>

On Sep 20, 2010, at 5:28 AM, Alfred HÎnes wrote:

> I have been pointed to a paper by H. D. Moore published in 2008,
> "Exploiting Tomorrow's Internet Today - Penetration Testing with IPv6",
> available at <http://uninformed.org/?v=10&a=3&t=pdf>;.
> 
> On page 3, this paper points out that Bind running on an IPv6-enabled
> system, unless its serving socket is bound to a specific IPv6 (unicast,
> interface-assigned) address of the system, also listens to multicast
> traffic (the memo apparently confuses the terms "broadcast" and
> "multicast") and will also respond to DNS queries received over IPv6
> multicast (e.g., to FF01::1).  This could be leveraged for discovering
> nodes and for various amplification / DoS attacks.

Except that if you are on the multicast domain of the victim, the victim is already screwed for reconnisance, because the other systems (eg, Macs, windows, etc) use multicast link-local and network-local IPv6 a lot for autoconfiguration.  

Just listening, let alone generating, traffic to the link local multicast will pretty much tell you everything in the network you might want to exploit.

ANd in fact the victim is just screwed because you can use ICMP6 router advertisements etc to direct the victim's internet traffic wherever you want to go.

Basically, if an attacker is within your IPv6 subnet (so link-local/site-local multicast works) you are totally lost.


And thus responding to requests on multicast is probably a Good Thing, as it enables inside-the-perimeter autoconfiguration and fallback, multicast-dns support, etc.