Re: [keyassure] Interpreting certificates (and summary)

Martin Rex <mrex@sap.com> Wed, 23 February 2011 18:56 UTC

Return-Path: <mrex@sap.com>
X-Original-To: keyassure@core3.amsl.com
Delivered-To: keyassure@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 14B343A6929 for <keyassure@core3.amsl.com>; Wed, 23 Feb 2011 10:56:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.231
X-Spam-Level:
X-Spam-Status: No, score=-10.231 tagged_above=-999 required=5 tests=[AWL=0.018, BAYES_00=-2.599, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_HI=-8]
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 8kmIM3-FyFJ3 for <keyassure@core3.amsl.com>; Wed, 23 Feb 2011 10:56:44 -0800 (PST)
Received: from smtpde02.sap-ag.de (smtpde02.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id B019C3A6915 for <keyassure@ietf.org>; Wed, 23 Feb 2011 10:56:43 -0800 (PST)
Received: from mail.sap.corp by smtpde02.sap-ag.de (26) with ESMTP id p1NIvTHH021272 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 23 Feb 2011 19:57:29 +0100 (MET)
From: Martin Rex <mrex@sap.com>
Message-Id: <201102231857.p1NIvSOQ002578@fs4113.wdf.sap.corp>
To: i.grok@comcast.net
Date: Wed, 23 Feb 2011 19:57:28 +0100
In-Reply-To: <20110221144527.GB25182@odin.mars.sol> from "Scott Schmit" at Feb 21, 11 09:45:27 am
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-SAP: out
Cc: keyassure@ietf.org
Subject: Re: [keyassure] Interpreting certificates (and summary)
X-BeenThere: keyassure@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: Key Assurance With DNSSEC <keyassure.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/keyassure>, <mailto:keyassure-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/keyassure>
List-Post: <mailto:keyassure@ietf.org>
List-Help: <mailto:keyassure-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/keyassure>, <mailto:keyassure-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Feb 2011 18:56:45 -0000

Scott Schmit wrote:
> 
> An item for security considerations:
> * Now that CAs aren't necessarily issuing these certs, the client needs
>   to be much more careful in its parsing (the null terminated vs length-
>   delimited string bug comes to mind)

This sounds somewhat strange to me.

When doing TLS authentication of a peer, the peer's certificate
is always untrusted at the time when it is parsed.  Parsing the
received X.509 cert is a prerequisite to being able to validate
the cert and determining whether it is trusted/trustworthy or not.

An ASN.1 parser that is not careful is an unconditionally bad idea
and asking for trouble; lots of trouble.  Tolerance to common
bugs of encodings produced by peers should never be accepted
"by accident", only by conscious trade-off decisions that are
clearly documented for the caller/consumer of the technology.


-Martin