Additional filtering of responses

Wouter Wijngaards <wouter@NLnetLabs.nl> Thu, 07 August 2008 11:11 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 B30333A6B78; Thu, 7 Aug 2008 04:11:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.6
X-Spam-Level:
X-Spam-Status: No, score=-102.6 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, NO_RELAYS=-0.001, USER_IN_WHITELIST=-100]
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 o6aIN-egC10w; Thu, 7 Aug 2008 04:11:43 -0700 (PDT)
Received: from psg.com (psg.com [IPv6:2001:418:1::62]) by core3.amsl.com (Postfix) with ESMTP id C49763A6900; Thu, 7 Aug 2008 04:11:43 -0700 (PDT)
Received: from majordom by psg.com with local (Exim 4.69 (FreeBSD)) (envelope-from <owner-namedroppers@ops.ietf.org>) id 1KR3Eq-00005Z-Io for namedroppers-data@psg.com; Thu, 07 Aug 2008 11:01:00 +0000
Received: from [2001:7b8:206:1::1] (helo=open.nlnetlabs.nl) by psg.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from <wouter@nlnetlabs.nl>) id 1KR3Em-00004y-DS for namedroppers@ops.ietf.org; Thu, 07 Aug 2008 11:00:58 +0000
Received: from gary.nlnetlabs.nl (gary.nlnetlabs.nl [IPv6:2001:7b8:206:1:216:76ff:feb8:1853]) (authenticated bits=0) by open.nlnetlabs.nl (8.14.2/8.14.2) with ESMTP id m77B0pVH080090 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <namedroppers@ops.ietf.org>; Thu, 7 Aug 2008 13:00:51 +0200 (CEST) (envelope-from wouter@nlnetlabs.nl)
Message-ID: <489AD5E3.20708@nlnetlabs.nl>
Date: Thu, 07 Aug 2008 13:00:51 +0200
From: Wouter Wijngaards <wouter@NLnetLabs.nl>
User-Agent: Thunderbird 2.0.0.14 (X11/20080501)
MIME-Version: 1.0
To: Namedroppers <namedroppers@ops.ietf.org>
Subject: Additional filtering of responses
X-Enigmail-Version: 0.95.6
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (open.nlnetlabs.nl [IPv6:2001:7b8:206:1::1]); Thu, 07 Aug 2008 13:00:51 +0200 (CEST)
Sender: owner-namedroppers@ops.ietf.org
Precedence: bulk
List-ID: <namedroppers.ops.ietf.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

A new version of my resolver (Unbound) with additional filtering of
responses to counter the recently disclosed vulnerability at blackhat
was just released. This filtering is in addition to the bailiwick
checking. I would like to say what I did, here, because this is easy to
do, and effective against certain types of 'the Kaminsky attack'.

1) Stuff in the additional section. RFC2181. Understand why Masataka and
Paul think it is very important, and worth bickering over. Just mentioning.

2) CNAME chains.  The first CNAME, that starts with the query name, is
OK. Everything after that, especially if in-bailiwick and giving nice
hints about www.example.com and so on is ignored from incoming messages.
Instead, the target of the CNAME is queried again. I think BIND already
does this.

3) DNAMEs. Unvalidated DNAMEs are not used from the cache. I believe
BIND also does this already.  Thus, a new request is done for every
query under a (not DNSSEC validated) DNAME, receiving a new redirection
for that one query.

So, only stuff that exactly matches the query is left in the answer
section.  The rest is ignored (basically, I delete it immediately).

This simply rejects a couple of loopholes without great additional
complexity or bother. It does not protect fully against 'The Kaminsky
Attack', only some variations are stopped.

The best solution is of course DNSSEC. Crypto signatures instead of
randomisation games. Enable DNSSEC validation now.

Best regards,
~   Wouter

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkia1eMACgkQkDLqNwOhpPjkHACgpT1+jYxsi5q5MjmZqUVvt1M9
SMQAn1Uk6LvvArsB65qeqXxT9jR+9FyC
=jEVJ
-----END PGP SIGNATURE-----

--
to unsubscribe send a message to namedroppers-request@ops.ietf.org with
the word 'unsubscribe' in a single line as the message text body.
archive: <http://ops.ietf.org/lists/namedroppers/>