Re: [Resolverless-dns] Paper on Resolver-less DNS

Erik Sy <sy@informatik.uni-hamburg.de> Thu, 15 August 2019 20:25 UTC

Return-Path: <sy@informatik.uni-hamburg.de>
X-Original-To: resolverless-dns@ietfa.amsl.com
Delivered-To: resolverless-dns@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0367D1200CC for <resolverless-dns@ietfa.amsl.com>; Thu, 15 Aug 2019 13:25:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level:
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fRb4U3zDfS5B for <resolverless-dns@ietfa.amsl.com>; Thu, 15 Aug 2019 13:25:29 -0700 (PDT)
Received: from mailhost.informatik.uni-hamburg.de (mailhost.informatik.uni-hamburg.de [134.100.9.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D9BCE1200C7 for <resolverless-dns@ietf.org>; Thu, 15 Aug 2019 13:25:28 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mailhost.informatik.uni-hamburg.de (Postfix) with ESMTP id E7E6156 for <resolverless-dns@ietf.org>; Thu, 15 Aug 2019 22:25:26 +0200 (CEST)
X-Virus-Scanned: amavisd-new at informatik.uni-hamburg.de
Received: from mailhost.informatik.uni-hamburg.de ([127.0.0.1]) by localhost (mailhost.informatik.uni-hamburg.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Sm-+PNj0+DLX for <resolverless-dns@ietf.org>; Thu, 15 Aug 2019 22:25:26 +0200 (CEST)
Received: from users-MBP.fritz.box (mue-88-130-80-179.dsl.tropolys.de [88.130.80.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Erik Sy", Issuer "DFN-Verein Global Issuing CA" (verified OK)) (Authenticated sender: sy) by mailhost.informatik.uni-hamburg.de (Postfix) with ESMTPSA id 4B99C54 for <resolverless-dns@ietf.org>; Thu, 15 Aug 2019 22:25:24 +0200 (CEST)
From: Erik Sy <sy@informatik.uni-hamburg.de>
To: resolverless-dns@ietf.org
References: <CAHbrMsBhR1yaLxQk7wZk54Jdf5nvkS03KC3UTae0Famu2+SV8g@mail.gmail.com> <20190815163938.CF9CB85D108@ary.local> <CA+9kkMDtGt0hMPv1szjoLuHsO1h5wPrsY-5LkJdDU5FcVKFSkA@mail.gmail.com>
Reply-To: sy@informatik.uni-hamburg.de
Openpgp: preference=signencrypt
Autocrypt: addr=sy@informatik.uni-hamburg.de; prefer-encrypt=mutual; keydata= mQINBFzVyS4BEADnUWBPWNK8CNxDj8QarMioEQsyEiLkpsln4zxw1cxhTnK+ZHd4wTOh1BZf GVmGZ7wdb/NLiQbENv44okX4mYgJjt32gbVg8ssfScfTEO9PVBgLi5SDtLAxLk8TjF7ETIkG NUWgAQm6Pw6EowjLjMJ4y3fahPcypqtfuO1cxF86pPYAsSG+9iuInpBQoZwuvZu3SLUMXB9l +Xwiy77wEpvPg49pNQhbFqlIZXAHTLyEIlrxG41xXbTt7P5kH333c1cRD//EeC2oEjZhgCBh B4ObFpgL4JxSo71MZFdSDOWfiwMq3kXOwJnPNq9xzcWEItVyLK30fXWt5uZ3YfUcZGpGXv1Y Kl4monIru9NFVSW35FlhHtpgUKdQBKJMeuc1ckZr00zRtd1tf/69rdnjJngR+5RJZE3ykDx4 bJ4P75nqeDUe8adc4S0GeExEgsjVl8QZpCgIrjicA4MQERJKaA3bmCWy5YfCqsZYfbFXrcmq sZopkMTI2X5ZsA3y+jjWlmfDo3Tdu9ddfF8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INHVZ95Z1HOdadMYvt1Q37qmOaK34K6kHLbTglBIb2eBEp/OcUlOcrFEu 7yq1TU6QSvGA9QZVeAfttyA9YqEawB3j11uJm3xMknqS3SzTE0JxZNyz1Qri6OLnP3uVaXJj BCiiGZf6sgnCa7/JlYrrEIF3ukWQutUfG+1XVq85/gPYnmTlenp4PCIuQVJT+ldG3hPNS1un qX0iEGiV8XdwXy9Gg49QAhNOFn6llW17VP279NvEVa6eRAm5w4mp4L3FgpbFlKkCHZXzMx/7 wuYPd9pj+olW2uDid279lKsUGt0I7MVyad311Fd1WnQQrAuEw6ZduDNZMxnhRV4x0PxwnGEY Ye+WbA==
Message-ID: <d32e9589-c9f7-593d-b0f6-0e842a461c43@informatik.uni-hamburg.de>
Date: Thu, 15 Aug 2019 22:25:23 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.8.0
MIME-Version: 1.0
In-Reply-To: <CA+9kkMDtGt0hMPv1szjoLuHsO1h5wPrsY-5LkJdDU5FcVKFSkA@mail.gmail.com>
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-256"; boundary="------------ms010705030108080503050101"
Archived-At: <https://mailarchive.ietf.org/arch/msg/resolverless-dns/ZWzdv44kSDjnBlwrI6JJ2_rb1TU>
Subject: Re: [Resolverless-dns] Paper on Resolver-less DNS
X-BeenThere: resolverless-dns@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Resolverless DNS <resolverless-dns.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/resolverless-dns>, <mailto:resolverless-dns-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/resolverless-dns/>
List-Post: <mailto:resolverless-dns@ietf.org>
List-Help: <mailto:resolverless-dns-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/resolverless-dns>, <mailto:resolverless-dns-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Aug 2019 20:25:32 -0000

Hi Ted,

On 8/15/19 19:57, Ted Hardie wrote:
>  From my perspective, the push-based DNS record approach is most risky
> for this latter set of risks.  The document currently says:
>
>     First, clients are only allowed to send application data over an
>     established connection ifthey validated the server’s identity via
>     a server authentication mechanism or a fallback DNS lookup. Figure
>     2 presents the validation strategy applied by user agents on DNS
>     records retrieved via resolver-less DNS
>
>
> I can't reproduce the diagram here, but my reading is that you can use
> this DNS data if you have cached TLS resumption ticket or equivalent;
> in that case, you can start the 0-RTT exchange knowing the other side
> will be able to see the application data only if they have the right
> cryptographic materials.  This misses the risk that establishing a
> connection may leak private information*.

The problem you are describing is not introduced by resolver-less DNS. A
traditional DNS resolver can conduct the exact same attack by
distributing fake DNS records and observe the client's connection
establishment.

>   It also create a new, fun dependency in the already confusing
> interaction of cache lifetimes.  The DoH style method creates an
> interdependence between DNS TTL and HTTP cache lifetimes; this creates
> one with the ticket lifetime.

I feel like you possibly misunderstood the validation strategy. I
proposed an opportunistic approach, where the client always attempts a
connection establishments towards the IP address retrieved via
resolver-less DNS. Subsequently, if the connection does not provide
server authentication, the client evaluates a fallback DNS record
retrieved via the traditional DNS. Thus, I do not understand why an
interdependence with the ticket lifetime is created.

Erik 

>   RFC 5077 says this:
>    A client SHOULD delete the ticket and associated state when the time expires.
>    It MAY delete the ticket earlier based on local policy.  A server MAY
>    treat a ticket as valid for a shorter or longer period of time than
>    what is stated in the ticket_lifetime_hint.
> If you know a server sets 0 or a long lifetime, in other words, you
> may be able to guess that a session ticket is available, but otherwise
> it is a crapshoot either for the benign DNS-record supplying host or
> an attacker. 
>
> Given the large number of cases that will have to follow fallback DNS
> lookup for the authentication, I think this a useful building block
> only for very popular services (since they are likely to be in the
> cache).  Given the other resources they have and the reputational risk
> of allowing random sites to provide DNS records related to them, I'm
> not yet sure that this is worth it.
>
> Ted
>
> *Imagine you are a government which wishes to detect when citizens use
> GRINDR, as you disapprove of same sex encounters.  You can have
> government  and affiliated sites push GRINDR DNS records using this
> method; when someone with a fresh TLS ticket for GRINDR tries to
> connect, you get their IP address and whatever other data leaked in
> the exchange.  You can limit this risk in various ways (e.g. by
> requiring the presented TLS certificate of the DNS-record supplying
> host have the domain in its list of alternative names), but this
> limits the effectiveness of this method and also runs the risk that
> governments may have root certificates that can generate those.
>
>