Re: Review of draft-saintandre-tls-server-id-check

Dave Cridland <dave@cridland.net> Tue, 14 September 2010 07:58 UTC

Return-Path: <dave@cridland.net>
X-Original-To: ietf@core3.amsl.com
Delivered-To: ietf@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id EE3833A68FF; Tue, 14 Sep 2010 00:58:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.473
X-Spam-Level:
X-Spam-Status: No, score=-2.473 tagged_above=-999 required=5 tests=[AWL=0.126, BAYES_00=-2.599]
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 9Jn2Omrf4Tc2; Tue, 14 Sep 2010 00:58:27 -0700 (PDT)
Received: from peirce.dave.cridland.net (peirce.dave.cridland.net [217.155.137.61]) by core3.amsl.com (Postfix) with ESMTP id 0A19F3A690E; Tue, 14 Sep 2010 00:58:27 -0700 (PDT)
Received: from localhost (localhost.localdomain [127.0.0.1]) by peirce.dave.cridland.net (Postfix) with ESMTP id 617E811680C3; Tue, 14 Sep 2010 08:58:52 +0100 (BST)
X-Virus-Scanned: Debian amavisd-new at peirce.dave.cridland.net
Received: from peirce.dave.cridland.net ([127.0.0.1]) by localhost (peirce.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iQHoW88QfHYd; Tue, 14 Sep 2010 08:58:49 +0100 (BST)
Received: from puncture (unknown [217.155.137.60]) by peirce.dave.cridland.net (Postfix) with ESMTPA id 46B3111680AA; Tue, 14 Sep 2010 08:58:49 +0100 (BST)
Subject: Re: Review of draft-saintandre-tls-server-id-check
References: <C8B4887B.EE56%stefan@aaa-sec.com>
In-Reply-To: <C8B4887B.EE56%stefan@aaa-sec.com>
MIME-Version: 1.0
Message-Id: <8252.1284451129.280251@puncture>
Date: Tue, 14 Sep 2010 08:58:49 +0100
From: Dave Cridland <dave@cridland.net>
To: Stefan Santesson <stefan@aaa-sec.com>, Bernard Aboba <bernard_aboba@hotmail.com>, IETF cert-based identity <certid@ietf.org>, IETF-Discussion <ietf@ietf.org>, Peter Saint-Andre <stpeter@stpeter.im>
Content-Type: text/plain; delsp="yes"; charset="us-ascii"; format="flowed"
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ietf>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 14 Sep 2010 07:58:29 -0000

On Tue Sep 14 01:03:39 2010, Stefan Santesson wrote:
> Under the current rules, using this example I read it that the  
> following
> apply:
> 
> - If you are just checking the SRVName you will not learn the  
> legitimate
> host DNS name. So a certificate issued to host2.example.com will be  
> accepted
> even if you intended to contact host1.example.com (even if that  
> information
> is in the cert).
> 
> 
But I don't care about the legitimate hostname. All I care about is  
that my TLS endpoints are me, and the service I wanted. What hostname  
that service happens to be delivered on is entirely immaterial. If I  
*did* care about that, I'd surely also want to verify the IP address,  
and then I'd want to verify the MAC address, and then the CPUID, and  
then...

Surely if an sRVName (or equivalent) fully matches, this is  
sufficient to verify that the contacted host is authorized to provide  
that service for that domain?


> - If you just check the dNSName, you will miss the fact that you  
> talk to the
> desiganted ldap server and not the xmpp server (even if that  
> information is
> in the cert).
> 
> 
Kind of. The rules effectively mean that dNSName is treated as a  
sRVName with a wildcard service type, as I understand it.

> If I'm not totally wrong in my example above I also think it would  
> be good
> with a security note stating that an SRVName may not provide the  
> full host
> DNS name, and if it is important to verify the host DNS name, you  
> must
> verify the dNSName in addition to what else you are checking.

I don't see any time when it's desirable, from a security  
perspective, to check the host name in addition to the service domain  
name.

Dave.
-- 
Dave Cridland - mailto:dave@cridland.net - xmpp:dwd@dave.cridland.net
  - acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
  - http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade