
From ekr@rtfm.com  Sun Aug  1 07:45:12 2010
Return-Path: <ekr@rtfm.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B9F2D3A6969 for <tls@core3.amsl.com>; Sun,  1 Aug 2010 07:45:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.914
X-Spam-Level: 
X-Spam-Status: No, score=0.914 tagged_above=-999 required=5 tests=[AWL=0.290,  BAYES_50=0.001, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001]
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 gEIHnBdiwKdL for <tls@core3.amsl.com>; Sun,  1 Aug 2010 07:45:11 -0700 (PDT)
Received: from mail-gx0-f172.google.com (mail-gx0-f172.google.com [209.85.161.172]) by core3.amsl.com (Postfix) with ESMTP id E32C83A6960 for <tls@ietf.org>; Sun,  1 Aug 2010 07:45:10 -0700 (PDT)
Received: by gxk1 with SMTP id 1so1244617gxk.31 for <tls@ietf.org>; Sun, 01 Aug 2010 07:45:37 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.90.91.17 with SMTP id o17mr3815088agb.99.1280673937385; Sun,  01 Aug 2010 07:45:37 -0700 (PDT)
Received: by 10.90.214.10 with HTTP; Sun, 1 Aug 2010 07:45:37 -0700 (PDT)
Date: Sun, 1 Aug 2010 16:45:37 +0200
Message-ID: <AANLkTinB3m5nM89BbJE6H98doJ6Q81ZnUFm_kHXYwr06@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
To: tls@ietf.org
Content-Type: multipart/alternative; boundary=0016361e87ce1c67cc048cc4230e
Subject: [TLS] Yet more on digests and Cached-Info
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 01 Aug 2010 14:45:13 -0000

--0016361e87ce1c67cc048cc4230e
Content-Type: text/plain; charset=ISO-8859-1

As promised at the TLS WG meeting in Maastricht, here are my comments from
the mic about the nature of the digest in CachedObject:

1. The primary security property we are interested in here is second
preimage
resistance. Any useful attack that I can think of requires the attacker to
produce a new
CachedObject that has the same digest as one the server will accept (we
assume he can retrieve the server's CachedObjects). Thus, this is second
preimage.

2. As I understand the discussion, there were some concerns about the use
of a pure digest being weaker than the Finished messages. I think this is
unfounded.
Remember that in most cases the security of the handshake depends on second
preimage anyway, since a failure of 2nd preimage resistance implicates
certificates,
which are a much richer target.

3. It's actually not clear to me that the PRF is even equally strong here: I
would
have to think about it a bit, but it's not clear to me that PRFs actually
need to
exhibit 2nd preimage resistance when the key is known.

4. Tying the digest to the PRF is a problem because that depends on the
handshake
results which might not be the same for each handshake.


Accordingly, I propose the following:

1. The client offers one or more CachedObjects with any digests of his
choice.
2. If SignatureAlgorithms is offered (as required for TLS 1.2), those
digests MUST
    be in the associated HashAlgorithms (thus preserving the implicit
guarantee in
    point #1 above).

How does this sound to people?

-Ekr

--0016361e87ce1c67cc048cc4230e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div>As promised at the TLS WG meeting in Maastricht, here are my comments =
from</div><div>the mic about the nature of the digest in CachedObject:</div=
><div><br></div><div>1. The primary security property we are interested in =
here is second preimage</div>
<div>resistance. Any useful attack that I can think of requires the attacke=
r to produce a new</div><div>CachedObject that has the same digest as one t=
he server will accept (we</div><div>assume he can retrieve the server&#39;s=
 CachedObjects). Thus, this is second</div>
<div>preimage.</div><div><br></div><div>2. As I understand the discussion, =
there were some concerns about the use</div><div>of a pure digest being wea=
ker than the Finished messages. I think this is unfounded.</div><div>Rememb=
er that in most cases the security of the handshake depends on second</div>
<div>preimage anyway, since a failure of 2nd preimage resistance implicates=
 certificates,</div><div>which are a much richer target.</div><div><br></di=
v><div>3. It&#39;s actually not clear to me that the PRF is even equally st=
rong here: I would</div>
<div>have to think about it a bit, but it&#39;s not clear to me that PRFs a=
ctually need to=A0</div><div>exhibit 2nd preimage resistance when the key i=
s known.</div><div><br></div><div>4. Tying the digest to the PRF is a probl=
em because that depends on the handshake</div>
<div>results which might not be the same for each handshake.</div><div><br>=
</div><div><br></div><div>Accordingly, I propose the following:</div><div><=
br></div><div>1. The client offers one or more CachedObjects with any diges=
ts of his choice.</div>
<div>2. If SignatureAlgorithms is offered (as required for TLS 1.2), those =
digests MUST</div><div>=A0=A0 =A0be in the associated HashAlgorithms (thus =
preserving the implicit guarantee in</div><div>=A0=A0 =A0point #1 above).</=
div><div>
<br></div><div>How does this sound to people?</div><div><br></div><div>-Ekr=
</div><div><br></div><div><br></div>

--0016361e87ce1c67cc048cc4230e--

From 1.41421@gmail.com  Sun Aug  1 08:07:44 2010
Return-Path: <1.41421@gmail.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 61FA03A696F for <tls@core3.amsl.com>; Sun,  1 Aug 2010 08:07:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 6ZjsDMbyKltg for <tls@core3.amsl.com>; Sun,  1 Aug 2010 08:07:43 -0700 (PDT)
Received: from mail-qy0-f172.google.com (mail-qy0-f172.google.com [209.85.216.172]) by core3.amsl.com (Postfix) with ESMTP id 768E43A6969 for <tls@ietf.org>; Sun,  1 Aug 2010 08:07:43 -0700 (PDT)
Received: by qyk1 with SMTP id 1so4903914qyk.10 for <tls@ietf.org>; Sun, 01 Aug 2010 08:08:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=HT+6oBqA9AVE5GzG16MuJ81ANZLSkJMfucxNTnQtEfg=; b=Z7YTjDTMtQMJUvBt0E8FF1NmSgWaVCQhqxEYrI2JWe1DvySISmDj9wrEKH8nJFnCf+ hHPkcPE/RMB4CAABvatnwvZBYudrhWV4/P1zggiUx7/xZxcppZ4nM+ugMrFykrVYlLPx 2wHMVpRnAaybKW+obLVEF3guQ+qUMZk2t6rns=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=lhaxH988EowJq0AJEEAZ9QuF3JdoXTADp2U10C5rBRxz5HZoy0ZZARe0qyhUNaXzJn nH6UB+DztI++DZztSQmRdLvDvM+WtePOnWhz4eV4zc/8X/F7j/TPjhPAcIGU+EPZyt5X baeHolk0aNZX3jFKQop2eui8BkBqQIjsNPQCs=
MIME-Version: 1.0
Received: by 10.220.60.75 with SMTP id o11mr3182769vch.271.1280675289492; Sun,  01 Aug 2010 08:08:09 -0700 (PDT)
Received: by 10.220.73.80 with HTTP; Sun, 1 Aug 2010 08:08:09 -0700 (PDT)
Date: Sun, 1 Aug 2010 09:08:09 -0600
Message-ID: <AANLkTi=1rrGWPGn+numA=JxU69_yd=NcNfRpL3_vwO_V@mail.gmail.com>
From: JCA <1.41421@gmail.com>
To: tls@ietf.org
Content-Type: text/plain; charset=ISO-8859-1
Subject: [TLS] About the contents of Record Layers
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 01 Aug 2010 15:07:44 -0000

Does the TLS 1.* specs allow to send a Record Layer with an empty
body? That is, a Record Layer containing only the protocol ID, version
and length fields? I don't see why would anyone want to do that but,
is it legal?

From brian@briansmith.org  Sun Aug  1 09:35:25 2010
Return-Path: <brian@briansmith.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 3D3A73A6831 for <tls@core3.amsl.com>; Sun,  1 Aug 2010 09:35:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.565
X-Spam-Level: 
X-Spam-Status: No, score=-1.565 tagged_above=-999 required=5 tests=[AWL=1.034,  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 D6uhbB-gL+HD for <tls@core3.amsl.com>; Sun,  1 Aug 2010 09:35:21 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id B94E83A698A for <tls@ietf.org>; Sun,  1 Aug 2010 09:35:18 -0700 (PDT)
Received: from T60 (unknown [98.200.150.199]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 86D66509B4; Sun,  1 Aug 2010 12:35:31 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: <1.41421@gmail.com>, <tls@ietf.org>
References: <AANLkTi=1rrGWPGn+numA=JxU69_yd=NcNfRpL3_vwO_V@mail.gmail.com>
In-Reply-To: <AANLkTi=1rrGWPGn+numA=JxU69_yd=NcNfRpL3_vwO_V@mail.gmail.com>
Date: Sun, 1 Aug 2010 11:35:29 -0500
Message-ID: <002001cb3197$90ea0670$b2be1350$@briansmith.org>
X-Mailer: Microsoft Outlook 14.0
MIME-Version: 1.0
Thread-Index: AQJ3Ez1pwiLa2Idb6RGLIOyQq7ryOgKpN8AC
Content-Language: en-us
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_001B_01CB316D.A2A8D140"
Subject: Re: [TLS] About the contents of Record Layers
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 01 Aug 2010 16:35:26 -0000

This is a multipart message in MIME format.

------=_NextPart_000_001B_01CB316D.A2A8D140
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

With the current record types that are available, it is not legal:

1. All cipher suites except TLS_NULL_WITH_NULL_NULL add at least one byte of
overhead to each record.
2. Only application data records are allowed to be empty.
3. Application data records must never be sent with TLS_NULL_WITH_NULL_NULL.

However, in practice, zero-length records (at the plaintext or ciphertext
level) aren't useful thing to check in an implementation. Usually an
implementation will want to check ciphertext records' lengths against the
expected per-record-IV length + expected authentication tag/MAC length
instead.

Regards,
Brian

> -----Original Message-----
> From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf Of JCA
> Sent: Sunday, August 01, 2010 10:08 AM
> To: tls@ietf.org
> Subject: [TLS] About the contents of Record Layers
> 
> Does the TLS 1.* specs allow to send a Record Layer with an empty body?
That is,
> a Record Layer containing only the protocol ID, version and length fields?
I don't
> see why would anyone want to do that but, is it legal?
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls

------=_NextPart_000_001B_01CB316D.A2A8D140
Content-Type: application/pkcs7-signature;
	name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIQqDCCAj0w
ggGmAhEAzbp/VvDf5LxU/iKss3KqVTANBgkqhkiG9w0BAQIFADBfMQswCQYDVQQGEwJVUzEXMBUG
A1UEChMOVmVyaVNpZ24sIEluYy4xNzA1BgNVBAsTLkNsYXNzIDEgUHVibGljIFByaW1hcnkgQ2Vy
dGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNOTYwMTI5MDAwMDAwWhcNMjgwODAxMjM1OTU5WjBfMQsw
CQYDVQQGEwJVUzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xNzA1BgNVBAsTLkNsYXNzIDEgUHVi
bGljIFByaW1hcnkgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwgZ8wDQYJKoZIhvcNAQEBBQADgY0A
MIGJAoGBAOUZv22jVmEtmUhx9mfeuY3rt56GgAqRDvo4Ja9GiILlc6igmyRdDR/MZW4MsNBWhBiH
mgabEKFz37RYOWtuwfYV1aioP6oSBo0xrH+wNNePNGeICc0UEeJORVZpH3gCgNrcR5EpuzbJY1zF
4Ncth3uhtzKwezC6Ki8xqu6jZ9rbAgMBAAEwDQYJKoZIhvcNAQECBQADgYEATD+4i8Zo3+5DMw5d
6abLB4RNejP/khv0Nq3YlSI2aBFsfELM85wux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M6Ly93d3cudmVyaXNpZ24uY29tL3JwYSAoYykwNTEeMBwGA1UECxMVUGVy
c29uYSBOb3QgVmFsaWRhdGVkMTcwNQYDVQQDEy5WZXJpU2lnbiBDbGFzcyAxIEluZGl2aWR1YWwg
U3Vic2NyaWJlciBDQSAtIEcyAhBfRLZVRpgT0Jrg6mjN0UNJMA0GCSqGSIb3DQEBAQUABIIBAAE8
Z0QP/D0nwgEmxyhJffISyezwNNF/6nPAXtmkPCuP/ImTzjDUG0MOp1vmIWopI6uSWC+SmxpPyi6Q
Z5n1M+VkPM5XGCY4NaOrLDbTi6z+Xb53fdxWFngJTktLcAAMkrJNLZPKe9gtcDal7DMTbfr0tROr
jpztj9++C8M83vsL3vJ7NDrKdZhPlJIuYfg1fwodPBuDn/HinZDZzDw4YP4WvbaDU1PbUejTm2dx
0Ju9FHSpVhI8u3VMbl6I+KxdVqhDzU1bLWWUMob7brgxz9N4S7QMCAZpXHpAt4em1Nhx+y9El73H
qo2Je3fYHsXbKNNysoK+T69GEuDuJQJwW84AAAAAAAA=

------=_NextPart_000_001B_01CB316D.A2A8D140--


From juhovh@iki.fi  Sun Aug  1 09:42:28 2010
Return-Path: <juhovh@iki.fi>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id F0A033A6993 for <tls@core3.amsl.com>; Sun,  1 Aug 2010 09:42:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.299
X-Spam-Level: 
X-Spam-Status: No, score=-2.299 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, 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 rxr6cMaAguXk for <tls@core3.amsl.com>; Sun,  1 Aug 2010 09:42:27 -0700 (PDT)
Received: from smtp-3.tky.hut.fi (smtp03.tky.fi [82.130.63.73]) by core3.amsl.com (Postfix) with SMTP id A7E5F3A6831 for <tls@ietf.org>; Sun,  1 Aug 2010 09:42:26 -0700 (PDT)
Received: from smtp.vaha-herttua.fi ([82.130.46.36]) by smtp-3.tky.hut.fi (SMSSMTP 4.1.9.35) with SMTP id M2010080119425023165 ; Sun, 01 Aug 2010 19:42:50 +0300
Received: from vagabond.lan (qer2.kyla.fi [82.130.46.10]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.vaha-herttua.fi (Postfix) with ESMTPSA id 75EBA20096; Sun,  1 Aug 2010 19:43:04 +0300 (EEST)
Mime-Version: 1.0 (Apple Message framework v1081)
Content-Type: multipart/signed; boundary=Apple-Mail-1--421424628; protocol="application/pkcs7-signature"; micalg=sha1
From: =?iso-8859-1?Q?Juho_V=E4h=E4-Herttua?= <juhovh@iki.fi>
In-Reply-To: <AANLkTi=1rrGWPGn+numA=JxU69_yd=NcNfRpL3_vwO_V@mail.gmail.com>
Date: Sun, 1 Aug 2010 19:42:49 +0300
Message-Id: <AFBE0D66-F4C9-4E81-B53D-C2B1039CF35E@iki.fi>
References: <AANLkTi=1rrGWPGn+numA=JxU69_yd=NcNfRpL3_vwO_V@mail.gmail.com>
To: JCA <1.41421@gmail.com>
X-Mailer: Apple Mail (2.1081)
Cc: tls@ietf.org
Subject: Re: [TLS] About the contents of Record Layers
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 01 Aug 2010 16:42:28 -0000

--Apple-Mail-1--421424628
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 1.8.2010, at 18.08, JCA wrote:
> Does the TLS 1.* specs allow to send a Record Layer with an empty
> body? That is, a Record Layer containing only the protocol ID, version
> and length fields? I don't see why would anyone want to do that but,
> is it legal?

The specification seems to be quite clear about this, in TLS 1.0:

6.2.  Record Layer

   The TLS record layer receives uninterpreted data from higher layers
   in non-empty blocks of arbitrary size.

...and clarified in TLS 1.2...

   Implementations MUST NOT send zero-length fragments of Handshake,
   Alert, or ChangeCipherSpec content types.  Zero-length fragments of
   Application data MAY be sent as they are potentially useful as a
   traffic analysis countermeasure.

So in case of application data they can be sent, in reality I would do =
serious testing with existing implementations to see how they behave. If =
they are TLS 1.2 compliant and negotiate a TLS 1.2 connection they =
should all accept the empty records though.


Juho


--Apple-Mail-1--421424628
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIMyjCCBjQw
ggQcoAMCAQICAR4wDQYJKoZIhvcNAQEFBQAwfTELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0
Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNpZ25pbmcxKTAn
BgNVBAMTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA3MTAyNDIxMDE1NVoX
DTE3MTAyNDIxMDE1NVowgYwxCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1TdGFydENvbSBMdGQuMSsw
KQYDVQQLEyJTZWN1cmUgRGlnaXRhbCBDZXJ0aWZpY2F0ZSBTaWduaW5nMTgwNgYDVQQDEy9TdGFy
dENvbSBDbGFzcyAxIFByaW1hcnkgSW50ZXJtZWRpYXRlIENsaWVudCBDQ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DxcNMTAwODAxMTY0MjUwWjAjBgkqhkiG9w0BCQQxFgQUw3JW98X3UUvWDY8ffV3v
XYLin/EwgaUGCSsGAQQBgjcQBDGBlzCBlDCBjDELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0
Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNpZ25pbmcxODA2
BgNVBAMTL1N0YXJ0Q29tIENsYXNzIDEgUHJpbWFyeSBJbnRlcm1lZGlhdGUgQ2xpZW50IENBAgMB
aQQwgacGCyqGSIb3DQEJEAILMYGXoIGUMIGMMQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRD
b20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwgQ2VydGlmaWNhdGUgU2lnbmluZzE4MDYG
A1UEAxMvU3RhcnRDb20gQ2xhc3MgMSBQcmltYXJ5IEludGVybWVkaWF0ZSBDbGllbnQgQ0ECAwFp
BDANBgkqhkiG9w0BAQEFAASCAQBhGXn6+eG47zoWquiBzFkE2fBmyFquc5zIt7jXK8zcUXVzVtPK
90VKelHCpbWmcVcZAoPCjCYZNaZktmXABM4cmKGX6XWkQbsy7T9lL5Dx9UOpe1zyH6E4fQ3vUxjo
WqQYxBTOqeNXEvcflIlRdxl1bWfEGFILqz7k5ZodQfSDh6KgsXXzLLV/YYsyoTOAKn2Dnummv9YY
6NYCroKf2xAs5wYse2GNr08HLzIgrRBxe2VB99tNMDLngmUrS2sP0VyGt7tpKyVYpa43gpR4utzj
I+YjJTxqesH+t5t92T9TgNDIPNUS96jwVUFS9dBAIMRSzV0VKgWPML4i6TQP/8lIAAAAAAAA

--Apple-Mail-1--421424628--

From juhovh@iki.fi  Sun Aug  1 09:46:41 2010
Return-Path: <juhovh@iki.fi>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id CF7B63A6961 for <tls@core3.amsl.com>; Sun,  1 Aug 2010 09:46:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.299
X-Spam-Level: 
X-Spam-Status: No, score=-2.299 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, 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 clX03rurgHW3 for <tls@core3.amsl.com>; Sun,  1 Aug 2010 09:46:39 -0700 (PDT)
Received: from smtp-3.tky.hut.fi (smtp03.tky.fi [82.130.63.73]) by core3.amsl.com (Postfix) with SMTP id 716E63A68DB for <tls@ietf.org>; Sun,  1 Aug 2010 09:46:38 -0700 (PDT)
Received: from smtp.vaha-herttua.fi ([82.130.46.36]) by smtp-3.tky.hut.fi (SMSSMTP 4.1.9.35) with SMTP id M2010080119470023329 ; Sun, 01 Aug 2010 19:47:00 +0300
Received: from vagabond.lan (qer2.kyla.fi [82.130.46.10]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.vaha-herttua.fi (Postfix) with ESMTPSA id AA1D420096; Sun,  1 Aug 2010 19:47:14 +0300 (EEST)
Mime-Version: 1.0 (Apple Message framework v1081)
Content-Type: multipart/signed; boundary=Apple-Mail-2--421173679; protocol="application/pkcs7-signature"; micalg=sha1
From: =?iso-8859-1?Q?Juho_V=E4h=E4-Herttua?= <juhovh@iki.fi>
In-Reply-To: <002001cb3197$90ea0670$b2be1350$@briansmith.org>
Date: Sun, 1 Aug 2010 19:47:00 +0300
Message-Id: <730977F8-0DD6-4409-8221-63A8D80AB4BD@iki.fi>
References: <AANLkTi=1rrGWPGn+numA=JxU69_yd=NcNfRpL3_vwO_V@mail.gmail.com> <002001cb3197$90ea0670$b2be1350$@briansmith.org>
To: "Brian Smith" <brian@briansmith.org>
X-Mailer: Apple Mail (2.1081)
Cc: 1.41421@gmail.com, tls@ietf.org
Subject: Re: [TLS] About the contents of Record Layers
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 01 Aug 2010 16:46:42 -0000

--Apple-Mail-2--421173679
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 1.8.2010, at 19.35, Brian Smith wrote:
> With the current record types that are available, it is not legal:
>=20
> 1. All cipher suites except TLS_NULL_WITH_NULL_NULL add at least one =
byte of
> overhead to each record.
> 2. Only application data records are allowed to be empty.
> 3. Application data records must never be sent with =
TLS_NULL_WITH_NULL_NULL.

Good point with not allowing application data records with null cipher =
suites, so it doesn't really work.


Juho


--Apple-Mail-2--421173679
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIMyjCCBjQw
ggQcoAMCAQICAR4wDQYJKoZIhvcNAQEFBQAwfTELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0
Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNpZ25pbmcxKTAn
BgNVBAMTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA3MTAyNDIxMDE1NVoX
DTE3MTAyNDIxMDE1NVowgYwxCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1TdGFydENvb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

From 1.41421@gmail.com  Sun Aug  1 10:01:21 2010
Return-Path: <1.41421@gmail.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B32F63A6964 for <tls@core3.amsl.com>; Sun,  1 Aug 2010 10:01:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.545
X-Spam-Level: 
X-Spam-Status: No, score=-0.545 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.3, MIME_BASE64_TEXT=1.753]
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 c8IsBrjO+CRP for <tls@core3.amsl.com>; Sun,  1 Aug 2010 10:01:20 -0700 (PDT)
Received: from mail-gw0-f70.google.com (mail-gw0-f70.google.com [74.125.83.70]) by core3.amsl.com (Postfix) with ESMTP id 0986C3A69AA for <tls@ietf.org>; Sun,  1 Aug 2010 10:00:24 -0700 (PDT)
Received: by gwb1 with SMTP id 1so4657840gwb.1 for <tls@ietf.org>; Sun, 01 Aug 2010 10:00:51 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.100.110.4 with SMTP id i4mr2875130anc.4.1280682051675; Sun, 01  Aug 2010 10:00:51 -0700 (PDT)
In-Reply-To: <AFBE0D66-F4C9-4E81-B53D-C2B1039CF35E@iki.fi>
Message-ID: <0016e645abb0c2aae1048cc6067a@google.com>
Date: Sun, 01 Aug 2010 17:00:51 +0000
From: 1.41421@gmail.com
To: =?ISO-8859-1?Q?Juho_V=E4h=E4=2DHerttua?= <juhovh@iki.fi>
Content-Type: multipart/alternative; boundary=0016e645abb0c2aace048cc60677
Cc: tls@ietf.org
Subject: Re: [TLS] About the contents of Record Layers
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 01 Aug 2010 17:01:21 -0000

--0016e645abb0c2aace048cc60677
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes
Content-Transfer-Encoding: base64

TXkgdGhhbmtzIEp1aG8gYW5kIEJyaWFuIGZvciB5b3VyIGZlZWRiYWNrLiBPbiBhIHNpbWlsYXIg
dG9waWMsIG15ICANCnVuZGVyc3RhbmRpbmcgaXMgdGhhdCBhIFJlY29yZCBMYXllciBjYW4gZW5j
YXBzdWxhdGUgc2V2ZXJhbCBwcm90b2NvbCAgDQptZXNzYWdlcywgYWxsIG9mIHRoZW0gYmVsb25n
aW5nIHRvIHRoZSBzYW1lIHByb3RvY29sLiBUaGlzIG1ha2VzIHNlbnNlIGZvciAgDQpBbGVydCBh
bmQgSGFuZHNoYWtlIHByb3RvY29sIG1lc3NhZ2VzLCBmb3IgdGhleSBjb250YWluIGFsbCB0aGUg
aW5mb3JtYXRpb24gIA0KbmVjZXNzYXJ5IHRvIGZpbmQgb3V0IHdoZXJlIHByb3RvY29sIG1lc3Nh
Z2VzIG9mIHRob3NlIHR5cGVzIGVuZCAod2hpY2ggbWF5ICANCmhhcHBlbiBvbmx5IGFmdGVyIG1h
bnkgUmVjb3JkIExheWVycyBoYXZlIGJlZW4gcmVjZWl2ZWQuKSBUaGUgc2FtZSBhcHBsaWVzICAN
CnRvIENoYW5nZUNpcGhlclNwZWMgbWVzc2FnZXMsIGFsYmVpdCBJIGRvIG5vdCB1bmRlcnN0YW5k
IHdoeSBvbmUgd291bGQgd2FudCAgDQp0by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c2Ugb2YgYXBwbGljYXRp
b24gZGF0YSB0aGV5IGNhbiBiZSBzZW50LCBpbiByZWFsaXR5IEkgd291bGQgZG8gIA0KPiBzZXJp
b3VzIHRlc3Rpbmcgd2l0aCBleGlzdGluZyBpbXBsZW1lbnRhdGlvbnMgdG8gc2VlIGhvdyB0aGV5
IGJlaGF2ZS4gSWYgIA0KPiB0aGV5IGFyZSBUTFMgMS4yIGNvbXBsaWFudCBhbmQgbmVnb3RpYXRl
IGEgVExTIDEuMiBjb25uZWN0aW9uIHRoZXkgc2hvdWxkICANCj4gYWxsIGFjY2VwdCB0aGUgZW1w
dHkgcmVjb3JkcyB0aG91Z2guDQoNCg0KDQoNCg0KPiBKdWhvDQoNCg0KDQo=
--0016e645abb0c2aace048cc60677
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

My thanks Juho and Brian for your feedback. On a similar topic, my understa=
nding is that a Record Layer can encapsulate several protocol messages, all=
 of them belonging to the same protocol. This makes sense for Alert and Han=
dshake protocol messages, for they contain all the information necessary to=
 find out where protocol messages of those types end (which may happen only=
 after many Record Layers have been received.) The same applies to ChangeCi=
pherSpec messages, albeit I do not understand why one would want to encapsu=
late more than one such message in a Record Layer. Now what about Applicati=
on data messages? I believe that as far as TLS is concerned these messages =
are just blobs of data; i.e. it&#39;s beyond the scope of TLS to know where=
 they end. Thus, is it not the case that a Record Layer can contain one, an=
d only one, Application data message? Obviously, the application can spread=
 its data over many Record Layers, but when TLS receives a Record Layer wit=
h Application data it automatically knows that the whole of the Record Laye=
r&#39;s payload is a single, structure-less (as far as TLS is concerned) st=
ring of bytes. Is this a correct assessment?<br /><br /><br />On Aug 1, 201=
0 10:42am, Juho V=E4h=E4-Herttua &lt;juhovh@iki.fi&gt; wrote:<br />&gt; On =
1.8.2010, at 18.08, JCA wrote:<br />&gt; <br />&gt; &gt; Does the TLS 1.* s=
pecs allow to send a Record Layer with an empty<br />&gt; <br />&gt; &gt; b=
ody? That is, a Record Layer containing only the protocol ID, version<br />=
&gt; <br />&gt; &gt; and length fields? I don&#39;t see why would anyone wa=
nt to do that but,<br />&gt; <br />&gt; &gt; is it legal?<br />&gt; <br />&=
gt; <br />&gt; <br />&gt; The specification seems to be quite clear about t=
his, in TLS 1.0:<br />&gt; <br />&gt; <br />&gt; <br />&gt; 6.2. =A0Record =
Layer<br />&gt; <br />&gt; <br />&gt; <br />&gt;  =A0 The TLS record layer =
receives uninterpreted data from higher layers<br />&gt; <br />&gt;  =A0 in=
 non-empty blocks of arbitrary size.<br />&gt; <br />&gt; <br />&gt; <br />=
&gt; ...and clarified in TLS 1.2...<br />&gt; <br />&gt; <br />&gt; <br />&=
gt;  =A0 Implementations MUST NOT send zero-length fragments of Handshake,<=
br />&gt; <br />&gt;  =A0 Alert, or ChangeCipherSpec content types. =A0Zero=
-length fragments of<br />&gt; <br />&gt;  =A0 Application data MAY be sent=
 as they are potentially useful as a<br />&gt; <br />&gt;  =A0 traffic anal=
ysis countermeasure.<br />&gt; <br />&gt; <br />&gt; <br />&gt; So in case =
of application data they can be sent, in reality I would do serious testing=
 with existing implementations to see how they behave. If they are TLS 1.2 =
compliant and negotiate a TLS 1.2 connection they should all accept the emp=
ty records though.<br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; <b=
r />&gt; Juho<br />&gt; <br />&gt; <br />&gt;
--0016e645abb0c2aace048cc60677--

From mike-list@pobox.com  Sun Aug  1 11:09:16 2010
Return-Path: <mike-list@pobox.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 3DD273A690F for <tls@core3.amsl.com>; Sun,  1 Aug 2010 11:09:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 3e0ZILxeK8Uj for <tls@core3.amsl.com>; Sun,  1 Aug 2010 11:09:14 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id C88393A68B1 for <tls@ietf.org>; Sun,  1 Aug 2010 11:09:14 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id F0970C92F3; Sun,  1 Aug 2010 14:09:40 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=NJGsbdpN/Bs7 Rrux6Y33Ul6L5/w=; b=mt8EDTOo82TPJo0ElYtalSH2XEEs1Ml9NESNhG6HpqO3 /jijbYlFjx4SnmN5LSESfQ+81wbXbx0XFumW28lTk1HuTbSHb93IDEOYX0UEw4hs AglY1sWhUlUZsBbIMbpPRL9KH6Mn9e5LHy+nNOBcT/7mxIGlnGFJP1LH4pAIpIo=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=g/YR/v LKIwTFaIX0ds/pVmxaLzNYZk9iB6M9FIj79M5ApSv9YHfZGCxzhLKiecDMyAflu1 O3V0XOrkENCvluHMX9SIcSLCl2Rqrx0foQEl+73ttGesCg0cNSvSpKUy0zOMzEEU UkqR4eOnzoLbRFbLjTFcWCFapJo52Dw7DWVOY=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id DCFBFC92F1; Sun,  1 Aug 2010 14:09:39 -0400 (EDT)
Received: from MacBookPro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 4263CC92F0; Sun,  1 Aug 2010 14:09:38 -0400 (EDT)
Message-ID: <4C55B861.7040602@pobox.com>
Date: Sun, 01 Aug 2010 11:09:37 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: 1.41421@gmail.com
References: <0016e645abb0c2aae1048cc6067a@google.com>
In-Reply-To: <0016e645abb0c2aae1048cc6067a@google.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: F3B52A5C-9D97-11DF-8E04-9056EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] About the contents of Record Layers
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 01 Aug 2010 18:09:16 -0000

2^(1/2):

You are correct that application data is just a blob that is passed on to
the application.  It is not processed by the TLS "layer" at all, other
than to decrypt it and verify its integrity.

Multiple handshake messages can be combined into one record, or a single
handshake message may span multiple records.  Handling this can be tricky.

Usually only one alert message will be sent over a connection in each
direction, but you have to be prepared to receive several, even in the
same record.  You should also be prepared to receive just the AlertLevel
byte in one record and the AlertDescription in another.

Change cipher spec messages only make sense at specific places in the
handshake message sequence, so you should never receive more than one in
a single record.  If you do receive more than one, it is an error.

Mike



1.41421@gmail.com wrote:
> My thanks Juho and Brian for your feedback. On a similar topic, my 
> understanding is that a Record Layer can encapsulate several protocol 
> messages, all of them belonging to the same protocol. This makes sense 
> for Alert and Handshake protocol messages, for they contain all the 
> information necessary to find out where protocol messages of those types 
> end (which may happen only after many Record Layers have been received.) 
> The same applies to ChangeCipherSpec messages, albeit I do not 
> understand why one would want to encapsulate more than one such message 
> in a Record Layer. Now what about Application data messages? I believe 
> that as far as TLS is concerned these messages are just blobs of data; 
> i.e. it's beyond the scope of TLS to know where they end. Thus, is it 
> not the case that a Record Layer can contain one, and only one, 
> Application data message? Obviously, the application can spread its data 
> over many Record Layers, but when TLS receives a Record Layer with 
> Application data it automatically knows that the whole of the Record 
> Layer's payload is a single, structure-less (as far as TLS is concerned) 
> string of bytes. Is this a correct assessment?

From yngve@opera.com  Mon Aug  2 06:32:10 2010
Return-Path: <yngve@opera.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E385A3A6AE4; Mon,  2 Aug 2010 06:32:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.299
X-Spam-Level: 
X-Spam-Status: No, score=-5.299 tagged_above=-999 required=5 tests=[AWL=-1.300, BAYES_50=0.001, RCVD_IN_DNSWL_MED=-4]
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 qEhmm6uCPyW8; Mon,  2 Aug 2010 06:32:08 -0700 (PDT)
Received: from smtp.opera.com (smtp.opera.com [213.236.208.81]) by core3.amsl.com (Postfix) with ESMTP id D5A6D3A68ED; Mon,  2 Aug 2010 06:32:01 -0700 (PDT)
Received: from killashandra.oslo.osa (pat-tdc.opera.com [213.236.208.22]) by smtp.opera.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o72DWCtG001599 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 2 Aug 2010 13:32:13 GMT
Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes
To: agl@google.com, "Brian Smith" <brian@briansmith.org>
References: <op.u87n4tthqrq7tp@acorna> <op.vghzp61ivqd7e2@killashandra.oslo.osa> <AANLkTikh0EL0DygFFKC8L-Z406C_HsfatVSbti_Ur9x9@mail.gmail.com> <002101cb2e98$60d77230$22865690$@briansmith.org>
Date: Mon, 02 Aug 2010 15:31:42 +0200
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
From: "Yngve Nysaeter Pettersen" <yngve@opera.com>
Organization: Opera Software
Message-ID: <op.vgtbu4wmvqd7e2@killashandra.oslo.osa>
In-Reply-To: <002101cb2e98$60d77230$22865690$@briansmith.org>
User-Agent: Opera Mail/10.54 (Win32)
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] New version of Multiple OCSP mode of Certificate Status extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: yngve@opera.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Aug 2010 13:32:11 -0000

On Wed, 28 Jul 2010 23:03:44 +0200, Brian Smith <brian@briansmith.org>  
wrote:

> Adam Langley wrote:
>> On Tue, Jul 27, 2010 at 6:35 AM, Yngve Nysaeter Pettersen
>> <yngve@opera.com> wrote:
>> > Based on the ongoing PKIX discussion about an update of OCSP, I
>> > (finally) realized the the problem my multiple-ocsp TLS extension is
>> > designed to fix can be fixed in another way, by adding an OCSP
>> > extension instead.
>>
>> I would welcome not having to change TLS to support multiple
>> OCSP responses.
>>
>> However, with TLS changes, we can deploy without any action on
>> the part of the OCSP responders. That makes it a possibility. If we
>> are beholden to updating the responders then I fear that it'll never
>> happen.
>
> Plus, it is a privacy issue. If you rely on the CAs to provide this
> extension in their OCSP responses, then any CAs that want OCSP traffic  
> (for
> user tracking) can just omit the OCSP extension. The multiple OCSP method
> lets the server improve the user's privacy without any cooperation from  
> the
> CAs involved.

This issue will not be any different from the current situation; When they  
check OCSP, clients only check the site certificate. If they check  
revocation for intermediates they use CRLs. In fact, for Opera's part, we  
retrieve CRLs while verifying the certificate, OCSP after the certificate  
has been checked, so CRLs are more "dangerous" from that perspective.

As for your MITM scenario, if the intention is to detect which computers  
access a certain site, then the attacker will already have that  
information when he performs the MITM attack.

Opera does not send or accept cookies in OCSP/CRL requests, so there would  
be no extra information available.

> (Most TLS clients issue their OCSP requests before they've
> authenticated the server's Certificate and (lack of) CertificateStatus
> messages, so while a CA wouldn't be able to force clients to make the  
> OCSP
> requests, a MiTM can still force them to do so. This could be prevented
> by moving the CertificateStatus and CertificateRequest before the
> ServerKeyExchange, and making the ServerKeyExchange signature work like  
> the
> CertificateVerify signature, hashing all the prior handshake messages.  
> This
> is something that should be considered for extensions like Snap Start  
> that
> modify the structure of the handshake, and for the next versions of TLS).
>
> Regards,
> Brian
>


-- 
Sincerely,
Yngve N. Pettersen
********************************************************************
Senior Developer		     Email: yngve@opera.com
Opera Software ASA                   http://www.opera.com/
Phone:  +47 23 69 32 60              Fax:    +47 23 69 24 01
********************************************************************

From 1.41421@gmail.com  Mon Aug  2 08:36:55 2010
Return-Path: <1.41421@gmail.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 2D4723A696F for <tls@core3.amsl.com>; Mon,  2 Aug 2010 08:36:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 1sIg9x4lrBfY for <tls@core3.amsl.com>; Mon,  2 Aug 2010 08:36:54 -0700 (PDT)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by core3.amsl.com (Postfix) with ESMTP id D1B2E3A696C for <tls@ietf.org>; Mon,  2 Aug 2010 08:36:53 -0700 (PDT)
Received: by vws10 with SMTP id 10so2158053vws.31 for <tls@ietf.org>; Mon, 02 Aug 2010 08:37:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=2R5rdqFjwF7fcplu/XMuk+T2bSS9477QcQ5llr/x99Q=; b=X7LKuug5KvGPNoS0kqbAg9a6Ai4ILyNKVsc4INmrUB2ZBlYdJLteXJGCR0lsMI+NF6 RD1ZHl6YADyu/9nS2BEBhH+uc39EctcjfVOehPzoaGbwtkYh9Qbq+eajD4/TAz1CQVeW crrcMC3ShIfCiR6HVVkUIQLGd5TvOI1/yBLII=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=c8X0LeZUGcTnMC7kRMF9wNpFI/+MlG8d0UAa8WvAN2q/JbAZyF9JfcOLOaCGlJcIcu IagQmXf6JayUXlr7pGhoCmpFSnJ1h5ZnJuwSbhnQFWFOXw4tE0cbEU5g65uO3OegsUdK /pZzN7COMdzHy38wD/d2dt7At5LnOVBw786Cw=
MIME-Version: 1.0
Received: by 10.220.60.204 with SMTP id q12mr4349057vch.160.1280763440730;  Mon, 02 Aug 2010 08:37:20 -0700 (PDT)
Received: by 10.220.73.80 with HTTP; Mon, 2 Aug 2010 08:37:20 -0700 (PDT)
Date: Mon, 2 Aug 2010 09:37:20 -0600
Message-ID: <AANLkTikVyJAdS1MW791Naqf8_U7FWW+uhQ3j1DzBEc50@mail.gmail.com>
From: JCA <1.41421@gmail.com>
To: tls@ietf.org
Content-Type: text/plain; charset=ISO-8859-1
Subject: [TLS] Still more on Record Layers
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Aug 2010 15:36:55 -0000

   I am somewhat confused about the meaning of the length field in a
Record Layer. I believe that when the protocol messages, MAC and
padding (if any) are encrypted in a Record Layer, the length field
contains the length in bytes of this encrypted blob (otherwise I guess
it would be difficult to determine when a Record Layer being received
ends.) Now it would seem that with the exception of the
TLS_NULL_WITH_NULL_NULL cipher suite (which seems to be equivalent to
what happens during the initial handshake, where no cryptographic
cipher suite has been agreed on yet) if you have encryption you
necessarily have MAC, but you can have MAC without encryption. What
does the Record Layer length field contain in the latter case? Is it
the length of the (unencrypted) encapsulated protocol messages alone,
or the sum of this plus the length of the MAC?

From pgut001@cs.auckland.ac.nz  Mon Aug  2 09:26:13 2010
Return-Path: <pgut001@cs.auckland.ac.nz>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 424903A68B0; Mon,  2 Aug 2010 09:26:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.07
X-Spam-Level: 
X-Spam-Status: No, score=-3.07 tagged_above=-999 required=5 tests=[AWL=0.529,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 kjYtvvbyfslS; Mon,  2 Aug 2010 09:26:11 -0700 (PDT)
Received: from mx2-int.auckland.ac.nz (mx2-int.auckland.ac.nz [130.216.12.41]) by core3.amsl.com (Postfix) with ESMTP id 7C4C73A6BE7; Mon,  2 Aug 2010 09:26:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=pgut001@cs.auckland.ac.nz; q=dns/txt; s=uoa; t=1280766400; x=1312302400; h=from:to:subject:cc:in-reply-to:message-id:date; z=From:=20Peter=20Gutmann=20<pgut001@cs.auckland.ac.nz> |To:=20yngve@opera.com|Subject:=20Re:=20[TLS]=20New=20ver sion=20of=20Multiple=20OCSP=20mode=20of=20Certificate=20S tatus=20extension|Cc:=20pkix@ietf.org,=20tls@ietf.org |In-Reply-To:=20<op.vgtbu4wmvqd7e2@killashandra.oslo.osa> |Message-Id:=20<E1OfxqR-00006L-FJ@wintermute02.cs.aucklan d.ac.nz>|Date:=20Tue,=2003=20Aug=202010=2004:26:31=20+120 0; bh=vAP92277v3EUHr16VRP8vQNsBgZo1qU5u1XXcPgbRgM=; b=RH6ta29snzNf3qc3JYa1vJXAbFq65/11kjGIrzFJtHlwpa07kijp/e8e YHgGD02fV2uvD9xPZ5ggbh9w6Nw4RR+bf0w0ExhJ/uW6coITSwybmUsyg iY/Ho664mLPG0jV01QQ5XpppTAR05Qvm1MwpW27vAeyheljcgBJn8mIky s=;
X-IronPort-AV: E=Sophos;i="4.55,303,1278244800"; d="scan'208";a="18767536"
X-Ironport-HAT: UNIVERSITY - $RELAY-THROTTLE
X-Ironport-Source: 130.216.207.92 - Outgoing - Outgoing
Received: from wintermute02.cs.auckland.ac.nz ([130.216.207.92]) by mx2-int.auckland.ac.nz with ESMTP/TLS/AES256-SHA; 03 Aug 2010 04:26:32 +1200
Received: from pgut001 by wintermute02.cs.auckland.ac.nz with local (Exim 4.69) (envelope-from <pgut001@cs.auckland.ac.nz>) id 1OfxqR-00006L-FJ; Tue, 03 Aug 2010 04:26:31 +1200
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: yngve@opera.com
In-Reply-To: <op.vgtbu4wmvqd7e2@killashandra.oslo.osa>
Message-Id: <E1OfxqR-00006L-FJ@wintermute02.cs.auckland.ac.nz>
Date: Tue, 03 Aug 2010 04:26:31 +1200
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] New version of Multiple OCSP mode of Certificate Status extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Aug 2010 16:26:13 -0000

"Yngve Nysaeter Pettersen" <yngve@opera.com> writes:

>This issue will not be any different from the current situation; When they
>check OCSP, clients only check the site certificate. If they check revocation
>for intermediates they use CRLs. In fact, for Opera's part, we retrieve CRLs
>while verifying the certificate, OCSP after the certificate has been checked,
>so CRLs are more "dangerous" from that perspective.

Just out of interest, is this a pure performance optimisation, or a tacit 
recognition of the fact that no public CA cert has ever been revoked no matter 
how negligently the CA has behaved [0] (and it's unlikely that one ever will 
because the collateral damage incurred makes it politically untenable), 
therefore there's no need to spend too much time on revocation checks?

What do other implementations do?  Does anyone check CA certs for revocation
when they process a cert chain?

Peter.

[0] At least as of a few months ago.


From brian@briansmith.org  Mon Aug  2 09:29:02 2010
Return-Path: <brian@briansmith.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 14B5E3A698E for <tls@core3.amsl.com>; Mon,  2 Aug 2010 09:29:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.7
X-Spam-Level: 
X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[AWL=0.040, BAYES_20=-0.74]
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 iK+1EmIzTNZZ for <tls@core3.amsl.com>; Mon,  2 Aug 2010 09:29:00 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 2C4953A6960 for <tls@ietf.org>; Mon,  2 Aug 2010 09:29:00 -0700 (PDT)
Received: from T60 (unknown [98.200.150.199]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 3A6ED509DD; Mon,  2 Aug 2010 12:29:21 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: <1.41421@gmail.com>, <tls@ietf.org>
References: <AANLkTikVyJAdS1MW791Naqf8_U7FWW+uhQ3j1DzBEc50@mail.gmail.com>
In-Reply-To: <AANLkTikVyJAdS1MW791Naqf8_U7FWW+uhQ3j1DzBEc50@mail.gmail.com>
Date: Mon, 2 Aug 2010 11:29:18 -0500
Message-ID: <006e01cb325f$de61e2b0$9b25a810$@briansmith.org>
X-Mailer: Microsoft Outlook 14.0
MIME-Version: 1.0
Thread-Index: AQFehJhkmsMYjgD3P3g6YCxFpR4dPwFw24rW
Content-Language: en-us
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_0069_01CB3235.EFC63170"
Subject: Re: [TLS] Still more on Record Layers
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Aug 2010 16:29:02 -0000

This is a multipart message in MIME format.

------=_NextPart_000_0069_01CB3235.EFC63170
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

JCA wrote:
> If you have encryption you necessarily have MAC,

Or an authentication tag, for AEAD cipher suites

> but you can have MAC without encryption. What does the Record
> Layer length field contain in the latter case? Is it the length of the
> (unencrypted) encapsulated protocol messages alone, or the sum
> of this plus the length of the MAC?

It is treated exactly the same as the stream cipher (e.g. RC4) case, and
that is why it is described in the same section. Think of NULL encryption as
a stream cipher that always produces zeros.

I think many of your questions can be answered by examining the code of one
of the many existing open-source implementations such as GnuTLS or OpenSSL.
(The code of NSS's libssl is perhaps less clear in how it deals with the
record layer as it is kind of obfuscated with optimizations, and also
contains some subtle bugs in how it checks the length of the record against
the various limits that the specification imposes.)

Regards,
Brian

------=_NextPart_000_0069_01CB3235.EFC63170
Content-Type: application/pkcs7-signature;
	name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIQqDCCAj0w
ggGmAhEAzbp/VvDf5LxU/iKss3KqVTANBgkqhkiG9w0BAQIFADBfMQswCQYDVQQGEwJVUzEXMBUG
A1UEChMOVmVyaVNpZ24sIEluYy4xNzA1BgNVBAsTLkN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cZHf7hIBgyqL074BAzpzkRT3+f5d8AAAAAAAA=

------=_NextPart_000_0069_01CB3235.EFC63170--


From yngve@opera.com  Mon Aug  2 09:45:26 2010
Return-Path: <yngve@opera.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 2A1173A6950; Mon,  2 Aug 2010 09:45:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.949
X-Spam-Level: 
X-Spam-Status: No, score=-5.949 tagged_above=-999 required=5 tests=[AWL=0.650,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 2PcpIyRithZw; Mon,  2 Aug 2010 09:45:25 -0700 (PDT)
Received: from smtp.opera.com (smtp.opera.com [213.236.208.81]) by core3.amsl.com (Postfix) with ESMTP id D263C3A67E7; Mon,  2 Aug 2010 09:45:24 -0700 (PDT)
Received: from killashandra.oslo.osa (pat-tdc.opera.com [213.236.208.22]) by smtp.opera.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o72Gjhvp015749 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 2 Aug 2010 16:45:45 GMT
Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes
To: "Peter Gutmann" <pgut001@cs.auckland.ac.nz>
References: <E1OfxqR-00006L-FJ@wintermute02.cs.auckland.ac.nz>
Date: Mon, 02 Aug 2010 18:45:13 +0200
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
From: "Yngve Nysaeter Pettersen" <yngve@opera.com>
Organization: Opera Software
Message-ID: <op.vgtktnagvqd7e2@killashandra.oslo.osa>
In-Reply-To: <E1OfxqR-00006L-FJ@wintermute02.cs.auckland.ac.nz>
User-Agent: Opera Mail/10.54 (Win32)
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] New version of Multiple OCSP mode of Certificate Status extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: yngve@opera.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Aug 2010 16:45:26 -0000

On Mon, 02 Aug 2010 18:26:31 +0200, Peter Gutmann  
<pgut001@cs.auckland.ac.nz> wrote:

> "Yngve Nysaeter Pettersen" <yngve@opera.com> writes:
>
>> This issue will not be any different from the current situation; When  
>> they
>> check OCSP, clients only check the site certificate. If they check  
>> revocation
>> for intermediates they use CRLs. In fact, for Opera's part, we retrieve  
>> CRLs
>> while verifying the certificate, OCSP after the certificate has been  
>> checked,
>> so CRLs are more "dangerous" from that perspective.
>
> Just out of interest, is this a pure performance optimisation, or a tacit
> recognition of the fact that no public CA cert has ever been revoked no  
> matter
> how negligently the CA has behaved [0] (and it's unlikely that one ever  
> will
> because the collateral damage incurred makes it politically untenable),
> therefore there's no need to spend too much time on revocation checks?
>
> What do other implementations do?  Does anyone check CA certs for  
> revocation
> when they process a cert chain?

AFAIK, currently all the major browsers check for OCSP for the site  
certificates (IE for Vista and later, XP requires a preference change  
IIRC), I am not quite sure about CRLs, but checking intermediates is a  
requirement for Extended Validation verification. I didn't see any need to  
distinguish the cases, so we check CRLs for all certificates that identify  
them (and if one certificate have a CRL defined, we require them for all  
certificates below the Root, except the ones we check OCSP for, or we  
remove the padlock)

Previously, intermediate CA roots were usually issued just to the CA that  
owned the Root, now I am seeing a tendency to issue intermediate CA  
certificates to larger companies, for example. Worst case, it might be  
that it is only a question of time before an intermediate CA have to be  
revoked (That is different from revoking a Root, where the collateral  
damage will be huge if it ever happens, but in such a case the Root key  
has probably been compromised).

The optimization benefits for my proposals, is that the client need to  
check fewer online revocation resources than before, and they will  
preferably be more up to date, in the best case it does not have to check  
any online resources since the server provided them all. For the CA, there  
will ultimately be less traffic to the server, and it will depend less on  
the number of users, and more on the number of customers.


-- 
Sincerely,
Yngve N. Pettersen
********************************************************************
Senior Developer		     Email: yngve@opera.com
Opera Software ASA                   http://www.opera.com/
Phone:  +47 23 69 32 60              Fax:    +47 23 69 24 01
********************************************************************

From brian@briansmith.org  Mon Aug  2 09:57:23 2010
Return-Path: <brian@briansmith.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E13523A67AE; Mon,  2 Aug 2010 09:57:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.632
X-Spam-Level: 
X-Spam-Status: No, score=-1.632 tagged_above=-999 required=5 tests=[AWL=0.967,  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 8GD20VUz0M9v; Mon,  2 Aug 2010 09:57:22 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 945973A657C; Mon,  2 Aug 2010 09:57:22 -0700 (PDT)
Received: from T60 (unknown [98.200.150.199]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 158FC509DB; Mon,  2 Aug 2010 12:57:48 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: <yngve@opera.com>
References: <op.u87n4tthqrq7tp@acorna> <op.vghzp61ivqd7e2@killashandra.oslo.osa> <AANLkTikh0EL0DygFFKC8L-Z406C_HsfatVSbti_Ur9x9@mail.gmail.com> <002101cb2e98$60d77230$22865690$@briansmith.org> <op.vgtbu4wmvqd7e2@killashandra.oslo.osa>
In-Reply-To: <op.vgtbu4wmvqd7e2@killashandra.oslo.osa>
Date: Mon, 2 Aug 2010 11:57:46 -0500
Message-ID: <008301cb3263$d61ee090$825ca1b0$@briansmith.org>
X-Mailer: Microsoft Outlook 14.0
MIME-Version: 1.0
Thread-Index: AQLMt6AH1k71n+68rUsiHq+hip1tpwGaMZvQAZA7Rw8DAkQgowGy1NntAV86fH0=
Content-Language: en-us
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_007E_01CB3239.EC02EB10"
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] New version of Multiple OCSP mode of Certificate Status extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Aug 2010 16:57:24 -0000

This is a multipart message in MIME format.

------=_NextPart_000_007E_01CB3239.EC02EB10
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Yngve Nysaeter Pettersen wrote:
> On Wed, 28 Jul 2010 23:03:44 +0200, Brian Smith <brian@briansmith.org>
> wrote:
> > Plus, it is a privacy issue. If you rely on the CAs to provide this
> > extension in their OCSP responses, then any CAs that want OCSP traffic
> > (for user tracking) can just omit the OCSP extension. The multiple OCSP
> > method lets the server improve the user's privacy without any
cooperation
> > from the CAs involved.
> 
> This issue will not be any different from the current situation; When they
> check OCSP, clients only check the site certificate. If they check
> revocation for intermediates they use CRLs. In fact, for Opera's part, we
> retrieve CRLs while verifying the certificate, OCSP after the certificate
> has been checked, so CRLs are more "dangerous" from that perspective.

Right. What I am saying is that your proposed extension would improve on the
current situation.

> As for your MITM scenario, if the intention is to detect which computers
> access a certain site, then the attacker will already have that
> information when he performs the MITM attack.

That is true, but often the case where Eve tells Malory that Alice did
something is less problematic than the case where Eve tricks Alice into
telling Malory herself. This would be the case when the MiTM is exploiting a
vulnerability in a web browser's OCSP and/or CRL processing. But even purely
a matter of privacy, it is something that should be avoided whenever
practical.

> Opera does not send or accept cookies in OCSP/CRL requests, so there would
> be no extra information available.

It still discloses information about the user's software (browser, operating
system, and some HTTP/TLS/networking settings), information about the user's
hardware, information about the user's location (via GEO-IP targeting),
information about the site that the user is trying to contact, the time at
which the user is attempting to contact the server. Over time, the CA can
build a profile of a user--including often his employer and/or home address,
possibly even uniquely identifying the user by name--simply using
information included in "anonymous" OCSP/CRL requests. The more certificates
the CA manages, the better a profile it can build of the user, more quickly.


Consequently, anything that can prevent the user from making OCSP and CRL
requests to the CA will be a significant privacy-enhancing improvement.

Regards,
Brian

------=_NextPart_000_007E_01CB3239.EC02EB10
Content-Type: application/pkcs7-signature;
	name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIMXjCCAj0w
ggGmAhEAzbp/VvDf5LxU/iKss3KqVTANBgkqhkiG9w0BAQIFADBfMQswCQYDVQQGEwJVUzEXMBUG
A1UEChMOVmVyaVNpZ24sIEluYy4xNzA1BgNVBAsTLkNsYXNzIDEgUHVibGljIFByaW1hcnkgQ2Vy
dGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNOTYwMTI5MDAwMDAwWhcNMjgwODAxMjM1OTU5WjBfMQ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aHR0cHM6
Ly93d3cudmVyaXNpZ24uY29tL3JwYSAoYykwNTEeMBwGA1UECxMVUGVyc29uYSBOb3QgVmFsaWRh
dGVkMTcwNQYDVQQDEy5WZXJpU2lnbiBDbGFzcyAxIEluZGl2aWR1YWwgU3Vic2NyaWJlciBDQSAt
IEcyAhBfRLZVRpgT0Jrg6mjN0UNJMA0GCSqGSIb3DQEBAQUABIIBAJ1zqiDuKmu5WJyu4XOMFdLG
xY5KCX+Cq3zrMIdgKMDaVAeCPiBbeoqjzDzFm6mvmtYcpEBtA6amDoBsj5+CIU0fD0k2vvjBmxSc
LgJpFX7NDQ4yINtD7rV/ZnwJCoD6ffqejMHC6hSGUyGlZT5Oh5DFiDSWxmYFBPTPFSr1LruNCPY9
UG7vnV8EwOilYjg2cGQMAvISR2GGx5erz5sp4r86anLCKzcp8Mq5KgZ4Xy/tVmAKxUNmvzEYYpR+
i21VNHnF8S4bKZPX8OD0KGthW6fBsaoECM+MQZEiE2h2Zsv6Sn2bAK7YlpiEtCEw4KZf+UH0XgM9
NzUJn/W4Au87he4AAAAAAAA=

------=_NextPart_000_007E_01CB3239.EC02EB10--


From marsh@extendedsubset.com  Mon Aug  2 15:15:25 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 7180F3A69DA for <tls@core3.amsl.com>; Mon,  2 Aug 2010 15:15:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.895
X-Spam-Level: 
X-Spam-Status: No, score=-1.895 tagged_above=-999 required=5 tests=[AWL=0.704,  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 qFgLLI3ZaIO2 for <tls@core3.amsl.com>; Mon,  2 Aug 2010 15:15:21 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id 4ED973A6869 for <tls@ietf.org>; Mon,  2 Aug 2010 15:15:21 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1Og3IT-0004kM-2r; Mon, 02 Aug 2010 22:15:49 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 225756086; Mon,  2 Aug 2010 22:15:48 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1+u+bBKlmQK/pyJZa2vwYOWneoSaJ9L1J8=
Message-ID: <4C574391.2070903@extendedsubset.com>
Date: Mon, 02 Aug 2010 17:15:45 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: JCA <1.41421@gmail.com>
References: <AANLkTikVyJAdS1MW791Naqf8_U7FWW+uhQ3j1DzBEc50@mail.gmail.com>
In-Reply-To: <AANLkTikVyJAdS1MW791Naqf8_U7FWW+uhQ3j1DzBEc50@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Still more on Record Layers
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Aug 2010 22:15:25 -0000

On 08/02/2010 10:37 AM, JCA wrote:
>     I am somewhat confused about the meaning of the length field in a
> Record Layer. I believe that when the protocol messages, MAC and
> padding (if any) are encrypted in a Record Layer, the length field
> contains the length in bytes of this encrypted blob

I don't think that's how it works. The record layer length "doesn't 
care" whether the records are encrypted or not.

> (otherwise I guess
> it would be difficult to determine when a Record Layer being received
> ends.)

Yeah, we could have some fun parsing challenges if the type, version, 
and length fields were modified by the connection state. Probably an 
especially fun challenge for the attackers.

> Now it would seem that with the exception of the
> TLS_NULL_WITH_NULL_NULL cipher suite (which seems to be equivalent to
> what happens during the initial handshake, where no cryptographic
> cipher suite has been agreed on yet) if you have encryption you
> necessarily have MAC, but you can have MAC without encryption.

Here's the record layer:
http://tools.ietf.org/html/rfc5246#page-19
> struct {
>           ContentType type;
>           ProtocolVersion version;
>           uint16 length;
>           opaque fragment[TLSPlaintext.length];
>       } TLSPlaintext;

IMHO, it's a little misleading to call it TLSPlaintext since after the 
CCS record it's what we usually call "ciphertext".

It's not perfectly "opaque" to the record layer either since "The Record 
Protocol takes messages to be transmitted, fragments the data into 
manageable blocks, optionally compresses the data, applies a MAC, 
encrypts, and transmits the result."

But, IIRC, the length field represents the length of the record on the 
wire, so it doesn't know about how the data has been slice-n-diced. This 
makes it possible to always find the start of the next record by looking 
at t-he length field without knowing anything about the specific 
ContentType.

> What
> does the Record Layer length field contain in the latter case?

The length of the "opaque fragment" in every case.

> Is it
> the length of the (unencrypted) encapsulated protocol messages alone,
> or the sum of this plus the length of the MAC?

It's the count of bytes between (exclusive) this record's length field 
and the next record's content type, regardless of either content type.

- Marsh

From mike-list@pobox.com  Mon Aug  2 16:05:34 2010
Return-Path: <mike-list@pobox.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C0B333A690F for <tls@core3.amsl.com>; Mon,  2 Aug 2010 16:05:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000,  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 VMSRWbV8U1Cx for <tls@core3.amsl.com>; Mon,  2 Aug 2010 16:05:33 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id A4D6E3A6765 for <tls@ietf.org>; Mon,  2 Aug 2010 16:05:33 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id C50DDC9BAB; Mon,  2 Aug 2010 19:06:00 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=V5rT2mG7vg4a cGdFn5WYvPKYt0E=; b=Ic4wOiHZ3uoMXyVLe4Bq3K6Xa5menEDzy+NOR+XxqxJh 2lp9OuJuBIg3nsjRn1+j1T4tnF4Az968VSbaTg8MvQtjfAHN8j2ykAql3dPZxgio BePgy/S/f5a+mc7toLdRMbSlOESg0LCTs0blh1F5y1koy3sAvg5Tgk7jznSUp/s=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=TXpM3J pQxWLM3Hmj6QizQxKAQ0mnHXOpxt6xexYaNTrHUvldkQt3i3i5R2B8LRZDKlJAch 2Z2rkgz9LIJrNhcD1CmG4kEfe77xWU94AqTtTGpAHyXJDqwCZXedDYJapcjTxVIQ it9p5OYO1xck/c9Pc8fHoKZtd9XdUB97O9XZQ=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 8A47CC9BAA; Mon,  2 Aug 2010 19:05:58 -0400 (EDT)
Received: from iMac.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id E76DBC9BA9; Mon,  2 Aug 2010 19:05:55 -0400 (EDT)
Message-ID: <4C574F52.909@pobox.com>
Date: Mon, 02 Aug 2010 16:05:54 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
To: Marsh Ray <marsh@extendedsubset.com>
References: <AANLkTikVyJAdS1MW791Naqf8_U7FWW+uhQ3j1DzBEc50@mail.gmail.com> <4C574391.2070903@extendedsubset.com>
In-Reply-To: <4C574391.2070903@extendedsubset.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 83064C20-9E8A-11DF-B24C-9056EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: JCA <1.41421@gmail.com>, tls@ietf.org
Subject: Re: [TLS] Still more on Record Layers
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Aug 2010 23:05:34 -0000

Marsh Ray wrote:
> 
> Here's the record layer:
> http://tools.ietf.org/html/rfc5246#page-19
>> struct {
>>           ContentType type;
>>           ProtocolVersion version;
>>           uint16 length;
>>           opaque fragment[TLSPlaintext.length];
>>       } TLSPlaintext;
> 
> IMHO, it's a little misleading to call it TLSPlaintext since after the 
> CCS record it's what we usually call "ciphertext".

You missed this on page 21:

6.2.3.  Record Payload Protection

       The encryption and MAC functions translate a TLSCompressed
       structure into a TLSCiphertext.  The decryption functions reverse
       the process.  The MAC of the record also includes a sequence
       number so that missing, extra, or repeated messages are
       detectable.

       struct {
           ContentType type;
           ProtocolVersion version;
           uint16 length;
           select (SecurityParameters.cipher_type) {
               case stream: GenericStreamCipher;
               case block:  GenericBlockCipher;
               case aead:   GenericAEADCipher;
           } fragment;
       } TLSCiphertext;

Mike

From marsh@extendedsubset.com  Mon Aug  2 16:39:29 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id EF4253A6C85 for <tls@core3.amsl.com>; Mon,  2 Aug 2010 16:39:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.919
X-Spam-Level: 
X-Spam-Status: No, score=-1.919 tagged_above=-999 required=5 tests=[AWL=0.680,  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 lByEvJj7RFZb for <tls@core3.amsl.com>; Mon,  2 Aug 2010 16:39:28 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id BF1D23A6C7F for <tls@ietf.org>; Mon,  2 Aug 2010 16:39:27 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1Og4br-000DAr-Ll; Mon, 02 Aug 2010 23:39:55 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 4E6C5607D; Mon,  2 Aug 2010 23:39:54 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1/fUYkkSP/5re6J4MnoKKKqoy3D/9XaAJU=
Message-ID: <4C575749.3070100@extendedsubset.com>
Date: Mon, 02 Aug 2010 18:39:53 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: Michael D'Errico <mike-list@pobox.com>
References: <AANLkTikVyJAdS1MW791Naqf8_U7FWW+uhQ3j1DzBEc50@mail.gmail.com> <4C574391.2070903@extendedsubset.com> <4C574F52.909@pobox.com>
In-Reply-To: <4C574F52.909@pobox.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: JCA <1.41421@gmail.com>, tls@ietf.org
Subject: Re: [TLS] Still more on Record Layers
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Aug 2010 23:39:29 -0000

On 08/02/2010 06:05 PM, Michael D'Errico wrote:
> Marsh Ray wrote:
>>
>> IMHO, it's a little misleading to call it TLSPlaintext since after the
>> CCS record it's what we usually call "ciphertext".
>
> You missed this on page 21:

Yeah that makes more sense. I was confused.

> 6.2.3. Record Payload Protection
>
> The encryption and MAC functions translate a TLSCompressed
> structure into a TLSCiphertext. The decryption functions reverse
> the process.

Still, I think it would be helpful if the spec said "TLSCiphertext is 
the record layer structure that is actually sent on the wire even if the 
cipher suite is TLS_NULL_WITH_NULL_NULL and it looks exactly like 
TLSPlaintext". I can't a direct statement like that in the spec.

- Marsh

From pgut001@cs.auckland.ac.nz  Tue Aug  3 09:51:03 2010
Return-Path: <pgut001@cs.auckland.ac.nz>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 2FBAF3A69EF; Tue,  3 Aug 2010 09:51:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.134
X-Spam-Level: 
X-Spam-Status: No, score=-3.134 tagged_above=-999 required=5 tests=[AWL=0.465,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 gekGd0W4DnQD; Tue,  3 Aug 2010 09:51:01 -0700 (PDT)
Received: from mx2-int.auckland.ac.nz (mx2-int.auckland.ac.nz [130.216.12.41]) by core3.amsl.com (Postfix) with ESMTP id 00B5B3A6A91; Tue,  3 Aug 2010 09:51:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=pgut001@cs.auckland.ac.nz; q=dns/txt; s=uoa; t=1280854290; x=1312390290; h=from:to:subject:cc:in-reply-to:message-id:date; z=From:=20Peter=20Gutmann=20<pgut001@cs.auckland.ac.nz> |To:=20yngve@opera.com|Subject:=20Re:=20[TLS]=20New=20ver sion=20of=20Multiple=20OCSP=20mode=20of=20Certificate=20S tatus=20extension|Cc:=20pkix@ietf.org,=20tls@ietf.org |In-Reply-To:=20<op.vgtktnagvqd7e2@killashandra.oslo.osa> |Message-Id:=20<E1OgKhk-0006UP-Fe@wintermute02.cs.aucklan d.ac.nz>|Date:=20Wed,=2004=20Aug=202010=2004:51:04=20+120 0; bh=ymtqxAnuSdZxLlx+2mPRhZGHSQEmXMxmPvsO+Um6GM8=; b=BmjiLfBZTH7xQIullsTKVV1zk6+TghoxdfCiBdMP2vNcH4H05xkDpIn9 k9uhVB3ZwI4ZIaN6JKaiP5/32PDXEGYUAo7IgEjcXwsIiVra/MRLbZUlc x1bIctjikLS7erZBRPb5pWD/bwv3WqLphjJ845Z71oxmumANq2W2z34Oi Q=;
X-IronPort-AV: E=Sophos;i="4.55,311,1278244800"; d="scan'208";a="18986739"
X-Ironport-HAT: UNIVERSITY - $RELAY-THROTTLE
X-Ironport-Source: 130.216.207.92 - Outgoing - Outgoing
Received: from wintermute02.cs.auckland.ac.nz ([130.216.207.92]) by mx2-int.auckland.ac.nz with ESMTP/TLS/AES256-SHA; 04 Aug 2010 04:51:04 +1200
Received: from pgut001 by wintermute02.cs.auckland.ac.nz with local (Exim 4.69) (envelope-from <pgut001@cs.auckland.ac.nz>) id 1OgKhk-0006UP-Fe; Wed, 04 Aug 2010 04:51:04 +1200
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: yngve@opera.com
In-Reply-To: <op.vgtktnagvqd7e2@killashandra.oslo.osa>
Message-Id: <E1OgKhk-0006UP-Fe@wintermute02.cs.auckland.ac.nz>
Date: Wed, 04 Aug 2010 04:51:04 +1200
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] New version of Multiple OCSP mode of Certificate Status extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 03 Aug 2010 16:51:03 -0000

"Yngve Nysaeter Pettersen" <yngve@opera.com> writes:

>AFAIK, currently all the major browsers check for OCSP for the site
>certificates (IE for Vista and later, XP requires a preference change IIRC),
>I am not quite sure about CRLs, but checking intermediates is a requirement
>for Extended Validation verification. I didn't see any need to distinguish
>the cases, so we check CRLs for all certificates that identify them (and if
>one certificate have a CRL defined, we require them for all certificates
>below the Root, except the ones we check OCSP for, or we remove the padlock)

How does this impact availability?  This would make the effective availability
of a site the same as that of the least reliable CRL/OCSP server in the chain.
Do you block on all the certs checking out, or perform it in a background
thread?  Again, blocking would make the response time of the site the same as
that of the slowest-responding CRL/OCSP server in the chain.

(Feel free to reply off-list if you prefer, I'm interested in the practical
aspects of this since it availability issues are something that's never really
considered when coming up with the PKI protocols themselves.  If anyone else
has any experience with this I'd be interested in your comments as well).

>Previously, intermediate CA roots were usually issued just to the CA that
>owned the Root, now I am seeing a tendency to issue intermediate CA
>certificates to larger companies, for example. Worst case, it might be that
>it is only a question of time before an intermediate CA have to be revoked

Oh, I know of cases where private-label (i.e. signed by public CAs but not
public CAs themselves) CA certs have been revoked, at the request of the
private-label CA, e.g. due to a change of business.  They then found out that
they could still issue certs because nothing seemed to pay attention to the
revocation :-).

>The optimization benefits for my proposals, is that the client need to check
>fewer online revocation resources than before, and they will preferably be
>more up to date, in the best case it does not have to check any online
>resources since the server provided them all.

What about having public CA certs contains a special indicator in them to tell 
apps that they're revocation-proof and there's no need to check CRLs and 
whatnot, since they'll never be revoked?  That would speed up checking quite a 
bit.

Peter.

From rob.stradling@comodo.com  Tue Aug  3 12:46:16 2010
Return-Path: <rob.stradling@comodo.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 2670E3A69A6 for <tls@core3.amsl.com>; Tue,  3 Aug 2010 12:46:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.748
X-Spam-Level: 
X-Spam-Status: No, score=-4.748 tagged_above=-999 required=5 tests=[AWL=-0.929, BAYES_20=-0.74, HELO_MISMATCH_NET=0.611, HOST_MISMATCH_COM=0.311, RCVD_IN_DNSWL_MED=-4]
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 z6w7+fZodM18 for <tls@core3.amsl.com>; Tue,  3 Aug 2010 12:46:14 -0700 (PDT)
Received: from ian.brad.office.comodo.net (brad.comodogroup.com [82.109.38.202]) by core3.amsl.com (Postfix) with ESMTP id 2540C3A69B9 for <tls@ietf.org>; Tue,  3 Aug 2010 12:46:13 -0700 (PDT)
Received: (qmail 18352 invoked by uid 1000); 3 Aug 2010 19:46:40 -0000
Received: from nigel.brad.office.comodo.net (HELO nigel.localnet) (192.168.0.58) by ian.brad.office.comodo.net (qpsmtpd/0.40) with (AES256-SHA encrypted) ESMTPS; Tue, 03 Aug 2010 20:46:40 +0100
From: Rob Stradling <rob.stradling@comodo.com>
To: pkix@ietf.org, yngve@opera.com
Date: Tue, 3 Aug 2010 20:46:38 +0100
User-Agent: KMail/1.13.3 (Linux/2.6.32-gentoo-r7; KDE/4.4.4; i686; ; )
References: <E1OfxqR-00006L-FJ@wintermute02.cs.auckland.ac.nz> <op.vgtktnagvqd7e2@killashandra.oslo.osa>
In-Reply-To: <op.vgtktnagvqd7e2@killashandra.oslo.osa>
MIME-Version: 1.0
Content-Type: Text/Plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Message-Id: <201008032046.38830.rob.stradling@comodo.com>
Cc: tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate Status extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 03 Aug 2010 19:46:16 -0000

In another thread, Kyle H today wrote:
"...why not change the ASN.1 to allow for multiple individual responses in a 
SEQUENCE or SET?"

This is another possible way forward for "Multiple OCSP".

I suppose it would need a new "responseType" OID - something like...
id-pkix-ocsp-multiple  OBJECT IDENTIFIER ::= { id-pkix-ocsp 2 }

The "response" OCTET STRING would contain a SEQUENCE OF (or SET OF) 
BasicOCSPResponse (rather than just a single BasicOCSPResponse).

OCSP Clients would signal their support for id-pkix-ocsp-multiple by setting 
this OID in the Acceptable Response Types OCSP Request Extension.  OCSP 
Requests can already contain multiple "CertID"s which reference certificates 
issued by different Issuers, so Clients could explicitly list all the 
certificates they want status information for, rather than rely on the 
Responder to guess which certificates in which certificate chain might be 
relevant.

One disadvantage of this approach is that the various Server software would 
need to be updated before it would be able to "staple" this kind of Response.

However, compared to Yngve's OCSP Response Extension approach, id-pkix-ocsp-
multiple would be kinder to the Responders:
  - Responders would only send the (typically larger) id-pkix-ocsp-multiple 
Responses to Clients that have signalled that they support this responseType.
  - If a Client already has an OCSP Response for some of the Intermediate CA 
Certificate(s) in a chain, it needn't include a CertID for each of them in the 
OCSP Request.  This would further decrease unnecessary network traffic to/from 
the Responders.
  - Responders that use pre-generated Responses can use the same pre-generated 
Responses for both id-pkix-ocsp-basic and id-pkix-ocsp-multiple.

On Monday 02 August 2010 17:45:13 Yngve Nysaeter Pettersen wrote:
> On Mon, 02 Aug 2010 18:26:31 +0200, Peter Gutmann
> 
> <pgut001@cs.auckland.ac.nz> wrote:
> > "Yngve Nysaeter Pettersen" <yngve@opera.com> writes:
> >> This issue will not be any different from the current situation; When
> >> they
> >> check OCSP, clients only check the site certificate. If they check
> >> revocation
> >> for intermediates they use CRLs. In fact, for Opera's part, we retrieve
> >> CRLs
> >> while verifying the certificate, OCSP after the certificate has been
> >> checked,
> >> so CRLs are more "dangerous" from that perspective.
> > 
> > Just out of interest, is this a pure performance optimisation, or a tacit
> > recognition of the fact that no public CA cert has ever been revoked no
> > matter
> > how negligently the CA has behaved [0] (and it's unlikely that one ever
> > will
> > because the collateral damage incurred makes it politically untenable),
> > therefore there's no need to spend too much time on revocation checks?
> > 
> > What do other implementations do?  Does anyone check CA certs for
> > revocation
> > when they process a cert chain?
> 
> AFAIK, currently all the major browsers check for OCSP for the site
> certificates (IE for Vista and later, XP requires a preference change
> IIRC), I am not quite sure about CRLs, but checking intermediates is a
> requirement for Extended Validation verification. I didn't see any need to
> distinguish the cases, so we check CRLs for all certificates that identify
> them (and if one certificate have a CRL defined, we require them for all
> certificates below the Root, except the ones we check OCSP for, or we
> remove the padlock)
> 
> Previously, intermediate CA roots were usually issued just to the CA that
> owned the Root, now I am seeing a tendency to issue intermediate CA
> certificates to larger companies, for example. Worst case, it might be
> that it is only a question of time before an intermediate CA have to be
> revoked (That is different from revoking a Root, where the collateral
> damage will be huge if it ever happens, but in such a case the Root key
> has probably been compromised).
> 
> The optimization benefits for my proposals, is that the client need to
> check fewer online revocation resources than before, and they will
> preferably be more up to date, in the best case it does not have to check
> any online resources since the server provided them all. For the CA, there
> will ultimately be less traffic to the server, and it will depend less on
> the number of users, and more on the number of customers.

Rob Stradling
Senior Research & Development Scientist
COMODO - Creating Trust Online
Office Tel: +44.(0)1274.730505
Office Fax: +44.(0)1274.730909
www.comodo.com

COMODO CA Limited, Registered in England No. 04058690
Registered Office:
  3rd Floor, 26 Office Village, Exchange Quay,
  Trafford Road, Salford, Manchester M5 3EQ

This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender by replying
to the e-mail containing this attachment. Replies to this email may be
monitored by Comodo for operational or business reasons. Whilst every
endeavour is taken to ensure that e-mails are free from viruses, no liability
can be accepted and the recipient is requested to use their own virus checking
software.

From Jeff.Hodges@KingsMountain.com  Tue Aug  3 18:55:53 2010
Return-Path: <Jeff.Hodges@KingsMountain.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 1E08A3A6888 for <tls@core3.amsl.com>; Tue,  3 Aug 2010 18:55:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.819
X-Spam-Level: 
X-Spam-Status: No, score=-1.819 tagged_above=-999 required=5 tests=[AWL=0.446,  BAYES_00=-2.599, IP_NOT_FRIENDLY=0.334]
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 U8TDrYD1UuwV for <tls@core3.amsl.com>; Tue,  3 Aug 2010 18:55:52 -0700 (PDT)
Received: from cpoproxy3-pub.bluehost.com (cpoproxy3-pub.bluehost.com [67.222.54.6]) by core3.amsl.com (Postfix) with SMTP id 09CAD3A686E for <tls@ietf.org>; Tue,  3 Aug 2010 18:55:52 -0700 (PDT)
Received: (qmail 24683 invoked by uid 0); 4 Aug 2010 01:56:21 -0000
Received: from unknown (HELO box514.bluehost.com) (74.220.219.114) by cpoproxy3.bluehost.com with SMTP; 4 Aug 2010 01:56:20 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=kingsmountain.com; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=PoUGUXJ8d+NLWXLQfuCVp20VNx8jiuh9tiWvJ7t9VCsoINDJrmDT/uB3BPDVDJPXQ9GDMwAM4+qF9cjh8NTY/ealgBUHWehPB05xL7OPVI7Zklf0e0ARlKQASXI+QnCs;
Received: from outbound4.ebay.com ([216.113.168.128] helo=[10.244.49.190]) by box514.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <Jeff.Hodges@KingsMountain.com>) id 1OgTDQ-00085U-Nx for tls@ietf.org; Tue, 03 Aug 2010 19:56:20 -0600
Message-ID: <4C58C8C2.8020403@KingsMountain.com>
Date: Tue, 03 Aug 2010 18:56:18 -0700
From: =JeffH <Jeff.Hodges@KingsMountain.com>
User-Agent: Thunderbird 2.0.0.24 (X11/20100411)
MIME-Version: 1.0
To: IETF TLS WG <tls@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Identified-User: {11025:box514.bluehost.com:kingsmou:kingsmountain.com} {sentby:smtp auth 216.113.168.128 authed with jeff.hodges+kingsmountain.com}
Subject: [TLS] wrt -ssl-must-not and -tls-server-id-check
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 01:55:53 -0000

One of my take-aways from the TLS wg session last week in Maastricht (ietf-78) 
was that wrt draft-turner-ssl-must-not, the sense in the room was that it will 
be ok to deprecate SSLv2 and earlier, but not SSLv3.

That said, it occurs to me that we should perhaps add an item to the Scope 
section of -tls-server-id-check 
<http://tools.ietf.org/html/draft-saintandre-tls-server-id-check> that the 
requirements described therein apply to SSL certs as well as TLS. Part of the 
rationale being that many people refer to (and seem to regard) both protocols 
as essentially the same (i.e. they are differentiated to end users only on a 
buried advanced preferences dialog) and many use the term "SSL" to refer to 
both TLS and SSL, and thus we should perhaps explicitly mention SSL once in 
terms of scope in order to try to be clear about applicability (and help the 
spec turn up appropriately in search engine results :)

thoughts?

thanks,

=JeffH










From yngve@opera.com  Wed Aug  4 07:40:34 2010
Return-Path: <yngve@opera.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B55413A685E; Wed,  4 Aug 2010 07:40:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.166
X-Spam-Level: 
X-Spam-Status: No, score=-6.166 tagged_above=-999 required=5 tests=[AWL=0.433,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 ezdH0DHwzgOF; Wed,  4 Aug 2010 07:40:25 -0700 (PDT)
Received: from smtp.opera.com (smtp.opera.com [213.236.208.81]) by core3.amsl.com (Postfix) with ESMTP id E888E3A6848; Wed,  4 Aug 2010 07:40:22 -0700 (PDT)
Received: from killashandra.oslo.osa (pat-tdc.opera.com [213.236.208.22]) by smtp.opera.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o74EeUQ1013267 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 4 Aug 2010 14:40:32 GMT
Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes
To: "Peter Gutmann" <pgut001@cs.auckland.ac.nz>
References: <E1OgKhk-0006UP-Fe@wintermute02.cs.auckland.ac.nz>
Date: Wed, 04 Aug 2010 16:40:07 +0200
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
From: "Yngve Nysaeter Pettersen" <yngve@opera.com>
Organization: Opera Software
Message-ID: <op.vgw4c5afvqd7e2@killashandra.oslo.osa>
In-Reply-To: <E1OgKhk-0006UP-Fe@wintermute02.cs.auckland.ac.nz>
User-Agent: Opera Mail/10.54 (Win32)
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] New version of Multiple OCSP mode of Certificate Status extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: yngve@opera.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 14:40:34 -0000

On Tue, 03 Aug 2010 18:51:04 +0200, Peter Gutmann  
<pgut001@cs.auckland.ac.nz> wrote:

> "Yngve Nysaeter Pettersen" <yngve@opera.com> writes:
>
>> AFAIK, currently all the major browsers check for OCSP for the site
>> certificates (IE for Vista and later, XP requires a preference change  
>> IIRC),
>> I am not quite sure about CRLs, but checking intermediates is a  
>> requirement
>> for Extended Validation verification. I didn't see any need to  
>> distinguish
>> the cases, so we check CRLs for all certificates that identify them  
>> (and if
>> one certificate have a CRL defined, we require them for all certificates
>> below the Root, except the ones we check OCSP for, or we remove the  
>> padlock)
>
> How does this impact availability?  This would make the effective  
> availability
> of a site the same as that of the least reliable CRL/OCSP server in the  
> chain.
> Do you block on all the certs checking out, or perform it in a background
> thread?  Again, blocking would make the response time of the site the  
> same as
> that of the slowest-responding CRL/OCSP server in the chain.

Opera has a 15-20 second timeout for such operations, as well as AIA  
intermediate CA cert retrieval, and if the timeout is triggers the URL is  
marked as "don't use" for a few hours, so the delay will be on the first  
request only.

There are requirements in the Extended Validation guidelines for being  
able to download revocation responses within a few seconds even for low  
bandwidths.

The cases where we have run into trouble have been caused by OCSP/CRL  
responders that have been specified with HTTPS URLs (rather than HTTP) and  
where the TLS certificate of the responder referenced the same revocation  
resource (an example of this have been CAcert.org), which causes a bit of  
a trouble when you suspend all other connections to that specific server  
while negotiating a session (to avoid negotiating multiple sessions for  
the same server). We have currently "solved" this problem by immediately  
failing such loops (which does not affect the revocation request)

>> The optimization benefits for my proposals, is that the client need to  
>> check
>> fewer online revocation resources than before, and they will preferably  
>> be
>> more up to date, in the best case it does not have to check any online
>> resources since the server provided them all.
>
> What about having public CA certs contains a special indicator in them  
> to tell
> apps that they're revocation-proof and there's no need to check CRLs and
> whatnot, since they'll never be revoked?  That would speed up checking  
> quite a
> bit.

That would cause problems if the key is compromised

-- 
Sincerely,
Yngve N. Pettersen
********************************************************************
Senior Developer		     Email: yngve@opera.com
Opera Software ASA                   http://www.opera.com/
Phone:  +47 23 69 32 60              Fax:    +47 23 69 24 01
********************************************************************

From yngve@opera.com  Wed Aug  4 07:40:36 2010
Return-Path: <yngve@opera.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 6657A3A6823; Wed,  4 Aug 2010 07:40:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.274
X-Spam-Level: 
X-Spam-Status: No, score=-6.274 tagged_above=-999 required=5 tests=[AWL=0.325,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 lksGx8LzpbuB; Wed,  4 Aug 2010 07:40:26 -0700 (PDT)
Received: from smtp.opera.com (smtp.opera.com [213.236.208.81]) by core3.amsl.com (Postfix) with ESMTP id B0F4C3A6B7E; Wed,  4 Aug 2010 07:40:24 -0700 (PDT)
Received: from killashandra.oslo.osa (pat-tdc.opera.com [213.236.208.22]) by smtp.opera.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o74EeUQ0013267 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 4 Aug 2010 14:40:31 GMT
Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes
To: pkix@ietf.org, "Rob Stradling" <rob.stradling@comodo.com>
References: <E1OfxqR-00006L-FJ@wintermute02.cs.auckland.ac.nz> <op.vgtktnagvqd7e2@killashandra.oslo.osa> <201008032046.38830.rob.stradling@comodo.com>
Date: Wed, 04 Aug 2010 16:40:05 +0200
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
From: "Yngve Nysaeter Pettersen" <yngve@opera.com>
Organization: Opera Software
Message-ID: <op.vgw4c3czvqd7e2@killashandra.oslo.osa>
In-Reply-To: <201008032046.38830.rob.stradling@comodo.com>
User-Agent: Opera Mail/10.54 (Win32)
Cc: tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate Status extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: yngve@opera.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 14:40:36 -0000

On Tue, 03 Aug 2010 21:46:38 +0200, Rob Stradling  
<rob.stradling@comodo.com> wrote:

> In another thread, Kyle H today wrote:
> "...why not change the ASN.1 to allow for multiple individual responses  
> in a
> SEQUENCE or SET?"

I suspect that this is about responses for multiple certificates for the  
same issuer.

I am not sure how well this will work for clients like Opera, since we are  
associating the response with the URL for retrieving it, we don't add it  
to a repository.
I also suspect that we will seldom encounter a certificate that was  
matched by that response anyway.


> This is another possible way forward for "Multiple OCSP".
>
> I suppose it would need a new "responseType" OID - something like...
> id-pkix-ocsp-multiple  OBJECT IDENTIFIER ::= { id-pkix-ocsp 2 }
>
> The "response" OCTET STRING would contain a SEQUENCE OF (or SET OF)
> BasicOCSPResponse (rather than just a single BasicOCSPResponse).

If you mean that the sequence should include the OCSP responses for each  
intermediate, as well as the end entity certificate, that will not work  
unless the responder is signing with a certificate issued directly from  
the Root, and which is somehow designated as the signer fore each  
certificate in the chain.

If the signer of the end entity cert was allowed to sign responses for the  
intermediate, it would be allowed to create the revocation information  
about its own status (which should only be presented by the issuer  
itself), so it would need to be a designated responder cert issued by the  
Root.

Such a designated cert would probably become logistical problem for a Root  
hierarchy that have many independent intermediates, and essentially the  
Root issuer would have to maintain a revocation service for all subCAs.

Storing the full signed response from the issuer in the response would  
prevent such a logistical problem, but would create a larger response,  
which might cause other logistical problems.


-- 
Sincerely,
Yngve N. Pettersen
********************************************************************
Senior Developer		     Email: yngve@opera.com
Opera Software ASA                   http://www.opera.com/
Phone:  +47 23 69 32 60              Fax:    +47 23 69 24 01
********************************************************************

From mrex@sap.com  Wed Aug  4 10:47:31 2010
Return-Path: <mrex@sap.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 481073A657C; Wed,  4 Aug 2010 10:47:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.578
X-Spam-Level: 
X-Spam-Status: No, score=-9.578 tagged_above=-999 required=5 tests=[AWL=0.671,  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 HTEb8ox72BOz; Wed,  4 Aug 2010 10:47:30 -0700 (PDT)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.170]) by core3.amsl.com (Postfix) with ESMTP id 133E63A67E6; Wed,  4 Aug 2010 10:47:29 -0700 (PDT)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o74Hlni1028279 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 4 Aug 2010 19:47:50 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201008041747.o74HlmWa004600@fs4113.wdf.sap.corp>
To: yngve@opera.com
Date: Wed, 4 Aug 2010 19:47:48 +0200 (MEST)
In-Reply-To: <op.vgw4c5afvqd7e2@killashandra.oslo.osa> from "Yngve Nysaeter Pettersen" at Aug 4, 10 04:40:07 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal05
X-SAP: out
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] New version of Multiple OCSP mode of Certificate Status
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 17:47:31 -0000

Yngve Nysaeter Pettersen wrote:
> 
> Opera has a 15-20 second timeout for such operations, as well as AIA  
> intermediate CA cert retrieval.

Why is Opera doing something as extremely dangerous as intermediate CA Cert
retrievel based on AIA?

In the original design, the certificate path validation algorithm
described in rfc-5280 works from the trust anchor downwards to the
end entity cert -- which makes a lot of sense security-wise.

Using any information in certificates that have not been verified to
perform resource-intensive operations is a security problem.  But
accessing an arbitrary URL presented in an completely unverified
End-Entity certificate is a "Freddy Krueger" waiting for his next victim. 

-Martin

From alangley@gmail.com  Wed Aug  4 11:01:27 2010
Return-Path: <alangley@gmail.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id EE72B3A657C; Wed,  4 Aug 2010 11:01:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
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 VSC9ZztVgJhT; Wed,  4 Aug 2010 11:01:25 -0700 (PDT)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by core3.amsl.com (Postfix) with ESMTP id 931343A68CD; Wed,  4 Aug 2010 11:01:25 -0700 (PDT)
Received: by vws10 with SMTP id 10so4599121vws.31 for <multiple recipients>; Wed, 04 Aug 2010 11:01:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=gbPhD4oBqgn9jqFkojxgqGEdsEqPIAtdLjc/RvYPmG4=; b=cZC9EFqWgn7sxC55TSUZeBoyOKTu3I8v90qY0jNN7xa3Qj5OXFVg5to8V0aqcs47S1 DZ5A+IeCO8RaavP9cM5BHQhpp7MefF5DcchUwiql1x7HSswLZCu8MH0w3flrSTFKCj1a DrEM77W8MFHCS+ROaJG+ikf5/CGNsG5fbdmyM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=O0W2eg5TIx8dgnPNxOY+YxRe2MSBqtZra652k71zL/Q5DwtXDDxeJp1NGMfUlsipe2 ICxL+Rr3gYI/3sng/qKO/xHgpyxK0xPq41dlcpeq7POjleNxz8ZLlfhM1+Tgq2MHzEfy KsUrXwxRbvavrutiPUk6c5aMqZV4uejZxHhBs=
MIME-Version: 1.0
Received: by 10.220.88.167 with SMTP id a39mr6506921vcm.73.1280944914716; Wed,  04 Aug 2010 11:01:54 -0700 (PDT)
Sender: alangley@gmail.com
Received: by 10.220.81.11 with HTTP; Wed, 4 Aug 2010 11:01:54 -0700 (PDT)
In-Reply-To: <201008041747.o74HlmWa004600@fs4113.wdf.sap.corp>
References: <op.vgw4c5afvqd7e2@killashandra.oslo.osa> <201008041747.o74HlmWa004600@fs4113.wdf.sap.corp>
Date: Wed, 4 Aug 2010 14:01:54 -0400
X-Google-Sender-Auth: m74iR-UBBtVJX1-9fmONVOXjfYs
Message-ID: <AANLkTik-p__N7mCE2ARwV=C3GD99ahOjZEYFR84zUTiG@mail.gmail.com>
From: Adam Langley <agl@imperialviolet.org>
To: mrex@sap.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] New version of Multiple OCSP mode of Certificate Status
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 18:01:27 -0000

On Wed, Aug 4, 2010 at 1:47 PM, Martin Rex <mrex@sap.com> wrote:
> Using any information in certificates that have not been verified to
> perform resource-intensive operations is a security problem. =C2=A0But
> accessing an arbitrary URL presented in an completely unverified
> End-Entity certificate is a "Freddy Krueger" waiting for his next victim.

That seems a little hyperbolic. Accessing completely unverified URLs
is something that browsers do for every single web page.


AGL

--=20
Adam Langley agl@imperialviolet.org http://www.imperialviolet.org

From mrex@sap.com  Wed Aug  4 11:17:12 2010
Return-Path: <mrex@sap.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 64DC43A6885; Wed,  4 Aug 2010 11:17:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.6
X-Spam-Level: 
X-Spam-Status: No, score=-9.6 tagged_above=-999 required=5 tests=[AWL=0.649, 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 hrePgK5ULDig; Wed,  4 Aug 2010 11:17:11 -0700 (PDT)
Received: from smtpde02.sap-ag.de (smtpde02.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id 0BE9A3A690A; Wed,  4 Aug 2010 11:17:10 -0700 (PDT)
Received: from mail.sap.corp by smtpde02.sap-ag.de (26) with ESMTP id o74IHcum013286 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 4 Aug 2010 20:17:38 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201008041817.o74IHbrm006414@fs4113.wdf.sap.corp>
To: agl@imperialviolet.org (Adam Langley)
Date: Wed, 4 Aug 2010 20:17:37 +0200 (MEST)
In-Reply-To: <AANLkTik-p__N7mCE2ARwV=C3GD99ahOjZEYFR84zUTiG@mail.gmail.com> from "Adam Langley" at Aug 4, 10 02:01:54 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal08
X-SAP: out
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] New version of Multiple OCSP mode of Certificate Status
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 18:17:12 -0000

Adam Langley wrote:
> 
> On Wed, Aug 4, 2010 at 1:47 PM, Martin Rex <mrex@sap.com> wrote:
> > Using any information in certificates that have not been verified to
> > perform resource-intensive operations is a security problem. Â But
> > accessing an arbitrary URL presented in an completely unverified
> > End-Entity certificate is a "Freddy Krueger" waiting for his next victim.
> 
> That seems a little hyperbolic. Accessing completely unverified URLs
> is something that browsers do for every single web page.

There is a difference between something that is an internal part
of the PKI-Software's certificate chain building and the (mis-)behaviour
of applications on top of it.

It it true that the problems is magnitudes worse if the PKI software
does such things in Situations where a user or admin does not
expect this (like when a TLS server requests client certificates and
silently performs AIA retrieval for client certs with incomplete
paths but AIA extension.  Or when you double-click on a
certificate file "something.cer" in Windows explorer and CryptoAPI
does the retrieval secretly.

Anyhow, I think that a PKI-Software that performs intermediate cert
retrieval based on AIA-information of an unverified certificate is
a security nightmare waiting to happen.

-Martin

From mrex@sap.com  Wed Aug  4 11:26:07 2010
Return-Path: <mrex@sap.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D6B7A3A6845; Wed,  4 Aug 2010 11:26:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.621
X-Spam-Level: 
X-Spam-Status: No, score=-9.621 tagged_above=-999 required=5 tests=[AWL=0.628,  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 xwyrAPWHYkqi; Wed,  4 Aug 2010 11:26:07 -0700 (PDT)
Received: from smtpde02.sap-ag.de (smtpde02.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id B6D603A680A; Wed,  4 Aug 2010 11:26:06 -0700 (PDT)
Received: from mail.sap.corp by smtpde02.sap-ag.de (26) with ESMTP id o74IQZjd015243 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 4 Aug 2010 20:26:35 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201008041826.o74IQY9c006745@fs4113.wdf.sap.corp>
To: agl@imperialviolet.org (Adam Langley)
Date: Wed, 4 Aug 2010 20:26:34 +0200 (MEST)
In-Reply-To: <AANLkTik-p__N7mCE2ARwV=C3GD99ahOjZEYFR84zUTiG@mail.gmail.com> from "Adam Langley" at Aug 4, 10 02:01:54 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal07
X-SAP: out
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] New version of Multiple OCSP mode of Certificate Status
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 18:26:08 -0000

Adam Langley wrote:
> 
> That seems a little hyperbolic. Accessing completely unverified URLs
> is something that browsers do for every single web page.

Not really.

Example scenario:

newly booted PC. User logs on, starts the web Browser (about:blank homepage)
and navigates to the HTTPS-url for his online banking.  If HTTPS works
as designed, this should be a safe operation--any "unsafe" content
that the browser would be allowed to serve/access with the consent
of the user is the content served by the online bankings site.

Now if the browser performs AIA retrieval for unverified server
certs, then this scenario is suddenly completely unprotected against
active attacks where the attacker serves a manufactured server
certificate with crafted AIA (but matching the server identity
of the online banking account in the CN= or dNSName SAN.


Essentially, that "safe mode of operation" for your web browser is gone.

-Martin


From yngve@opera.com  Wed Aug  4 11:29:56 2010
Return-Path: <yngve@opera.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 8921C3A67DB; Wed,  4 Aug 2010 11:29:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 BYJB84+6QgON; Wed,  4 Aug 2010 11:29:55 -0700 (PDT)
Received: from smtp.opera.com (smtp.opera.com [213.236.208.81]) by core3.amsl.com (Postfix) with ESMTP id B9B8A3A6807; Wed,  4 Aug 2010 11:29:54 -0700 (PDT)
Received: from acorna.invalid.invalid (219.71.202.84.customer.cdi.no [84.202.71.219]) (authenticated bits=0) by smtp.opera.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o74IUGSB028638 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 4 Aug 2010 18:30:22 GMT
Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes
To: "Martin Rex" <mrex@sap.com>
References: <201008041747.o74HlmWa004600@fs4113.wdf.sap.corp>
Date: Wed, 04 Aug 2010 20:30:13 +0200
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
From: "Yngve N. Pettersen (Developer Opera Software ASA)" <yngve@opera.com>
Organization: Opera Software AS
Message-ID: <op.vgxe0necqrq7tp@acorna.invalid.invalid>
In-Reply-To: <201008041747.o74HlmWa004600@fs4113.wdf.sap.corp>
User-Agent: Opera Mail/10.60 (Win32)
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] New version of Multiple OCSP mode of Certificate Status
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 18:29:56 -0000

On Wed, 04 Aug 2010 19:47:48 +0200, Martin Rex <mrex@sap.com> wrote:

> Yngve Nysaeter Pettersen wrote:
>>
>> Opera has a 15-20 second timeout for such operations, as well as AIA
>> intermediate CA cert retrieval.
>
> Why is Opera doing something as extremely dangerous as intermediate CA  
> Cert
> retrievel based on AIA?

Opera, and AFAIK MSIE, retrieves these specified certificates in an  
attempt to complete the incomplete chain that the server sent, and there  
are too many of those servers around (As an example, try  
https://member.ruten.com.tw/user/login.htm in a few browsers, which is at  
the time of writing missing a Versign G2 intermediate cert).

Opera only accepts these certificates if they chain to an already known  
and trusted Root, and verify successfully once the chain is completed.  
Should the downloaded certificate turn out to be a Root it is  
automatically discarded. If they pass all of this, the certificate is  
cached.

The only other alternatives are to either display a certificate warning  
for those sites, or ship with every intermediate in the Root repository.

See also http://my.opera.com/yngve/blog/2007/12/21/new-w-not-in-kestrel4  
for background.

As for danger, I would think that it is no more dangerous than going to  
arbitrary websites are already, or downloading OCSP and CRLs (which are  
also specified in the certificate).

-- 
Sincerely,
Yngve N. Pettersen

********************************************************************
Senior Developer                     Email: yngve@opera.com
Opera Software ASA                   http://www.opera.com/
Phone:  +47 24 16 42 60              Fax:    +47 24 16 40 01
********************************************************************

From marsh@extendedsubset.com  Wed Aug  4 11:30:25 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 01CC53A68DB; Wed,  4 Aug 2010 11:30:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.941
X-Spam-Level: 
X-Spam-Status: No, score=-1.941 tagged_above=-999 required=5 tests=[AWL=0.658,  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 nEhpuc61JaTd; Wed,  4 Aug 2010 11:30:23 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id DFF3B3A691B; Wed,  4 Aug 2010 11:30:22 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1Ogijs-000GLa-9V; Wed, 04 Aug 2010 18:30:52 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 06EDE6084; Wed,  4 Aug 2010 18:30:51 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1/eWaLq3ctLwTMNu0nG6eAy8cMdeTIN0k4=
Message-ID: <4C59B1DB.9010306@extendedsubset.com>
Date: Wed, 04 Aug 2010 13:30:51 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: Adam Langley <agl@imperialviolet.org>
References: <op.vgw4c5afvqd7e2@killashandra.oslo.osa>	<201008041747.o74HlmWa004600@fs4113.wdf.sap.corp> <AANLkTik-p__N7mCE2ARwV=C3GD99ahOjZEYFR84zUTiG@mail.gmail.com>
In-Reply-To: <AANLkTik-p__N7mCE2ARwV=C3GD99ahOjZEYFR84zUTiG@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] New version of Multiple OCSP mode of Certificate Status
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 18:30:25 -0000

On 08/04/2010 01:01 PM, Adam Langley wrote:
> On Wed, Aug 4, 2010 at 1:47 PM, Martin Rex<mrex@sap.com>  wrote:
>> Using any information in certificates that have not been verified to
>> perform resource-intensive operations is a security problem.  But
>> accessing an arbitrary URL presented in an completely unverified
>> End-Entity certificate is a "Freddy Krueger" waiting for his next victim.
>
> That seems a little hyperbolic. Accessing completely unverified URLs
> is something that browsers do for every single web page.

So if someone sent you a list of every known attack site you'd see no 
problem with visiting them all?

What if the attacker got to choose just one for you to visit?

Just got back from Defcon, the "top tweet" was "I strongly recommend 
against hitting jailbreakme.com from the #defcon wifi. Modifying that 
payload for malicious pwnage is not hard."
https://twitter.com/esizkur/status/20089522350

This is where the "in theory/practice there is/is not a difference 
between practice/theory" gets real. Probably the best approximation of 
the truth is somewhere in between.

Retrieving a cert via HTTP as part of the validation process is surely 
not as risky as running a web page with all types of active content and 
3rd party plugins, and if there's an exploitable bug in those lower HTTP 
or X509 layers, you're probably already owned.

But this isn't the kind of risk that's statistical, like earthquakes or 
meteors. The attacker gets to choose nearly all of the inputs to the 
transaction. He can thus select the tiniest, most vulnerable, part of 
the possible parameter space and only needs to be right once.

So is seems to me the best design principle is to avoid unnecessary 
interactions with unverified servers and handling unverified data as 
much as practical. When it's done, it should be with at least some 
justification and an acknowledgement it's a risk/benefit tradeoff.

- Marsh

From mrex@sap.com  Wed Aug  4 11:42:59 2010
Return-Path: <mrex@sap.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E927D3A67ED; Wed,  4 Aug 2010 11:42:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.641
X-Spam-Level: 
X-Spam-Status: No, score=-9.641 tagged_above=-999 required=5 tests=[AWL=0.608,  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 DmIwyCb+sRaM; Wed,  4 Aug 2010 11:42:59 -0700 (PDT)
Received: from smtpde02.sap-ag.de (smtpde02.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id A65223A680B; Wed,  4 Aug 2010 11:42:58 -0700 (PDT)
Received: from mail.sap.corp by smtpde02.sap-ag.de (26) with ESMTP id o74IhR84020428 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 4 Aug 2010 20:43:27 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201008041843.o74IhQqX007628@fs4113.wdf.sap.corp>
To: yngve@opera.com (Yngve N. Pettersen)
Date: Wed, 4 Aug 2010 20:43:26 +0200 (MEST)
In-Reply-To: <op.vgxe0necqrq7tp@acorna.invalid.invalid> from "Yngve N. Pettersen" at Aug 4, 10 08:30:13 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal05
X-SAP: out
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] New version of Multiple OCSP mode of Certificate Status
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 18:43:00 -0000

Yngve N. Pettersen wrote:
> 
> Opera only accepts these certificates if they chain to an already known  
> and trusted Root, and verify successfully once the chain is completed.  
> Should the downloaded certificate turn out to be a Root it is  
> automatically discarded. If they pass all of this, the certificate is  
> cached.

As far as the AIA vulnerability is concerned, you're 0wnd as soon
as your software connects to the crafted URL in the crafted server
certificate.  It doesn't matter that whether you discard the reply
and abort the original browser connection at that point.  If you're
attacked, that URL is often not going to result in a certificate anyway.

> 
> The only other alternatives are to either display a certificate warning  
> for those sites, or ship with every intermediate in the Root repository.

How about warning on first encounter and offer the User to download
and memorize the intermediate cert -- or to NOT download?

> 
> As for danger, I would think that it is no more dangerous than going to  
> arbitrary websites are already, or downloading OCSP and CRLs (which are  
> also specified in the certificate).

As previously described, the certificate path validation algorithm
specified in rfc-5280 works from the trust anchor downwards to
the End Entity cert, and will reliably protect you from accessing
OCSP or CRL information from untrusted/unverified certificates.

AIA retrieval works upwards with information from completely unverified
and untrusted certs.


-Martin

From mrex@sap.com  Wed Aug  4 12:15:01 2010
Return-Path: <mrex@sap.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 80F4F3A6886; Wed,  4 Aug 2010 12:15:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.659
X-Spam-Level: 
X-Spam-Status: No, score=-9.659 tagged_above=-999 required=5 tests=[AWL=0.590,  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 au88X1UDuRuN; Wed,  4 Aug 2010 12:14:59 -0700 (PDT)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.170]) by core3.amsl.com (Postfix) with ESMTP id 111FD3A6831; Wed,  4 Aug 2010 12:14:58 -0700 (PDT)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o74JFNnv016814 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 4 Aug 2010 21:15:28 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201008041915.o74JFM9X009405@fs4113.wdf.sap.corp>
To: yngve@opera.com (Yngve N. Pettersen)
Date: Wed, 4 Aug 2010 21:15:22 +0200 (MEST)
In-Reply-To: <op.vgxe0necqrq7tp@acorna.invalid.invalid> from "Yngve N. Pettersen" at Aug 4, 10 08:30:13 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal05
X-SAP: out
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] New version of Multiple OCSP mode of Certificate Status
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 19:15:01 -0000

Yngve N. Pettersen wrote:
> 
> Opera, and AFAIK MSIE, retrieves these specified certificates in an  
> attempt to complete the incomplete chain that the server sent, and there  
> are too many of those servers around (As an example, try  
> https://member.ruten.com.tw/user/login.htm in a few browsers, which is at  
> the time of writing missing a Versign G2 intermediate cert).

You mean that this web-server is sending a server certificate from a
certification path that ends at a self-signed rootCA which the browser
already trusts, but the server does not include the intermediate CA
certificate that is necessary to validate the server certificate?

An implementation compliant to any of the TLS v1.x specifications
would have to abort the handshake with such a server due to an
clear protocol violation.  The server MAY omit the self-signed
rootCA cert at the end of his certification path, but omitting
any of the intermediate CA certs is not permitted.

http://tools.ietf.org/html/rfc5246#page-48


-Martin

From tmiller@mitre.org  Wed Aug  4 12:34:20 2010
Return-Path: <tmiller@mitre.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 98D963A6988; Wed,  4 Aug 2010 12:34:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 kdtrWiN8iGXy; Wed,  4 Aug 2010 12:34:17 -0700 (PDT)
Received: from smtp-bedford.mitre.org (smtp-bedford.mitre.org [129.83.20.191]) by core3.amsl.com (Postfix) with ESMTP id 6D7E23A6979; Wed,  4 Aug 2010 12:31:40 -0700 (PDT)
Received: from smtp-bedford.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id o74JVp7h014720;  Wed, 4 Aug 2010 15:31:51 -0400
Received: from imchub1.MITRE.ORG (imchub1.mitre.org [129.83.29.73]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id o74JVopX014714;  Wed, 4 Aug 2010 15:31:50 -0400
Received: from IMCMBX2.MITRE.ORG ([129.83.29.205]) by imchub1.MITRE.ORG ([129.83.29.73]) with mapi; Wed, 4 Aug 2010 15:31:50 -0400
From: "Miller, Timothy J." <tmiller@mitre.org>
To: "'mrex@sap.com'" <mrex@sap.com>, "Yngve N. Pettersen" <yngve@opera.com>
Date: Wed, 4 Aug 2010 15:31:50 -0400
Thread-Topic: [pkix] [TLS] New version of Multiple OCSP mode of Certificate Status
Thread-Index: Acs0BPBFub1H0SeySrC9CppTg/jsuwAAruxA
Message-ID: <17FD76C1ECD0AB49817637E21809ABF908A316DF7D@IMCMBX2.MITRE.ORG>
References: <op.vgxe0necqrq7tp@acorna.invalid.invalid> from "Yngve N. Pettersen" at Aug 4, 10 08:30:13 pm <201008041843.o74IhQqX007628@fs4113.wdf.sap.corp>
In-Reply-To: <201008041843.o74IhQqX007628@fs4113.wdf.sap.corp>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "pkix@ietf.org" <pkix@ietf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate	Status
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 19:34:20 -0000

>As far as the AIA vulnerability is concerned, you're 0wnd as soon
>as your software connects to the crafted URL in the crafted server
>certificate.  It doesn't matter that whether you discard the reply
>and abort the original browser connection at that point.  If you're
>attacked, that URL is often not going to result in a certificate anyway.

First, real browsers already allow mixed content frames with silent renegot=
iation *and* late-binding of request authentication, and you're worried abo=
ut exploiting AIA retrieval?

Second, having identified a problem behavior, what's the fix?  Path discove=
ry is critically important in bridged PKIs, so if chasing AIAs is a Bad Thi=
ng, what do we do instead?

>How about warning on first encounter and offer the User to download
>and memorize the intermediate cert -- or to NOT download?

I fail to see how this improves the situation, since we already know users =
are ill-equipped to make these decisions anyway.  In addition, components w=
ithout a UI do what?

>As previously described, the certificate path validation algorithm
>specified in rfc-5280 works from the trust anchor downwards to
>the End Entity cert, and will reliably protect you from accessing
>OCSP or CRL information from untrusted/unverified certificates.

Only when the pool used by the PVM contains all the certificates identified=
 in the path.  When the pool is incomplete, or the protocol provides no pat=
h (e.g., CMS allows SignedData to elide any and all certificates if the rel=
ying party can be expected to have *or discover* them), what does the PVM d=
o?

Failing is "safe" from a security standpoint, but I'd contend that if you p=
ut that into a real system it would simply fail to meet any practical defin=
ition of the term "functional."

-- Tim


From mrex@sap.com  Wed Aug  4 12:58:19 2010
Return-Path: <mrex@sap.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E33293A687C; Wed,  4 Aug 2010 12:58:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.676
X-Spam-Level: 
X-Spam-Status: No, score=-9.676 tagged_above=-999 required=5 tests=[AWL=0.573,  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 Heujl9HWqJ7P; Wed,  4 Aug 2010 12:58:18 -0700 (PDT)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.170]) by core3.amsl.com (Postfix) with ESMTP id 64C9E3A6855; Wed,  4 Aug 2010 12:58:18 -0700 (PDT)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o74JwlWP001132 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 4 Aug 2010 21:58:47 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201008041958.o74JwjlN012045@fs4113.wdf.sap.corp>
To: tmiller@mitre.org (Miller Timothy J.)
Date: Wed, 4 Aug 2010 21:58:45 +0200 (MEST)
In-Reply-To: <17FD76C1ECD0AB49817637E21809ABF908A316DF7D@IMCMBX2.MITRE.ORG> from "Miller, Timothy J." at Aug 4, 10 03:31:50 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal05
X-SAP: out
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] [pkix]  New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 19:58:20 -0000

Miller, Timothy J. wrote:
> 
> >As far as the AIA vulnerability is concerned, you're 0wnd as soon
> >as your software connects to the crafted URL in the crafted server
> >certificate.  It doesn't matter that whether you discard the reply
> >and abort the original browser connection at that point.  If you're
> >attacked, that URL is often not going to result in a certificate anyway.
> 
> First, real browsers already allow mixed content frames with silent
> renegotiation *and* late-binding of request authentication, and you're
> worried about exploiting AIA retrieval?

There is a significant difference between being vulnerable to a content
from a site one has chosen to access through HTTPS and being vulnerable
to an arbitrary active attacker on every connect.

> 
> Second, having identified a problem behavior, what's the fix?
> Path discovery is critically important in bridged PKIs, so if
> chasing AIAs is a Bad Thing, what do we do instead?

I don't know who invented the concept of automatic AIA retrieval, but
my personal intuition points to the S/Mime camp.  S/Mime is notoriously
broken as far as the inclusion of certificates is concerned (being a
heritage from PKCS#7).

SSL & TLS on the other hand have had the clear requirement to send only
complete certification chains from the beginning.  So there this issue
does not exist unless the server is misconfigured and the server PKI
software is defective because it does not refuse to perform SSL handshakes
with incomplete certificate chains, something that the SSL & TLS specs
have never allowed and which is fairly trivial for the server software,
the credential management part in particular, to verify and report
to the admin upfront when setting up that server.

> 
> >How about warning on first encounter and offer the User to download
> >and memorize the intermediate cert -- or to NOT download?
> 
> I fail to see how this improves the situation, since we already know
> users are ill-equipped to make these decisions anyway.


This is a clear TLS protocol violation, so if anything deserves
a scary page to be presented to a user, this is such a situation.

>
> In addition, components without a UI do what?

Fail unconditionally.  That is the only safe reaction, and since
it is a clear TLS protocol violation, it is quite appropriate.


> 
> >As previously described, the certificate path validation algorithm
> >specified in rfc-5280 works from the trust anchor downwards to
> >the End Entity cert, and will reliably protect you from accessing
> >OCSP or CRL information from untrusted/unverified certificates.
> 
> Only when the pool used by the PVM contains all the certificates
> identified in the path.  When the pool is incomplete, or the protocol
> provides no path (e.g., CMS allows SignedData to elide any and all
> certificates if the relying party can be expected to have *or discover*
> them), what does the PVM do?

S/Mime and CMS are foobar.  An implementation of TLS should not try
to work around design flaws of a non-TLS protocol in such an insecure
and questionable fashion.

The sitation for TLS is clear, the server needs to provide a full
certificate chain and may omit only the self-signed root.

There is more flexibility in the TLS protocol (although not explicitly
written out) for verifying the client certificate.  The CertificateRequest	handshake message includes a list of certification authorities which
the server indicates to trust (i.e. being able to verify certs issued
by these CAs), so the client could build a certificate chain up to
one of the certification authorities announced by the server.


PKIs with bridge CAs are not natively supported by TLS for the server
certificate.  Adding support would be possible through a ClientHello
extension where the client announces the names of those bridge CAs.

> 
> Failing is "safe" from a security standpoint, but I'd contend that
> if you put that into a real system it would simply fail to meet any
> practical definition of the term "functional."

AIA is a pretty dangerous idea designed to work around design flaws
of an installed base of PKCS#7/CMS/SMime.  Ignoring the security
implications of such a hack is a bad idea, in particular for protocols
that originally do not suffer from such a design flaw.  And doing it
in a secretive fashion out of sight from the user of the technology
is a particularly bad idea!


-Martin

From marsh@extendedsubset.com  Wed Aug  4 13:02:21 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 688F83A6960; Wed,  4 Aug 2010 13:02:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.961
X-Spam-Level: 
X-Spam-Status: No, score=-1.961 tagged_above=-999 required=5 tests=[AWL=0.638,  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 NwZaPkgnQi5v; Wed,  4 Aug 2010 13:02:20 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id 463593A6965; Wed,  4 Aug 2010 13:02:20 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OgkAr-000Bee-1u; Wed, 04 Aug 2010 20:02:49 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 23DB4607D; Wed,  4 Aug 2010 20:02:45 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX19NzEm8NBkmckSni1K3JvJ5nWR7ntJTO5Y=
Message-ID: <4C59C764.7010906@extendedsubset.com>
Date: Wed, 04 Aug 2010 15:02:44 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: "Miller, Timothy J." <tmiller@mitre.org>
References: <op.vgxe0necqrq7tp@acorna.invalid.invalid> from "Yngve N.	Pettersen" at Aug 4, 10 08:30:13 pm	<201008041843.o74IhQqX007628@fs4113.wdf.sap.corp> <17FD76C1ECD0AB49817637E21809ABF908A316DF7D@IMCMBX2.MITRE.ORG>
In-Reply-To: <17FD76C1ECD0AB49817637E21809ABF908A316DF7D@IMCMBX2.MITRE.ORG>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: "pkix@ietf.org" <pkix@ietf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of	Certificate Status
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 20:02:21 -0000

On 08/04/2010 02:31 PM, Miller, Timothy J. wrote:
>
> First, real browsers already allow mixed content frames with silent
> renegotiation *and* late-binding of request authentication, and
> you're worried about exploiting AIA retrieval?

If it's potentially a problem, then it needs to be worried about. Unlike 
mass-energy, insecurity not conserved. We have an unlimited supply of 
it, so having it in one place doesn't diminish it elsewhere. 
Unfortunately, our capacity to be concerned is finite so we end up 
prioritizing resources over "degrees of brokenness".

Historically, it's shown to be unreliable to expect a small security 
problem to stay small. The network changes dramatically over the years 
while the protocols largely stay the same. What seems obscure or 
unlikely in one context may end up enabling an entirely new vector of 
attack in another.

For example, is this outbound connection willing to authenticate with 
the credentials of the user? Nearly every form of user credentials have 
turned out to be forwardable in one way or another.

> Second, having identified a problem behavior, what's the fix?  Path
> discovery is critically important in bridged PKIs, so if chasing AIAs
> is a Bad Thing, what do we do instead?

Good question.

It may be enough to agree on what the security context of such a request 
ought to be. For example, what should be done with cookie headers that 
might be returned? How does this interact with same-origin policies? 
When are redirects valid? Maybe all this is covered in a document 
already, does every system implement it? Is there a thorough test suite 
or audit tool available?

> Failing is "safe" from a security standpoint, but I'd contend that if
> you put that into a real system it would simply fail to meet any
> practical definition of the term "functional."

At some point we have to accept the fact that the entire purpose of 
security is to make the protected resource harder to access in one 
respect or another. The security/convenience tradeoff isn't going away, 
the best we can do is attempt to optimize it for the most common cases.

- Marsh

From tmiller@mitre.org  Wed Aug  4 13:14:06 2010
Return-Path: <tmiller@mitre.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 4B1793A6993; Wed,  4 Aug 2010 13:14:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 JlXDQhMrTvOl; Wed,  4 Aug 2010 13:14:05 -0700 (PDT)
Received: from smtp-bedford.mitre.org (smtp-bedford.mitre.org [129.83.20.191]) by core3.amsl.com (Postfix) with ESMTP id D260E3A6960; Wed,  4 Aug 2010 13:14:04 -0700 (PDT)
Received: from smtp-bedford.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id o74KEYF6010861;  Wed, 4 Aug 2010 16:14:34 -0400
Received: from imchub1.MITRE.ORG (imchub1.mitre.org [129.83.29.73]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id o74KEXx9010789;  Wed, 4 Aug 2010 16:14:33 -0400
Received: from IMCMBX2.MITRE.ORG ([129.83.29.205]) by imchub1.MITRE.ORG ([129.83.29.73]) with mapi; Wed, 4 Aug 2010 16:14:33 -0400
From: "Miller, Timothy J." <tmiller@mitre.org>
To: "'mrex@sap.com'" <mrex@sap.com>, "Yngve N. Pettersen" <yngve@opera.com>
Date: Wed, 4 Aug 2010 16:14:33 -0400
Thread-Topic: [pkix] [TLS] New version of Multiple OCSP mode of Certificate Status
Thread-Index: Acs0CXCM7gRKC2h1SxOKaOr2HIcW9AABb5QA
Message-ID: <17FD76C1ECD0AB49817637E21809ABF908A316DF7E@IMCMBX2.MITRE.ORG>
References: <op.vgxe0necqrq7tp@acorna.invalid.invalid> from "Yngve N. Pettersen" at Aug 4, 10 08:30:13 pm <201008041915.o74JFM9X009405@fs4113.wdf.sap.corp>
In-Reply-To: <201008041915.o74JFM9X009405@fs4113.wdf.sap.corp>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "pkix@ietf.org" <pkix@ietf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate	Status
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 20:14:06 -0000

>You mean that this web-server is sending a server certificate from a
>certification path that ends at a self-signed rootCA which the browser
>already trusts, but the server does not include the intermediate CA
>certificate that is necessary to validate the server certificate?

>An implementation compliant to any of the TLS v1.x specifications
>would have to abort the handshake with such a server due to an
>clear protocol violation.  The server MAY omit the self-signed
>rootCA cert at the end of his certification path, but omitting
>any of the intermediate CA certs is not permitted.

Consider:

- Agency A and Agency B each have internal PKIs.
- Agency A and Agency B mutually cross-certify.
- An End Entity from Agency A connects to an Agency B service.
- The service provides a ServerCertificate message containing it's certific=
ate and the complete path.
- Complying with TLS1.2, the path supplied by the service may or may not in=
clude the Agency B's root CA certificate.

>From the user's perspective, the path supplied by the service is *both* com=
pliant with TLS *and* incomplete, because it does not terminate at the Agen=
cy A trust anchor.  The server can do nothing to help, because the server h=
as no way to predict *which* certificate path will be acceptable to the cli=
ent, and in a large bridged environment the number of possible paths can be=
 very, very large.

On the other hand, a browser has two options.  It can fail path validation =
(which usually results in a warning and a click-through), or it can enter p=
ath *discovery*, find the A->B cross certificate, and validate that path in=
stead.  (While in the simple case here this is trivial, in the broader case=
--e.g., the FBCA environment--it is not.)

Failure is not the correct option because a trust path *does* exist.

I think the problem here is TLS presumes a simple PKI.  To quote from TLS1.=
2 7.4.2, "[The Server Certificate] message conveys the server's certificate=
 chain to the client."  This is demonstrably not true (see above); the Serv=
er Certificate message conveys *one possible* chain to the client.  If that=
 chain is not acceptable to the client, the client *must* find one that is.

-- Tim


From tmiller@mitre.org  Wed Aug  4 13:33:26 2010
Return-Path: <tmiller@mitre.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 9877D3A6994; Wed,  4 Aug 2010 13:33:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 R0RmCDhzTk1e; Wed,  4 Aug 2010 13:33:23 -0700 (PDT)
Received: from smtp-bedford.mitre.org (smtp-bedford.mitre.org [129.83.20.191]) by core3.amsl.com (Postfix) with ESMTP id A722C3A6959; Wed,  4 Aug 2010 13:33:23 -0700 (PDT)
Received: from smtp-bedford.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id o74KXrQW006209;  Wed, 4 Aug 2010 16:33:53 -0400
Received: from imchub1.MITRE.ORG (imchub1.mitre.org [129.83.29.73]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id o74KXrvr006201;  Wed, 4 Aug 2010 16:33:53 -0400
Received: from IMCMBX2.MITRE.ORG ([129.83.29.205]) by imchub1.MITRE.ORG ([129.83.29.73]) with mapi; Wed, 4 Aug 2010 16:33:52 -0400
From: "Miller, Timothy J." <tmiller@mitre.org>
To: "'mrex@sap.com'" <mrex@sap.com>
Date: Wed, 4 Aug 2010 16:33:51 -0400
Thread-Topic: [pkix] [TLS] New version of Multiple OCSP mode of Certificate
Thread-Index: Acs0D3XnMxiX12DvSiSOYhaMFZ42dgABLw5Q
Message-ID: <17FD76C1ECD0AB49817637E21809ABF908A316DF7F@IMCMBX2.MITRE.ORG>
References: <17FD76C1ECD0AB49817637E21809ABF908A316DF7D@IMCMBX2.MITRE.ORG> from "Miller, Timothy J." at Aug 4, 10 03:31:50 pm <16961_1280951931_4C59C67A_16961_3492_1_201008041958.o74JwjlN012045@fs4113.wdf.sap.corp>
In-Reply-To: <16961_1280951931_4C59C67A_16961_3492_1_201008041958.o74JwjlN012045@fs4113.wdf.sap.corp>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "pkix@ietf.org" <pkix@ietf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] [pkix]  New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 20:33:26 -0000

See my other message.  The problem here is TLS does not admit of PKIs with =
more complex pathing requirements or inter-relationships.

-- Tim


>-----Original Message-----
>From: Martin Rex [mailto:mrex@sap.com]
>Sent: Wednesday, August 04, 2010 2:59 PM
>To: Miller, Timothy J.
>Cc: mrex@sap.com; yngve@opera.com; pkix@ietf.org; tls@ietf.org
>Subject: Re: [pkix] [TLS] New version of Multiple OCSP mode of
>Certificate
>
>Miller, Timothy J. wrote:
>>
>> >As far as the AIA vulnerability is concerned, you're 0wnd as soon
>> >as your software connects to the crafted URL in the crafted server
>> >certificate.  It doesn't matter that whether you discard the reply
>> >and abort the original browser connection at that point.  If you're
>> >attacked, that URL is often not going to result in a certificate
>anyway.
>>
>> First, real browsers already allow mixed content frames with silent
>> renegotiation *and* late-binding of request authentication, and you're
>> worried about exploiting AIA retrieval?
>
>There is a significant difference between being vulnerable to a content
>from a site one has chosen to access through HTTPS and being vulnerable
>to an arbitrary active attacker on every connect.
>
>>
>> Second, having identified a problem behavior, what's the fix?
>> Path discovery is critically important in bridged PKIs, so if
>> chasing AIAs is a Bad Thing, what do we do instead?
>
>I don't know who invented the concept of automatic AIA retrieval, but
>my personal intuition points to the S/Mime camp.  S/Mime is notoriously
>broken as far as the inclusion of certificates is concerned (being a
>heritage from PKCS#7).
>
>SSL & TLS on the other hand have had the clear requirement to send only
>complete certification chains from the beginning.  So there this issue
>does not exist unless the server is misconfigured and the server PKI
>software is defective because it does not refuse to perform SSL
>handshakes
>with incomplete certificate chains, something that the SSL & TLS specs
>have never allowed and which is fairly trivial for the server software,
>the credential management part in particular, to verify and report
>to the admin upfront when setting up that server.
>
>>
>> >How about warning on first encounter and offer the User to download
>> >and memorize the intermediate cert -- or to NOT download?
>>
>> I fail to see how this improves the situation, since we already know
>> users are ill-equipped to make these decisions anyway.
>
>
>This is a clear TLS protocol violation, so if anything deserves
>a scary page to be presented to a user, this is such a situation.
>
>>
>> In addition, components without a UI do what?
>
>Fail unconditionally.  That is the only safe reaction, and since
>it is a clear TLS protocol violation, it is quite appropriate.
>
>
>>
>> >As previously described, the certificate path validation algorithm
>> >specified in rfc-5280 works from the trust anchor downwards to
>> >the End Entity cert, and will reliably protect you from accessing
>> >OCSP or CRL information from untrusted/unverified certificates.
>>
>> Only when the pool used by the PVM contains all the certificates
>> identified in the path.  When the pool is incomplete, or the protocol
>> provides no path (e.g., CMS allows SignedData to elide any and all
>> certificates if the relying party can be expected to have *or
>discover*
>> them), what does the PVM do?
>
>S/Mime and CMS are foobar.  An implementation of TLS should not try
>to work around design flaws of a non-TLS protocol in such an insecure
>and questionable fashion.
>
>The sitation for TLS is clear, the server needs to provide a full
>certificate chain and may omit only the self-signed root.
>
>There is more flexibility in the TLS protocol (although not explicitly
>written out) for verifying the client certificate.  The
>CertificateRequest     handshake message includes a list of
>certification authorities which
>the server indicates to trust (i.e. being able to verify certs issued
>by these CAs), so the client could build a certificate chain up to
>one of the certification authorities announced by the server.
>
>
>PKIs with bridge CAs are not natively supported by TLS for the server
>certificate.  Adding support would be possible through a ClientHello
>extension where the client announces the names of those bridge CAs.
>
>>
>> Failing is "safe" from a security standpoint, but I'd contend that
>> if you put that into a real system it would simply fail to meet any
>> practical definition of the term "functional."
>
>AIA is a pretty dangerous idea designed to work around design flaws
>of an installed base of PKCS#7/CMS/SMime.  Ignoring the security
>implications of such a hack is a bad idea, in particular for protocols
>that originally do not suffer from such a design flaw.  And doing it
>in a secretive fashion out of sight from the user of the technology
>is a particularly bad idea!
>
>
>-Martin

From mrex@sap.com  Wed Aug  4 13:38:44 2010
Return-Path: <mrex@sap.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 090D93A68E1; Wed,  4 Aug 2010 13:38:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.693
X-Spam-Level: 
X-Spam-Status: No, score=-9.693 tagged_above=-999 required=5 tests=[AWL=0.556,  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 PgM4crpGlYro; Wed,  4 Aug 2010 13:38:43 -0700 (PDT)
Received: from smtpde02.sap-ag.de (smtpde02.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id CAD363A67A4; Wed,  4 Aug 2010 13:38:42 -0700 (PDT)
Received: from mail.sap.corp by smtpde02.sap-ag.de (26) with ESMTP id o74Kd9A6007097 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 4 Aug 2010 22:39:10 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201008042039.o74Kd8TP014387@fs4113.wdf.sap.corp>
To: marsh@extendedsubset.com (Marsh Ray)
Date: Wed, 4 Aug 2010 22:39:08 +0200 (MEST)
In-Reply-To: <4C59C764.7010906@extendedsubset.com> from "Marsh Ray" at Aug 4, 10 03:02:44 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal07
X-SAP: out
Cc: tmiller@mitre.org, tls@ietf.org, pkix@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 20:38:44 -0000

Marsh Ray wrote:
> 
> For example, is this outbound connection willing to authenticate with 
> the credentials of the user? Nearly every form of user credentials have 
> turned out to be forwardable in one way or another.

Possible problems;+

That crafted AIA-request could potentially "leak" information,
including sensitive information through a protocol of the attackers
choice to a target of the attackers choice (cookies, other
http-header-field contents, http-refererrers, basic authentication
credentials).


That crafted AIA-request could be accessing resources that are not
accessible to the attacker himself with a protocol of the attackers choice
and result in reaction that help the attacker in carrying out a more
complex attack (like opening ports on a NAT-style firewall).


That crafted AIA-request could potentially reuse existing credentials
or single sign-on information for a normally internal/trusted resource
with attacker-supplied URL arguments (cookie-based, rfc-4559-based
or client-certificate-based).


Even when the crafted AIA-request access resouces on some external
resouce (originally accessible to the attacker), the attacker might
entice the lighthearted AIA-follower to employ any kind of locally
available credentials by first playing DNS tricks on the client.
How safe is the installed base to inappropriate glue records
on _valid_ DNS lookup/responses -- something that should be doable
as a side effect of HTTP-redirects or multiple URLs with initial
failure of attacker-supplied AIA URIs?


-Martin

From yngve@opera.com  Wed Aug  4 14:10:10 2010
Return-Path: <yngve@opera.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 5AC363A6A49; Wed,  4 Aug 2010 14:10:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 1qTPcYkGOBCA; Wed,  4 Aug 2010 14:10:09 -0700 (PDT)
Received: from smtp.opera.com (smtp.opera.com [213.236.208.81]) by core3.amsl.com (Postfix) with ESMTP id A9A223A6A48; Wed,  4 Aug 2010 14:10:08 -0700 (PDT)
Received: from acorna.invalid.invalid (219.71.202.84.customer.cdi.no [84.202.71.219]) (authenticated bits=0) by smtp.opera.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o74LAXmQ002331 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 4 Aug 2010 21:10:35 GMT
Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes
To: "Marsh Ray" <marsh@extendedsubset.com>, "Martin Rex" <mrex@sap.com>
References: <201008042039.o74Kd8TP014387@fs4113.wdf.sap.corp>
Date: Wed, 04 Aug 2010 23:10:30 +0200
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
From: "Yngve N. Pettersen (Developer Opera Software ASA)" <yngve@opera.com>
Organization: Opera Software AS
Message-ID: <op.vgxmfsfrqrq7tp@acorna.invalid.invalid>
In-Reply-To: <201008042039.o74Kd8TP014387@fs4113.wdf.sap.corp>
User-Agent: Opera Mail/10.60 (Win32)
Cc: pkix@ietf.org, tmiller@mitre.org, tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 21:10:10 -0000

On Wed, 04 Aug 2010 22:39:08 +0200, Martin Rex <mrex@sap.com> wrote:

> Marsh Ray wrote:
>>
>> For example, is this outbound connection willing to authenticate with
>> the credentials of the user? Nearly every form of user credentials have
>> turned out to be forwardable in one way or another.
>
> Possible problems;+
>
> That crafted AIA-request could potentially "leak" information,
> including sensitive information through a protocol of the attackers
> choice to a target of the attackers choice (cookies, other
> http-header-field contents, http-refererrers, basic authentication
> credentials).

Opera's AIA/OCSP/CRL requests are sent with cookies, referrers, etc.  
disabled; and additionally anything which would cause a user-interaction  
will immediately cause the request to fail.

At most the request will display what it sends to other server from a  
clean install, the usual set of Accept headers and other normal HTTP  
headers.

> That crafted AIA-request could be accessing resources that are not
> accessible to the attacker himself with a protocol of the attackers  
> choice
> and result in reaction that help the attacker in carrying out a more
> complex attack (like opening ports on a NAT-style firewall).

Opera have policies in place that prevent many kinds of cross  
network-category attacks, including that one.

As for AIA itself, I will note that it is documented in RFC 5280, sec.  
4.2.2.1 for precisely the purpose it is being used for by Opera

    In a public key certificate, the id-ad-caIssuers OID is used when the
    additional information lists certificates that were issued to the CA
    that issued the certificate containing this extension.  The
    referenced CA issuers description is intended to aid certificate
    users in the selection of a certification path that terminates at a
    point trusted by the certificate user.

The kind of crafted URLs you are concerned about can also be injected by  
way of OCSP and CRL URLs, and OCSP is AFAICT actually supported by more  
clients than AIA CA.

Also, injecting those URLs also indicate either the ability to trick the  
user into visiting the malicious site, or the attacker already have  
complete control over the user's unencrypted connection, in which case  
there are far easier ways to inject such URLs for most purposes.

-- 
Sincerely,
Yngve N. Pettersen

********************************************************************
Senior Developer                     Email: yngve@opera.com
Opera Software ASA                   http://www.opera.com/
Phone:  +47 24 16 42 60              Fax:    +47 24 16 40 01
********************************************************************

From rob.stradling@comodo.com  Wed Aug  4 15:03:45 2010
Return-Path: <rob.stradling@comodo.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 0CB6D3A69DB for <tls@core3.amsl.com>; Wed,  4 Aug 2010 15:03:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.367
X-Spam-Level: 
X-Spam-Status: No, score=-5.367 tagged_above=-999 required=5 tests=[AWL=0.310,  BAYES_00=-2.599, HELO_MISMATCH_NET=0.611, HOST_MISMATCH_COM=0.311, RCVD_IN_DNSWL_MED=-4]
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 h3lwFkposMf6 for <tls@core3.amsl.com>; Wed,  4 Aug 2010 15:03:42 -0700 (PDT)
Received: from ian.brad.office.comodo.net (brad.comodogroup.com [82.109.38.202]) by core3.amsl.com (Postfix) with ESMTP id 6581F3A6A89 for <tls@ietf.org>; Wed,  4 Aug 2010 15:03:40 -0700 (PDT)
Received: (qmail 2580 invoked by uid 1000); 4 Aug 2010 22:04:08 -0000
Received: from nigel.brad.office.comodo.net (HELO nigel.localnet) (192.168.0.58) by ian.brad.office.comodo.net (qpsmtpd/0.40) with (AES256-SHA encrypted) ESMTPS; Wed, 04 Aug 2010 23:04:08 +0100
From: Rob Stradling <rob.stradling@comodo.com>
To: yngve@opera.com
Date: Wed, 4 Aug 2010 23:04:05 +0100
User-Agent: KMail/1.13.3 (Linux/2.6.32-gentoo-r7; KDE/4.4.4; i686; ; )
References: <E1OfxqR-00006L-FJ@wintermute02.cs.auckland.ac.nz> <201008032046.38830.rob.stradling@comodo.com> <op.vgw4c3czvqd7e2@killashandra.oslo.osa>
In-Reply-To: <op.vgw4c3czvqd7e2@killashandra.oslo.osa>
MIME-Version: 1.0
Content-Type: Text/Plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
Message-Id: <201008042304.05996.rob.stradling@comodo.com>
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate Status extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 22:03:45 -0000

On Wednesday 04 August 2010 15:40:05 Yngve Nysaeter Pettersen wrote:
> On Tue, 03 Aug 2010 21:46:38 +0200, Rob Stradling
> 
> <rob.stradling@comodo.com> wrote:
> > In another thread, Kyle H today wrote:
> > "...why not change the ASN.1 to allow for multiple individual responses
> > in a
> > SEQUENCE or SET?"
> 
> I suspect that this is about responses for multiple certificates for the
> same issuer.

I suspect not.  BasicOCSPResponse already allows a single Response to contain 
status information about multiple certificates for the same issuer.

In fact, BasicOCSPResponse already allows a single Response to contain status 
information about multiple certificates from *multiple issuers*.  The problem, 
of course, is that a BasicOCSPResponse may only be signed by a single entity, 
so this kind of Response could only ever be useful in a "local configuration 
of OCSP signing authority" (RFC 2560 section 4.2.2.2 option 1) context.

> I am not sure how well this will work for clients like Opera, since we are
> associating the response with the URL for retrieving it, we don't add it
> to a repository.

First you wanted to try to avoid requiring updates to Servers that already 
support OCSP "stapling".  Are you now suggesting that Clients cannot be 
updated either?

> I also suspect that we will seldom encounter a certificate that was
> matched by that response anyway.
> 
> > This is another possible way forward for "Multiple OCSP".
> > 
> > I suppose it would need a new "responseType" OID - something like...
> > id-pkix-ocsp-multiple  OBJECT IDENTIFIER ::= { id-pkix-ocsp 2 }
> >
> > The "response" OCTET STRING would contain a SEQUENCE OF (or SET OF)
> > BasicOCSPResponse (rather than just a single BasicOCSPResponse).
> 
> If you mean that the sequence should include the OCSP responses for each
> intermediate, as well as the end entity certificate,

Yes, I do mean that.

> that will not work unless the responder is signing with a certificate issued
> directly from the Root, and which is somehow designated as the signer fore
> each > certificate in the chain.

I say it will work.  You seem to be assuming that each BasicOCSPResponse in 
the SEQUENCE/SET would contain a signature generated by the same 
key/certificate.  I never said that.  Rather, each BasicOCSPResponse in the 
SEQUENCE/SET would contain a signature generated by a key/certificate that is 
authorized to sign it.  If the Responder is not authoritative for one (or 
more) certificates in the chain, then it could either i) "staple" a valid 
BasicOCSPResponse obtained from another Responder, or ii) simply not include a 
BasicOCSPResponse for this certificate (which would cause the Client to try 
looking somewhere else for status info about that certificate).

> If the signer of the end entity cert was allowed to sign responses for the
> intermediate, it would be allowed to create the revocation information
> about its own status (which should only be presented by the issuer
> itself), so it would need to be a designated responder cert issued by the
> Root.
> 
> Such a designated cert would probably become logistical problem for a Root
> hierarchy that have many independent intermediates, and essentially the
> Root issuer would have to maintain a revocation service for all subCAs.

This is a different idea.

If we could designate the Root Certificate and/or a designated Responder 
certificate issued by the Root Certificate as "Authorized Responders" for 
signing OCSP Response information for all certificates in the chain, then the 
existing ASN.1 would be sufficient for "Multiple OCSP".
However, Clients, Servers and Responders would all need code updates.  Also, 
there would be nothing technically to prevent Root Certificate A from cross-
certifying Root Certificate B (without Root Certificate B's consent), which 
would give Root Certificate A the power to make up OCSP status information for 
all certificates that chain up to Root Certificate B.

> Storing the full signed response from the issuer in the response would
> prevent such a logistical problem, but would create a larger response,
> which might cause other logistical problems.

"Storing the full signed response from the issuer in the response" is what my 
previous post proposed.

My proposal wouldn't "create a larger response", but it would require ASN.1 
changes.

Rob Stradling
Senior Research & Development Scientist
COMODO - Creating Trust Online
Office Tel: +44.(0)1274.730505
Office Fax: +44.(0)1274.730909
www.comodo.com

COMODO CA Limited, Registered in England No. 04058690
Registered Office:
  3rd Floor, 26 Office Village, Exchange Quay,
  Trafford Road, Salford, Manchester M5 3EQ

This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender by replying
to the e-mail containing this attachment. Replies to this email may be
monitored by Comodo for operational or business reasons. Whilst every
endeavour is taken to ensure that e-mails are free from viruses, no liability
can be accepted and the recipient is requested to use their own virus checking
software.

From mrex@sap.com  Wed Aug  4 16:06:59 2010
Return-Path: <mrex@sap.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 55E493A6A92; Wed,  4 Aug 2010 16:06:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.708
X-Spam-Level: 
X-Spam-Status: No, score=-9.708 tagged_above=-999 required=5 tests=[AWL=0.541,  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 43VVXwSR4-mu; Wed,  4 Aug 2010 16:06:57 -0700 (PDT)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.170]) by core3.amsl.com (Postfix) with ESMTP id 9536A3A6A89; Wed,  4 Aug 2010 16:06:56 -0700 (PDT)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o74N7Ogm023663 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 5 Aug 2010 01:07:24 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201008042307.o74N7NbH022733@fs4113.wdf.sap.corp>
To: yngve@opera.com (Yngve N. Pettersen)
Date: Thu, 5 Aug 2010 01:07:22 +0200 (MEST)
In-Reply-To: <op.vgxmfsfrqrq7tp@acorna.invalid.invalid> from "Yngve N. Pettersen" at Aug 4, 10 11:10:30 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal06
X-SAP: out
Cc: pkix@ietf.org, tmiller@mitre.org, tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 23:06:59 -0000

Yngve N. Pettersen wrote:
> 
> On Wed, 04 Aug 2010 22:39:08 +0200, Martin Rex <mrex@sap.com> wrote:
> 
> > Marsh Ray wrote:
> >>
> >> For example, is this outbound connection willing to authenticate with
> >> the credentials of the user? Nearly every form of user credentials have
> >> turned out to be forwardable in one way or another.
> >
> > Possible problems;+
> >
> > That crafted AIA-request could potentially "leak" information,
> > including sensitive information through a protocol of the attackers
> > choice to a target of the attackers choice (cookies, other
> > http-header-field contents, http-refererrers, basic authentication
> > credentials).
> 
> Opera's AIA/OCSP/CRL requests are sent with cookies, referrers, etc.  
> disabled; and additionally anything which would cause a user-interaction  
> will immediately cause the request to fail.

I'm slightly more concerned about what MSIE will do, because that
is still a pretty common browser supplied to IT departments...

The issue is, that it is so easy to get it wrong, that some implementations
are going to get it wrong.  If commercial CAs issue X.509v3 CA(!) certs
without Basic Constraints and KeyUsage, and none of the browser vendors
complains about this, but instead ship it as pretrusted, then I have
little hope about this one.

> 
> > That crafted AIA-request could be accessing resources that are not
> > accessible to the attacker himself with a protocol of the attackers  
> > choice
> > and result in reaction that help the attacker in carrying out a more
> > complex attack (like opening ports on a NAT-style firewall).
> 
> Opera have policies in place that prevent many kinds of cross  
> network-category attacks, including that one.

Huh?  How?

The idea to check digital signatures only with trusted keying material
is that an attacker can not entice you to verify digital signatures
with megabit-sized keys that aren't trusted anyway.  While I could
think of effective plausibility checks for key sizes, it is currently
unclear to me how you limit to which hosts AIA could connect.
An attacker could certainly add an IP-address of your internal
network to a DNS zone under his control, and what about HTTP redirects?


>
> As for AIA itself, I will note that it is documented in RFC 5280, sec.  
> 4.2.2.1 for precisely the purpose it is being used for by Opera
> 
>     In a public key certificate, the id-ad-caIssuers OID is used when the
>     additional information lists certificates that were issued to the CA
>     that issued the certificate containing this extension.  The
>     referenced CA issuers description is intended to aid certificate
>     users in the selection of a certification path that terminates at a
>     point trusted by the certificate user.

Well, at least rfc-5280 includes the conscious user firmly within
the loop of "aid certificate users in the seledtion of a certification
path".

The concern that I've been voicing is AIA-retrieval without involving
the conscious decision of a user to access a arbitrary resource from
a completely untrusted potential attacker.


> 
> The kind of crafted URLs you are concerned about can also be injected by  
> way of OCSP and CRL URLs, and OCSP is AFAICT actually supported by more  
> clients than AIA CA.

That is incorrect.  The path validation algorithm checks cryptographic
correctness and certificate (attribute) validity starting at a trust
anchor first, and ONLY when that succeeds, CRLs and OCSP is checked.
So when doing path validation correctly, you never access untrusted
CRL and OCSP resources.


> 
> Also, injecting those URLs also indicate either the ability to trick the  
> user into visiting the malicious site, or the attacker already have  
> complete control over the user's unencrypted connection, in which case  
> there are far easier ways to inject such URLs for most purposes.

A user that only ever used HTTPS to access only sites that he trusts
was originally protected from attackers capable of blindly injecting
a ServerHello+ServerCertificate data into the receiving side of 
a new TCP to someone elses Web Server on port 443.
(or any other outgoing protocol involving SSL/TLS for
generic TLS implementations other than browsers with AIA-retrieval).

The use of SSL should make users of that technology _more_ secure,
and avoid "adding value" of the kind of an significant additional
attack surface to the software and environment of the user.


Concerning sensible client behaviour:
3 years ago I received an S/Mime signed EMail confirming the order
of a replacement keycard for my (company car) from the maintenance
contractor.  There were two certs included in the S/Mime signature
(signature cert of contractors employee and cert of an intermediateCA),
but the Root CA (CN=RootCA <Car-Manufacturer>, O=<car-manufacturer>"
was missing and is not publicly available (I still don't have it today).
While MS CryptoAPI might be capable and willing to perform extremely
dangerous things as secretly accessing arbitrary attacker-supplied
AIA-cert-locations, I find myself completely unable (w2k3) to mark that
intermediateCA cert as trusted and get the signature verified.
(the option to select the signer cert as trusted is greyed out, which
 might be a group/domain policy issue either based on dumb defaults
 or deliberate choice of an uninformed admin).


So by leaving it up to implementors to come up with sensible
implementation choices for security-relevant characteristics,
you may easily end up with something that's both insecure and
usability-impaired...


-Martin

From Nicolas.Williams@oracle.com  Wed Aug  4 17:12:44 2010
Return-Path: <Nicolas.Williams@oracle.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id AA1B83A6A90; Wed,  4 Aug 2010 17:12:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.489
X-Spam-Level: 
X-Spam-Status: No, score=-6.489 tagged_above=-999 required=5 tests=[AWL=0.109,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 DgXoiaHhcy8O; Wed,  4 Aug 2010 17:12:42 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id DBE773A6989; Wed,  4 Aug 2010 17:12:41 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o750D9nw032327 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 5 Aug 2010 00:13:11 GMT
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o74LfZMS022722; Thu, 5 Aug 2010 00:13:08 GMT
Received: from abhmt009.oracle.com by acsmt354.oracle.com with ESMTP id 467217841280967104; Wed, 04 Aug 2010 17:11:44 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 04 Aug 2010 17:11:42 -0700
Date: Wed, 4 Aug 2010 19:11:38 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Martin Rex <mrex@sap.com>
Message-ID: <20100805001137.GE5213@oracle.com>
References: <op.vgxmfsfrqrq7tp@acorna.invalid.invalid> <201008042307.o74N7NbH022733@fs4113.wdf.sap.corp>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <201008042307.o74N7NbH022733@fs4113.wdf.sap.corp>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Source-IP: acsmt353.oracle.com [141.146.40.153]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090206.4C5A0215.0126:SCFMA4539814,ss=1,fgs=0
Cc: pkix@ietf.org, tmiller@mitre.org, tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2010 00:12:45 -0000

On Thu, Aug 05, 2010 at 01:07:22AM +0200, Martin Rex wrote:
> Yngve N. Pettersen wrote:
> > The kind of crafted URLs you are concerned about can also be injected by  
> > way of OCSP and CRL URLs, and OCSP is AFAICT actually supported by more  
> > clients than AIA CA.
> 
> That is incorrect.  The path validation algorithm checks cryptographic
> correctness and certificate (attribute) validity starting at a trust
> anchor first, and ONLY when that succeeds, CRLs and OCSP is checked.

That's true of path _validation_.  It's not necessarily true of path
_construction_ (see RFC4158).  That is, if you start with an EE cert you
might have to go find the intermediate CA certs.

> So when doing path validation correctly, you never access untrusted
> CRL and OCSP resources.

If you're building a path from the target to the anchor then you'll
probably want to prune paths as soon as possible by validating
intermediate CA certs as soon as possible.

Nico
-- 

From mrex@sap.com  Wed Aug  4 18:02:55 2010
Return-Path: <mrex@sap.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 17C423A66B4; Wed,  4 Aug 2010 18:02:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.737
X-Spam-Level: 
X-Spam-Status: No, score=-9.737 tagged_above=-999 required=5 tests=[AWL=0.512,  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 8UYgwcZ9iZZc; Wed,  4 Aug 2010 18:02:53 -0700 (PDT)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.170]) by core3.amsl.com (Postfix) with ESMTP id 7B3553A6407; Wed,  4 Aug 2010 18:02:52 -0700 (PDT)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o7513HqJ013464 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 5 Aug 2010 03:03:22 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201008050103.o7513F15000806@fs4113.wdf.sap.corp>
To: Nicolas.Williams@oracle.com (Nicolas Williams)
Date: Thu, 5 Aug 2010 03:03:15 +0200 (MEST)
In-Reply-To: <20100805001137.GE5213@oracle.com> from "Nicolas Williams" at Aug 4, 10 07:11:38 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal06
X-SAP: out
Cc: pkix@ietf.org, tmiller@mitre.org, tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2010 01:02:55 -0000

Nicolas Williams wrote:
> 
> On Thu, Aug 05, 2010 at 01:07:22AM +0200, Martin Rex wrote:
> > Yngve N. Pettersen wrote:
> > > The kind of crafted URLs you are concerned about can also be injected by  
> > > way of OCSP and CRL URLs, and OCSP is AFAICT actually supported by more  
> > > clients than AIA CA.
> > 
> > That is incorrect.  The path validation algorithm checks cryptographic
> > correctness and certificate (attribute) validity starting at a trust
> > anchor first, and ONLY when that succeeds, CRLs and OCSP is checked.
> 
> That's true of path _validation_.  It's not necessarily true of path
> _construction_ (see RFC4158).  That is, if you start with an EE cert you
> might have to go find the intermediate CA certs.

I don't know rfc4158, but I don't see how a standardization level
should marginalize a severe security problem.  The TLS renegotation
problem was not less severe by working-as-specified and being
commonly implemented in the installed base.  :-/

And I see a big difference in a user trying to manually and interatively
construct a certification path and consciously deciding to include
individual, not necessarily pre-trusted sources of information --
as long as it is not possible for an attacker to entice this
construction to perform accesses to arbitrary resources without
limits and entirely without critical consent and interaction of
the entity doing the path construction.


While the relative ordering of 6.1.3 a1, a2, a3 makes a lot of sense
security-wise, I'm confused to see a4 as the last check instead of
the first(!) one.  Comparison of the issuer field should be a memcmp()
on a ASN.1 DER encoded DName, and it looks odd to suggest doing a likely
expensive public key operation before a trivial memcmp() without
a rationale (I can not currently think of a rationale for this).

http://tools.ietf.org/html/rfc5280#section-6.1.3


> 
> > So when doing path validation correctly, you never access untrusted
> > CRL and OCSP resources.
> 
> If you're building a path from the target to the anchor then you'll
> probably want to prune paths as soon as possible by validating
> intermediate CA certs as soon as possible.

Validating in the form of pruning "expired" or otherwise clearly
inappropriate certs based on "cheap" plausibility checks on certificate
attributes?  Maybe to a limited extent.  Public key crypto operation
with untrusted keying material or even worse, network access based
on URIs from untrusted sources -- certainly not without explicit
user/operator confirmation!

For the case of TLS, however, it has always been a clear requirement
for each communication peer to build and send one own's certificate
in a complete and corretly ordered sequence, optionially omitting
at most the self-signed root certificate at the end of that chain.
So really, a server with a certificate from a fancy briged CA should
definitely, similar to the "server name indication" get a TLS
ClientHello extension defined and have the client provide hints
about the trust anchors if the server is unable to send a certificate
chain acceptable to the client's certificate path validation
algorithm as-is without such information.


-Martin

From Nicolas.Williams@oracle.com  Wed Aug  4 18:55:54 2010
Return-Path: <Nicolas.Williams@oracle.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 239953A6784; Wed,  4 Aug 2010 18:55:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.492
X-Spam-Level: 
X-Spam-Status: No, score=-6.492 tagged_above=-999 required=5 tests=[AWL=0.106,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 zTXEbYGEUnyC; Wed,  4 Aug 2010 18:55:53 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id E4E8C3A68DE; Wed,  4 Aug 2010 18:55:52 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o751uLdh030875 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 5 Aug 2010 01:56:22 GMT
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o74LfZPI022722; Thu, 5 Aug 2010 01:56:19 GMT
Received: from abhmt002.oracle.com by acsmt353.oracle.com with ESMTP id 467377271280973290; Wed, 04 Aug 2010 18:54:50 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 04 Aug 2010 18:54:49 -0700
Date: Wed, 4 Aug 2010 20:54:44 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Martin Rex <mrex@sap.com>
Message-ID: <20100805015444.GF5213@oracle.com>
References: <20100805001137.GE5213@oracle.com> <201008050103.o7513F15000806@fs4113.wdf.sap.corp>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <201008050103.o7513F15000806@fs4113.wdf.sap.corp>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Source-IP: acsmt353.oracle.com [141.146.40.153]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090207.4C5A1A44.016A:SCFMA4539814,ss=1,fgs=0
Cc: pkix@ietf.org, tmiller@mitre.org, tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2010 01:55:54 -0000

On Thu, Aug 05, 2010 at 03:03:15AM +0200, Martin Rex wrote:
> Nicolas Williams wrote:
> > 
> > On Thu, Aug 05, 2010 at 01:07:22AM +0200, Martin Rex wrote:
> > > Yngve N. Pettersen wrote:
> > > > The kind of crafted URLs you are concerned about can also be injected by  
> > > > way of OCSP and CRL URLs, and OCSP is AFAICT actually supported by more  
> > > > clients than AIA CA.
> > > 
> > > That is incorrect.  The path validation algorithm checks cryptographic
> > > correctness and certificate (attribute) validity starting at a trust
> > > anchor first, and ONLY when that succeeds, CRLs and OCSP is checked.
> > 
> > That's true of path _validation_.  It's not necessarily true of path
> > _construction_ (see RFC4158).  That is, if you start with an EE cert you
> > might have to go find the intermediate CA certs.
> 
> I don't know rfc4158, but I don't see how a standardization level
> should marginalize a severe security problem.  The TLS renegotation
> problem was not less severe by working-as-specified and being
> commonly implemented in the installed base.  :-/

FYI, RFC4158 is Informational.  But surely you can see that it's easier
to build validation paths from the ee cert to a trust anchor than it is
to do it the opposite way.  If you don't want to use AIA then you need a
directory where you can find the intermediate CA certs.  But for a
sufficiently large/complex PKI that might require keeping a large
databse in sync across many orgs, that is, not trivial.

The point is that using AIA is simpler than not.  In traditional PKIs,
and with your peer sending you their cert chain, (see below) there
should be no need to use AIA.

What can be done to improve the AIA situation is to constraint AIA URLs
such that, for example, they cannot specify arbitrary port numbers, and
to very few URL schemes (HTTP and LDAP should suffice).  Yes, this means
you could cause a relying party to attempt an HTTP GET from or LDAP
search on random servers.  As you say, the best option is to have the
peer send you a cert chain that you can validate from the root to the EE
cert (that way you're never following untrusted URLs).  But will your
peers be able to do that if you have a complex PKI?

> And I see a big difference in a user trying to manually and
> interatively construct a certification path and consciously deciding
> to include individual, not necessarily pre-trusted sources of
> information -- as long as it is not possible for an attacker to entice
> this construction to perform accesses to arbitrary resources without
> limits and entirely without critical consent and interaction of the
> entity doing the path construction.

I would like to agree about interaction, but... what's the user to do
with a prompt about whether to follow a given AIA URL??  They're only
going to answer "yes".

One option might be to implement SCVP (RFC5055) -- SCVP servers can
cache path consturction results effectively enough to minimize the
impact of AIA attacks.

> > If you're building a path from the target to the anchor then you'll
> > probably want to prune paths as soon as possible by validating
> > intermediate CA certs as soon as possible.
> 
> Validating in the form of pruning "expired" or otherwise clearly
> inappropriate certs based on "cheap" plausibility checks on certificate
> attributes?  Maybe to a limited extent.  Public key crypto operation
> with untrusted keying material or even worse, network access based
> on URIs from untrusted sources -- certainly not without explicit
> user/operator confirmation!

The whole point is to establish trust by establishing a path to a
trust anchor.  Eventually you'll know if the EE cert and the
intermediate CA certs are valid, or that the EE cert is not valid, or
that no valid path can be constructed, or that some intermediate CA
cert is invalid (if you're constructing a path then you'll stop when you
find an invalid intermediate CA cert and run out of path construction
options).

> For the case of TLS, however, it has always been a clear requirement
> for each communication peer to build and send one own's certificate
> in a complete and corretly ordered sequence, optionially omitting
> at most the self-signed root certificate at the end of that chain.

If you have a non-traditional PKI then the path sent by the peer may
only be partially helpful.  (Though in that case you probably won't be
using AIA but instead searching a directory or configuration.)

> So really, a server with a certificate from a fancy briged CA should
> definitely, similar to the "server name indication" get a TLS
> ClientHello extension defined and have the client provide hints
> about the trust anchors if the server is unable to send a certificate
> chain acceptable to the client's certificate path validation
> algorithm as-is without such information.

Yes.

Nico
-- 

From mrex@sap.com  Wed Aug  4 19:17:31 2010
Return-Path: <mrex@sap.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id EB5DF3A6A9E; Wed,  4 Aug 2010 19:17:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.75
X-Spam-Level: 
X-Spam-Status: No, score=-9.75 tagged_above=-999 required=5 tests=[AWL=0.499,  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 lm5DD-fj3P75; Wed,  4 Aug 2010 19:17:30 -0700 (PDT)
Received: from smtpde02.sap-ag.de (smtpde02.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id 75BA73A6A99; Wed,  4 Aug 2010 19:17:29 -0700 (PDT)
Received: from mail.sap.corp by smtpde02.sap-ag.de (26) with ESMTP id o752HxOs025982 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 5 Aug 2010 04:17:59 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201008050217.o752HvUT004644@fs4113.wdf.sap.corp>
To: Nicolas.Williams@oracle.com (Nicolas Williams)
Date: Thu, 5 Aug 2010 04:17:57 +0200 (MEST)
In-Reply-To: <20100805015444.GF5213@oracle.com> from "Nicolas Williams" at Aug 4, 10 08:54:44 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal08
X-SAP: out
Cc: pkix@ietf.org, tmiller@mitre.org, tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2010 02:17:32 -0000

Nicolas Williams wrote:
> 
> If you have a non-traditional PKI then the path sent by the peer may
> only be partially helpful.  (Though in that case you probably won't be
> using AIA but instead searching a directory or configuration.)
> 
> > So really, a server with a certificate from a fancy briged CA should
> > definitely, similar to the "server name indication" get a TLS
> > ClientHello extension defined and have the client provide hints
> > about the trust anchors if the server is unable to send a certificate
> > chain acceptable to the client's certificate path validation
> > algorithm as-is without such information.

And if you have a fancy bridged CA, you will likely have the requirement
to add and maintain your own RootCA cert(s) into the trust anchor stores of
an of-the-shelf software/browser anyway, so you should be able to
use the exact same mechanism to push all necessary bridgeCAs
to your clients entirely obviating the need for AIA-cert-downloads.

Well, except maybe if you're just deploying Microsoft Windows 7 and
realize that your existing schemes for client certificate enrollment
and distribution of RootCA certs that worked on previous versions
of Windows fail in unexpected ways...(*)  But that is a regular software
maintenance issue otherwise irrelevant for the issue at hand.


-Martin

(*) like the bug described for the AllowUntrustedRoot value for the
    Restrictions parameter, which was defective in Vista rtm, fixed in SP1
    and seems to have regressioned back into 7rtm:

http://msdn.microsoft.com/en-us/library/aa378051%28VS.85%29.aspx

From Nicolas.Williams@oracle.com  Wed Aug  4 23:02:44 2010
Return-Path: <Nicolas.Williams@oracle.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 26C853A67FE; Wed,  4 Aug 2010 23:02:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.495
X-Spam-Level: 
X-Spam-Status: No, score=-6.495 tagged_above=-999 required=5 tests=[AWL=0.103,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 qm7Jasj3FKfP; Wed,  4 Aug 2010 23:02:38 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 5152E3A69E6; Wed,  4 Aug 2010 23:02:38 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o75636EO009209 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 5 Aug 2010 06:03:07 GMT
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o752RCV0018449; Thu, 5 Aug 2010 06:03:04 GMT
Received: from abhmt017.oracle.com by acsmt354.oracle.com with ESMTP id 467798641280988179; Wed, 04 Aug 2010 23:02:59 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 04 Aug 2010 23:02:59 -0700
Date: Thu, 5 Aug 2010 01:02:54 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Martin Rex <mrex@sap.com>
Message-ID: <20100805060254.GG5213@oracle.com>
References: <20100805015444.GF5213@oracle.com> <201008050217.o752HvUT004644@fs4113.wdf.sap.corp>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <201008050217.o752HvUT004644@fs4113.wdf.sap.corp>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Source-IP: acsmt353.oracle.com [141.146.40.153]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A0B0202.4C5A541A.0007:SCFMA4539814,ss=1,fgs=0
Cc: pkix@ietf.org, tmiller@mitre.org, tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2010 06:02:44 -0000

On Thu, Aug 05, 2010 at 04:17:57AM +0200, Martin Rex wrote:
> Nicolas Williams wrote:
> > 
> > If you have a non-traditional PKI then the path sent by the peer may
> > only be partially helpful.  (Though in that case you probably won't be
> > using AIA but instead searching a directory or configuration.)
> > 
> > > So really, a server with a certificate from a fancy briged CA should
> > > definitely, similar to the "server name indication" get a TLS
> > > ClientHello extension defined and have the client provide hints
> > > about the trust anchors if the server is unable to send a certificate
> > > chain acceptable to the client's certificate path validation
> > > algorithm as-is without such information.
> 
> And if you have a fancy bridged CA, you will likely have the requirement
> to add and maintain your own RootCA cert(s) into the trust anchor stores of
> an of-the-shelf software/browser anyway, so you should be able to
> use the exact same mechanism to push all necessary bridgeCAs
> to your clients entirely obviating the need for AIA-cert-downloads.

Does a TLS extension exist now by which clients and servers can provide
each other those hints?  What if there are multiple paths to a trust
anchor and the best path is not the one your peer hinted?

I'm not sure that AIA can be avoided entirely.  I'd like to hear more
about that.  But what I can tell that prompting the user about whether
to follow a cert's AIA is not practical nor useful (except in a debug
tool).  Also, if AIA can't be avoided then note that if AIA URLs are
sufficiently constrained then the harm they can cause can be limited,
and that when SCVP is used such harm can be further limited.

Nico
-- 

From pgut001@cs.auckland.ac.nz  Thu Aug  5 02:53:05 2010
Return-Path: <pgut001@cs.auckland.ac.nz>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E13103A690C; Thu,  5 Aug 2010 02:53:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.168
X-Spam-Level: 
X-Spam-Status: No, score=-3.168 tagged_above=-999 required=5 tests=[AWL=0.431,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 2DbexgusIso4; Thu,  5 Aug 2010 02:53:03 -0700 (PDT)
Received: from mx2-int.auckland.ac.nz (mx2-int.auckland.ac.nz [130.216.12.41]) by core3.amsl.com (Postfix) with ESMTP id A301E3A68B7; Thu,  5 Aug 2010 02:53:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=pgut001@cs.auckland.ac.nz; q=dns/txt; s=uoa; t=1281002013; x=1312538013; h=from:to:subject:cc:in-reply-to:message-id:date; z=From:=20Peter=20Gutmann=20<pgut001@cs.auckland.ac.nz> |To:=20mrex@sap.com|Subject:=20Re:=20[pkix]=20[TLS]=20New =20version=20of=20Multiple=20OCSP=20mode=20of=20Certifica te=20Status|Cc:=20pkix@ietf.org,=20tls@ietf.org |In-Reply-To:=20<201008041826.o74IQY9c006745@fs4113.wdf.s ap.corp>|Message-Id:=20<E1Ogx8f-0007M9-Ix@wintermute02.cs .auckland.ac.nz>|Date:=20Thu,=2005=20Aug=202010=2021:53:2 5=20+1200; bh=4SSBmCEsMaH+wPzNpIixl9lA6tnCDguWDduqaxnnD/U=; b=fegcKhBOX5gr4rdKJW4umLJjwDpLmHY0ku/WkvPvtpj9SV5VZ93nvBBr ZwCCqnFjMfZLlLt43WIo8yzwf6wvjeDn+5F+243LOtDfHH84yL8BbTWl9 8aK4l5/d61ngQJxaqCqAY9pV0TsShJWeRrih4nf3maldlyJ4msMbaP0TD g=;
X-IronPort-AV: E=Sophos;i="4.55,320,1278244800"; d="scan'208";a="19391236"
X-Ironport-HAT: UNIVERSITY - $RELAY-THROTTLE
X-Ironport-Source: 130.216.207.92 - Outgoing - Outgoing
Received: from wintermute02.cs.auckland.ac.nz ([130.216.207.92]) by mx2-int.auckland.ac.nz with ESMTP/TLS/AES256-SHA; 05 Aug 2010 21:53:25 +1200
Received: from pgut001 by wintermute02.cs.auckland.ac.nz with local (Exim 4.69) (envelope-from <pgut001@cs.auckland.ac.nz>) id 1Ogx8f-0007M9-Ix; Thu, 05 Aug 2010 21:53:25 +1200
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: mrex@sap.com
In-Reply-To: <201008041826.o74IQY9c006745@fs4113.wdf.sap.corp>
Message-Id: <E1Ogx8f-0007M9-Ix@wintermute02.cs.auckland.ac.nz>
Date: Thu, 05 Aug 2010 21:53:25 +1200
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate Status
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2010 09:53:06 -0000

Martin Rex <mrex@sap.com> writes:

>Now if the browser performs AIA retrieval for unverified server certs, then
>this scenario is suddenly completely unprotected against active attacks where
>the attacker serves a manufactured server certificate with crafted AIA (but
>matching the server identity of the online banking account in the CN= or
>dNSName SAN.

Even more entertaining is sending in a client cert chain with a sequence of 
AIAs pointing to portions of common RFC 1918 address spaces.  You then time 
the server response time based on whether it gets an immediate ECONNREFUSED or 
similar, or has to time out.  First you check for the presence of a server at 
a given address using some common port like 445 and then you fingerprint it to 
see what's running, e.g. SQL server.  Hey presto, remote internal-network 
scanning via certificates.

(Just for the record, I had permission from the server admin to do this, at
least the second time I tried it :-).

Peter.

From pgut001@cs.auckland.ac.nz  Thu Aug  5 03:49:46 2010
Return-Path: <pgut001@cs.auckland.ac.nz>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D2F6F3A6860; Thu,  5 Aug 2010 03:49:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.183
X-Spam-Level: 
X-Spam-Status: No, score=-3.183 tagged_above=-999 required=5 tests=[AWL=0.416,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 WP0ZcnKMco3y; Thu,  5 Aug 2010 03:49:45 -0700 (PDT)
Received: from mx2-int.auckland.ac.nz (mx2-int.auckland.ac.nz [130.216.12.41]) by core3.amsl.com (Postfix) with ESMTP id 41E613A67EC; Thu,  5 Aug 2010 03:49:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=pgut001@cs.auckland.ac.nz; q=dns/txt; s=uoa; t=1281005416; x=1312541416; h=from:to:subject:cc:in-reply-to:message-id:date; z=From:=20Peter=20Gutmann=20<pgut001@cs.auckland.ac.nz> |To:=20mrex@sap.com|Subject:=20Re:=20[TLS]=20New=20versio n=20of=20Multiple=20OCSP=20mode=20of=20Certificate=20Stat us|Cc:=20pkix@ietf.org,=20tls@ietf.org|In-Reply-To:=20<20 1008041915.o74JFM9X009405@fs4113.wdf.sap.corp> |Message-Id:=20<E1Ogy1c-0007pI-HJ@wintermute02.cs.aucklan d.ac.nz>|Date:=20Thu,=2005=20Aug=202010=2022:50:12=20+120 0; bh=dcBtO60yKxBRGJPxZQ+CNWQziVPoGns5LBEplwj6Qqw=; b=nBJo5Vdfc+8qdVafIyf3ejKEvZzfUzhcly9yiyVNi2/UfuGGdKIO1iPf P4rCNfju83NVNbw6PgJfRqfogTlWuTZR7SFn17pWJ1vvPrytBv+6paG17 AXkxqqiXlHeAjVxpN46cgJtksGc6h0U5XvraFZZg8jqCMkhJvI9mEDiRn M=;
X-IronPort-AV: E=Sophos;i="4.55,320,1278244800"; d="scan'208";a="19394678"
X-Ironport-HAT: UNIVERSITY - $RELAY-THROTTLE
X-Ironport-Source: 130.216.207.92 - Outgoing - Outgoing
Received: from wintermute02.cs.auckland.ac.nz ([130.216.207.92]) by mx2-int.auckland.ac.nz with ESMTP/TLS/AES256-SHA; 05 Aug 2010 22:50:12 +1200
Received: from pgut001 by wintermute02.cs.auckland.ac.nz with local (Exim 4.69) (envelope-from <pgut001@cs.auckland.ac.nz>) id 1Ogy1c-0007pI-HJ; Thu, 05 Aug 2010 22:50:12 +1200
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: mrex@sap.com
In-Reply-To: <201008041915.o74JFM9X009405@fs4113.wdf.sap.corp>
Message-Id: <E1Ogy1c-0007pI-HJ@wintermute02.cs.auckland.ac.nz>
Date: Thu, 05 Aug 2010 22:50:12 +1200
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] New version of Multiple OCSP mode of Certificate Status
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2010 10:49:46 -0000

Martin Rex <mrex@sap.com> writes:

>An implementation compliant to any of the TLS v1.x specifications would have
>to abort the handshake with such a server due to an clear protocol violation.

... lest God smite them, because we all know how seriously God takes RFC
compliance.

Peter.

From pgut001@cs.auckland.ac.nz  Thu Aug  5 04:01:02 2010
Return-Path: <pgut001@cs.auckland.ac.nz>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id BC4E63A6B07; Thu,  5 Aug 2010 04:01:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.198
X-Spam-Level: 
X-Spam-Status: No, score=-3.198 tagged_above=-999 required=5 tests=[AWL=0.401,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 6hsAW5cIoOBC; Thu,  5 Aug 2010 04:01:01 -0700 (PDT)
Received: from mx2-int.auckland.ac.nz (mx2-int.auckland.ac.nz [130.216.12.41]) by core3.amsl.com (Postfix) with ESMTP id 5A4973A6B04; Thu,  5 Aug 2010 04:01:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=pgut001@cs.auckland.ac.nz; q=dns/txt; s=uoa; t=1281006092; x=1312542092; h=from:to:subject:cc:in-reply-to:message-id:date; z=From:=20Peter=20Gutmann=20<pgut001@cs.auckland.ac.nz> |To:=20mrex@sap.com|Subject:=20Re:=20[pkix]=20[TLS]=20New =20version=20of=20Multiple=20OCSP=20mode=20of=20Certifica te|Cc:=20pkix@ietf.org,=20tls@ietf.org|In-Reply-To:=20<20 1008041958.o74JwjlN012045@fs4113.wdf.sap.corp> |Message-Id:=20<E1OgyCZ-0007rq-7l@wintermute02.cs.aucklan d.ac.nz>|Date:=20Thu,=2005=20Aug=202010=2023:01:31=20+120 0; bh=a9TIeNzNkVtlRObJRPv+1RjmzrkmH7SkP+MtD3RI3pk=; b=oFV3npP7XwN3MgFMtBDM9+xZQEfGzN5esQt05FuXksn+87N2G/qCrLce dDOZgW0b1ipJHMiNnTgiX3KrBJMVY/R9hu0VTET7+RgsI0GFUO5m3+HGq 5fg3yKGhjxej4QSkTsHbOGwgaV9GSWd6NPlh0yzsjFP0kEBFbp207rzVL U=;
X-IronPort-AV: E=Sophos;i="4.55,320,1278244800"; d="scan'208";a="19395328"
X-Ironport-HAT: UNIVERSITY - $RELAY-THROTTLE
X-Ironport-Source: 130.216.207.92 - Outgoing - Outgoing
Received: from wintermute02.cs.auckland.ac.nz ([130.216.207.92]) by mx2-int.auckland.ac.nz with ESMTP/TLS/AES256-SHA; 05 Aug 2010 23:01:31 +1200
Received: from pgut001 by wintermute02.cs.auckland.ac.nz with local (Exim 4.69) (envelope-from <pgut001@cs.auckland.ac.nz>) id 1OgyCZ-0007rq-7l; Thu, 05 Aug 2010 23:01:31 +1200
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: mrex@sap.com
In-Reply-To: <201008041958.o74JwjlN012045@fs4113.wdf.sap.corp>
Message-Id: <E1OgyCZ-0007rq-7l@wintermute02.cs.auckland.ac.nz>
Date: Thu, 05 Aug 2010 23:01:31 +1200
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] [pkix]  New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2010 11:01:02 -0000

Martin Rex <mrex@sap.com> writes:

>I don't know who invented the concept of automatic AIA retrieval, but my
>personal intuition points to the S/Mime camp.  S/Mime is notoriously broken
>as far as the inclusion of certificates is concerned (being a heritage from
>PKCS#7).

I doubt very much it was S/MIME, S/MIME includes every cert needed along with
the message, to the point of specifying what's included as a SET OF rather
than a cert chain and explicitly allowing the inclusion of additional certs
that the sender may think are useful.  Just because they're not on the CC list
doesn't mean you can blame something like this on them...

>S/Mime and CMS are foobar.
>
>[...]
>
>AIA is a pretty dangerous idea designed to work around design flaws of an
>installed base of PKCS#7/CMS/SMime.

Did S/MIME spill its beer on you in a bar or something? :-).

Peter.

From pgut001@cs.auckland.ac.nz  Thu Aug  5 04:10:49 2010
Return-Path: <pgut001@cs.auckland.ac.nz>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 471F23A6860; Thu,  5 Aug 2010 04:10:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.211
X-Spam-Level: 
X-Spam-Status: No, score=-3.211 tagged_above=-999 required=5 tests=[AWL=0.388,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 ZkSU5gFNvyON; Thu,  5 Aug 2010 04:10:48 -0700 (PDT)
Received: from mx2-int.auckland.ac.nz (mx2-int.auckland.ac.nz [130.216.12.41]) by core3.amsl.com (Postfix) with ESMTP id 8A9873A6A95; Thu,  5 Aug 2010 04:10:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=pgut001@cs.auckland.ac.nz; q=dns/txt; s=uoa; t=1281006678; x=1312542678; h=from:to:subject:cc:in-reply-to:message-id:date; z=From:=20Peter=20Gutmann=20<pgut001@cs.auckland.ac.nz> |To:=20rob.stradling@comodo.com,=20yngve@opera.com |Subject:=20Re:=20[pkix]=20[TLS]=20New=20version=20of=20M ultiple=20OCSP=20mode=20of=20Certificate=20Status=20exten sion|Cc:=20pgut001@cs.auckland.ac.nz,=20pkix@ietf.org,=20 tls@ietf.org|In-Reply-To:=20<201008042304.05996.rob.strad ling@comodo.com>|Message-Id:=20<E1OgyM1-0007un-Db@winterm ute02.cs.auckland.ac.nz>|Date:=20Thu,=2005=20Aug=202010 =2023:11:17=20+1200; bh=om83Ge1VT5YZ5p42xNpYMKJpqi22ax2P/LlDZqjMywA=; b=D/tRIaPSotn1C2ifLx45nPoJPjSedYtPL4jSeLIHgAHexrKZAqSjf75+ EX6snOQTFRrHuFrKZR3Uuh1xlJvY7DkTW+AtvXvyE0VXyUCWMqzW3hFxv N4NwThCvNG6inVaYo2WEwuzAM1m9X0t+IB4kB/4A1+PBybcahJK/ZVfSf U=;
X-IronPort-AV: E=Sophos;i="4.55,321,1278244800"; d="scan'208";a="19395863"
X-Ironport-HAT: UNIVERSITY - $RELAY-THROTTLE
X-Ironport-Source: 130.216.207.92 - Outgoing - Outgoing
Received: from wintermute02.cs.auckland.ac.nz ([130.216.207.92]) by mx2-int.auckland.ac.nz with ESMTP/TLS/AES256-SHA; 05 Aug 2010 23:11:17 +1200
Received: from pgut001 by wintermute02.cs.auckland.ac.nz with local (Exim 4.69) (envelope-from <pgut001@cs.auckland.ac.nz>) id 1OgyM1-0007un-Db; Thu, 05 Aug 2010 23:11:17 +1200
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: rob.stradling@comodo.com, yngve@opera.com
In-Reply-To: <201008042304.05996.rob.stradling@comodo.com>
Message-Id: <E1OgyM1-0007un-Db@wintermute02.cs.auckland.ac.nz>
Date: Thu, 05 Aug 2010 23:11:17 +1200
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate Status extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2010 11:10:49 -0000

Rob Stradling <rob.stradling@comodo.com> writes:

>I suspect not.  BasicOCSPResponse already allows a single Response to contain
>status information about multiple certificates for the same issuer.

This was being used by Identrus(t) a decade ago.

(I'm not aware of anything else that uses it and from what I heard back then
support for it in implementations was basically nonexistent).

>In fact, BasicOCSPResponse already allows a single Response to contain status
>information about multiple certificates from *multiple issuers*.  The problem,
>of course, is that a BasicOCSPResponse may only be signed by a single entity,
>so this kind of Response could only ever be useful in a "local configuration
>of OCSP signing authority" (RFC 2560 section 4.2.2.2 option 1) context.

Identrus did this with their transaction coordinators (OCSP gateways), with a
single responder signing for all responders that it crawled to build a
response.

Peter.


From tmiller@mitre.org  Thu Aug  5 05:39:11 2010
Return-Path: <tmiller@mitre.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 7B21D3A697B; Thu,  5 Aug 2010 05:39:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 lmE6Rn27-YYO; Thu,  5 Aug 2010 05:39:05 -0700 (PDT)
Received: from smtp-bedford.mitre.org (smtp-bedford.mitre.org [129.83.20.191]) by core3.amsl.com (Postfix) with ESMTP id 36F1F3A69AC; Thu,  5 Aug 2010 05:39:05 -0700 (PDT)
Received: from smtp-bedford.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id o75CdZa4007310;  Thu, 5 Aug 2010 08:39:35 -0400
Received: from imchub1.MITRE.ORG (imchub1.mitre.org [129.83.29.73]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id o75CdYMs007297;  Thu, 5 Aug 2010 08:39:34 -0400
Received: from IMCMBX2.MITRE.ORG ([129.83.29.205]) by imchub1.MITRE.ORG ([129.83.29.73]) with mapi; Thu, 5 Aug 2010 08:39:34 -0400
From: "Miller, Timothy J." <tmiller@mitre.org>
To: "'mrex@sap.com'" <mrex@sap.com>, Nicolas Williams <Nicolas.Williams@oracle.com>
Date: Thu, 5 Aug 2010 08:39:33 -0400
Thread-Topic: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
Thread-Index: Acs0OgIpEw7jzJ6lQVSm/9sPXT7KDwAYQDuQ
Message-ID: <17FD76C1ECD0AB49817637E21809ABF908A316DF81@IMCMBX2.MITRE.ORG>
References: <20100805001137.GE5213@oracle.com> from "Nicolas Williams" at Aug 4, 10 07:11:38 pm <201008050103.o7513F15000806@fs4113.wdf.sap.corp>
In-Reply-To: <201008050103.o7513F15000806@fs4113.wdf.sap.corp>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "pkix@ietf.org" <pkix@ietf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2010 12:39:11 -0000

You have yet to propose an alternative.  Absent an alternative, I'd support=
 a security note to the effect that path construction modules should be car=
eful to treat retrieved data as potentially unsafe until validated.

-- Tim

>-----Original Message-----
>From: Martin Rex [mailto:mrex@sap.com]
>Sent: Wednesday, August 04, 2010 8:03 PM
>To: Nicolas Williams
>Cc: mrex@sap.com; yngve@opera.com; pkix@ietf.org; Miller, Timothy J.;
>tls@ietf.org
>Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of
>Certificate
>
>Nicolas Williams wrote:
>>
>> On Thu, Aug 05, 2010 at 01:07:22AM +0200, Martin Rex wrote:
>> > Yngve N. Pettersen wrote:
>> > > The kind of crafted URLs you are concerned about can also be
>injected by
>> > > way of OCSP and CRL URLs, and OCSP is AFAICT actually supported by
>more
>> > > clients than AIA CA.
>> >
>> > That is incorrect.  The path validation algorithm checks
>cryptographic
>> > correctness and certificate (attribute) validity starting at a trust
>> > anchor first, and ONLY when that succeeds, CRLs and OCSP is checked.
>>
>> That's true of path _validation_.  It's not necessarily true of path
>> _construction_ (see RFC4158).  That is, if you start with an EE cert
>you
>> might have to go find the intermediate CA certs.
>
>I don't know rfc4158, but I don't see how a standardization level
>should marginalize a severe security problem.  The TLS renegotation
>problem was not less severe by working-as-specified and being
>commonly implemented in the installed base.  :-/
>
>And I see a big difference in a user trying to manually and interatively
>construct a certification path and consciously deciding to include
>individual, not necessarily pre-trusted sources of information --
>as long as it is not possible for an attacker to entice this
>construction to perform accesses to arbitrary resources without
>limits and entirely without critical consent and interaction of
>the entity doing the path construction.
>
>
>While the relative ordering of 6.1.3 a1, a2, a3 makes a lot of sense
>security-wise, I'm confused to see a4 as the last check instead of
>the first(!) one.  Comparison of the issuer field should be a memcmp()
>on a ASN.1 DER encoded DName, and it looks odd to suggest doing a likely
>expensive public key operation before a trivial memcmp() without
>a rationale (I can not currently think of a rationale for this).
>
>http://tools.ietf.org/html/rfc5280#section-6.1.3
>
>
>>
>> > So when doing path validation correctly, you never access untrusted
>> > CRL and OCSP resources.
>>
>> If you're building a path from the target to the anchor then you'll
>> probably want to prune paths as soon as possible by validating
>> intermediate CA certs as soon as possible.
>
>Validating in the form of pruning "expired" or otherwise clearly
>inappropriate certs based on "cheap" plausibility checks on certificate
>attributes?  Maybe to a limited extent.  Public key crypto operation
>with untrusted keying material or even worse, network access based
>on URIs from untrusted sources -- certainly not without explicit
>user/operator confirmation!
>
>For the case of TLS, however, it has always been a clear requirement
>for each communication peer to build and send one own's certificate
>in a complete and corretly ordered sequence, optionially omitting
>at most the self-signed root certificate at the end of that chain.
>So really, a server with a certificate from a fancy briged CA should
>definitely, similar to the "server name indication" get a TLS
>ClientHello extension defined and have the client provide hints
>about the trust anchors if the server is unable to send a certificate
>chain acceptable to the client's certificate path validation
>algorithm as-is without such information.
>
>
>-Martin

From mrex@sap.com  Thu Aug  5 06:54:19 2010
Return-Path: <mrex@sap.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id BD96B3A6B11; Thu,  5 Aug 2010 06:54:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.762
X-Spam-Level: 
X-Spam-Status: No, score=-9.762 tagged_above=-999 required=5 tests=[AWL=0.487,  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 iBl1S-z7m0kq; Thu,  5 Aug 2010 06:54:18 -0700 (PDT)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.170]) by core3.amsl.com (Postfix) with ESMTP id A6D1A3A6B2E; Thu,  5 Aug 2010 06:54:03 -0700 (PDT)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o75DsXOp012075 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 5 Aug 2010 15:54:33 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201008051354.o75DsVbk013839@fs4113.wdf.sap.corp>
To: tmiller@mitre.org (Miller Timothy J.)
Date: Thu, 5 Aug 2010 15:54:31 +0200 (MEST)
In-Reply-To: <17FD76C1ECD0AB49817637E21809ABF908A316DF81@IMCMBX2.MITRE.ORG> from "Miller, Timothy J." at Aug 5, 10 08:39:33 am
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal05
X-SAP: out
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2010 13:54:19 -0000

Miller, Timothy J. wrote:
> 
> You have yet to propose an alternative.  Absent an alternative,
> I'd support a security note to the effect that path construction
> modules should be careful to treat retrieved data as potentially
> unsafe until validated.

The TLS architecture requires a server to send the client a complete
certificate chain, omitting at most the self-signed root certificate,
and it permits clients to perform certificate path validation only
on the server-supplied chain.

There currently is a proposal for having the server provide 
OCSP responses for not just his own end entity cert, but also
for all intermediate CA certs so that the client does not
have to go chasing down certificate revocation information.

If you look at the certificate path validation algorithm as it
is described in rfc-5280, it is _NOT_ allowed to parallelize
the OCSP requests for a certificate chain during path validation
(in case you're using the AIA-information to locate the OCSP responder),
but instead, for security, you need to validate the certificate
individually and sequentially from the trust anchor down to the
end entity cert to determine wether a certificate is trusted,
before you use any information from such a peer-supplied cert
to perform public key crypto operations or access network resources
described in the unverified cert (AIA-OCSP or CRL-DPs).

n.    attributes check
      signature verification
      revocation check
n+1.  attributes check
      signature verification
      revocation check
n+2 ...


So in order to make the facility to have the server provide all
OCSP responses necessary for the revocation checking in the client's
certificate path validation work efficiently and reliably, the client
should hint the server about its trust anchors whenever the server
has multiple certificate chains to choose from for the server
Certificate handshake message.

There is also no problem when the network resouces that the
entity performing the certificate path validation queries,
are preconfigured or pre-trusted, instead of being arbitrary
creations of a potential attacker.  And a RootCA that contemplates
bridging with other PKIs should definitely set up a repository
for bridge CA certificate and could list that in its own trust
anchor certificate.  That would allow certificate and trust anchor
managment in a pull / update-on-demand style.


-Martin

From pgut001@cs.auckland.ac.nz  Thu Aug  5 07:40:09 2010
Return-Path: <pgut001@cs.auckland.ac.nz>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 718A13A68CC; Thu,  5 Aug 2010 07:40:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.224
X-Spam-Level: 
X-Spam-Status: No, score=-3.224 tagged_above=-999 required=5 tests=[AWL=0.375,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 SvThVWy4rEo9; Thu,  5 Aug 2010 07:40:07 -0700 (PDT)
Received: from mx2-int.auckland.ac.nz (mx2-int.auckland.ac.nz [130.216.12.41]) by core3.amsl.com (Postfix) with ESMTP id 30EF73A6896; Thu,  5 Aug 2010 07:40:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=pgut001@cs.auckland.ac.nz; q=dns/txt; s=uoa; t=1281019239; x=1312555239; h=from:to:subject:cc:in-reply-to:message-id:date; z=From:=20Peter=20Gutmann=20<pgut001@cs.auckland.ac.nz> |To:=20mrex@sap.com,=20Nicolas.Williams@oracle.com |Subject:=20Re:=20[pkix]=20[TLS]=20=20New=20version=20of =20Multiple=20OCSP=20mode=20of=20Certificate|Cc:=20pkix@i etf.org,=20tls@ietf.org|In-Reply-To:=20<20100805015444.GF 5213@oracle.com>|Message-Id:=20<E1Oh1ca-0001D9-Jw@winterm ute02.cs.auckland.ac.nz>|Date:=20Fri,=2006=20Aug=202010 =2002:40:36=20+1200; bh=bFDdQxSDt8FxSbb4OdlHeWju5ie65fMaOQ9mCo/gXRI=; b=IriQAlh/NiLlG9ikH9hyT5ECsCHlc0U0L/gcVswd/Ndhyyb1VAREL/Dr yW8bJwdWoInVx9zugL6zvnQn41kI1/i1th2iF0mFoCsYOH/sAEJFep5xg 23prwGK7vGvDIfAvNhM2lBruAZ8c8puZGKWA45ryLNbBZuYNwsqvrRgRh o=;
X-IronPort-AV: E=Sophos;i="4.55,321,1278244800"; d="scan'208";a="19407006"
X-Ironport-HAT: UNIVERSITY - $RELAY-THROTTLE
X-Ironport-Source: 130.216.207.92 - Outgoing - Outgoing
Received: from wintermute02.cs.auckland.ac.nz ([130.216.207.92]) by mx2-int.auckland.ac.nz with ESMTP/TLS/AES256-SHA; 06 Aug 2010 02:40:37 +1200
Received: from pgut001 by wintermute02.cs.auckland.ac.nz with local (Exim 4.69) (envelope-from <pgut001@cs.auckland.ac.nz>) id 1Oh1ca-0001D9-Jw; Fri, 06 Aug 2010 02:40:36 +1200
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: mrex@sap.com, Nicolas.Williams@oracle.com
In-Reply-To: <20100805015444.GF5213@oracle.com>
Message-Id: <E1Oh1ca-0001D9-Jw@wintermute02.cs.auckland.ac.nz>
Date: Fri, 06 Aug 2010 02:40:36 +1200
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2010 14:40:09 -0000

Nicolas Williams <Nicolas.Williams@oracle.com> writes:

>What can be done to improve the AIA situation is to constraint AIA URLs such
>that, for example, they cannot specify arbitrary port numbers, and to very
>few URL schemes (HTTP and LDAP should suffice).

The problem with this is that you now get into the URL-obfuscation arms race
that the malware industry has been playing with browser developers for the
last ten years or so.  Would you trust a random PKI implementation (written by
crypto developers not web developers and that's never had to deal with this
kind of attack) to get this right?  After the third attempt?  After the tenth
attempt?

Peter.

From Nicolas.Williams@oracle.com  Thu Aug  5 09:48:35 2010
Return-Path: <Nicolas.Williams@oracle.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id AC7E03A6892; Thu,  5 Aug 2010 09:48:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.498
X-Spam-Level: 
X-Spam-Status: No, score=-6.498 tagged_above=-999 required=5 tests=[AWL=0.100,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 GOBa+W7UWOly; Thu,  5 Aug 2010 09:48:33 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id BDE293A684F; Thu,  5 Aug 2010 09:48:21 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o75Gmj7E018689 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 5 Aug 2010 16:48:46 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o75GmfO4018186; Thu, 5 Aug 2010 16:48:41 GMT
Received: from abhmt013.oracle.com by acsmt354.oracle.com with ESMTP id 488383861281026848; Thu, 05 Aug 2010 09:47:28 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 05 Aug 2010 09:47:23 -0700
Date: Thu, 5 Aug 2010 11:47:18 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Peter Gutmann <pgut001@cs.auckland.ac.nz>
Message-ID: <20100805164717.GJ5213@oracle.com>
References: <20100805015444.GF5213@oracle.com> <E1Oh1ca-0001D9-Jw@wintermute02.cs.auckland.ac.nz>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <E1Oh1ca-0001D9-Jw@wintermute02.cs.auckland.ac.nz>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Source-IP: acsmt354.oracle.com [141.146.40.154]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090208.4C5AEB6C.00EE:SCFMA4539814,ss=1,fgs=0
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2010 16:48:35 -0000

On Fri, Aug 06, 2010 at 02:40:36AM +1200, Peter Gutmann wrote:
> Nicolas Williams <Nicolas.Williams@oracle.com> writes:
> 
> >What can be done to improve the AIA situation is to constraint AIA URLs such
> >that, for example, they cannot specify arbitrary port numbers, and to very
> >few URL schemes (HTTP and LDAP should suffice).
> 
> The problem with this is that you now get into the URL-obfuscation arms race
> that the malware industry has been playing with browser developers for the
> last ten years or so.  Would you trust a random PKI implementation (written by
> crypto developers not web developers and that's never had to deal with this
> kind of attack) to get this right?  After the third attempt?  After the tenth
> attempt?

The constraint can be such that only a hostname can be provided.  For
HTTP a well-known URL local part would then be used (see host-meta for
well-known stuff).  For LDAP we might say that you have to do a
particular search against only the base DNs corresponding to the
namingContexts listed in the root DSE.

Nico
-- 

From pgut001@cs.auckland.ac.nz  Thu Aug  5 11:28:02 2010
Return-Path: <pgut001@cs.auckland.ac.nz>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 216D73A687D; Thu,  5 Aug 2010 11:28:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.235
X-Spam-Level: 
X-Spam-Status: No, score=-3.235 tagged_above=-999 required=5 tests=[AWL=0.364,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 B6UB0DUzBPsW; Thu,  5 Aug 2010 11:28:00 -0700 (PDT)
Received: from mx2-int.auckland.ac.nz (mx2-int.auckland.ac.nz [130.216.12.41]) by core3.amsl.com (Postfix) with ESMTP id 260D33A67E3; Thu,  5 Aug 2010 11:28:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=pgut001@cs.auckland.ac.nz; q=dns/txt; s=uoa; t=1281032912; x=1312568912; h=from:to:subject:cc:in-reply-to:message-id:date; z=From:=20Peter=20Gutmann=20<pgut001@cs.auckland.ac.nz> |To:=20Nicolas.Williams@oracle.com,=20pgut001@cs.auckland .ac.nz|Subject:=20Re:=20[pkix]=20[TLS]=20=20New=20version =20of=20Multiple=20OCSP=20mode=20of=20Certificate|Cc:=20m rex@sap.com,=20pkix@ietf.org,=20tls@ietf.org|In-Reply-To: =20<20100805164717.GJ5213@oracle.com>|Message-Id:=20<E1Oh 5B3-00032M-JX@wintermute02.cs.auckland.ac.nz>|Date:=20Fri ,=2006=20Aug=202010=2006:28:25=20+1200; bh=PIxKEhOF6QnyRhjt4QEfX7mueTzvlOxRfrL3JLTzHpw=; b=SDEf5NL+/I+clE4MkWVUe4zat5hkaWaqk3tLpMWEmmQt3A1fRaiWPAHo sXIn5gckJV0muTr30xIMjNdQ5dj9M9dbD0B+0LFKXpNdBAMEJrNWC1gmK PiXgXYqNuyLwgLZ+Xb7ziYp2jUz8GM12Ei3cnqmsKXVysagB09dcqODQr g=;
X-IronPort-AV: E=Sophos;i="4.55,324,1278244800"; d="scan'208";a="19416665"
X-Ironport-HAT: UNIVERSITY - $RELAY-THROTTLE
X-Ironport-Source: 130.216.207.92 - Outgoing - Outgoing
Received: from wintermute02.cs.auckland.ac.nz ([130.216.207.92]) by mx2-int.auckland.ac.nz with ESMTP/TLS/AES256-SHA; 06 Aug 2010 06:28:26 +1200
Received: from pgut001 by wintermute02.cs.auckland.ac.nz with local (Exim 4.69) (envelope-from <pgut001@cs.auckland.ac.nz>) id 1Oh5B3-00032M-JX; Fri, 06 Aug 2010 06:28:25 +1200
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: Nicolas.Williams@oracle.com, pgut001@cs.auckland.ac.nz
In-Reply-To: <20100805164717.GJ5213@oracle.com>
Message-Id: <E1Oh5B3-00032M-JX@wintermute02.cs.auckland.ac.nz>
Date: Fri, 06 Aug 2010 06:28:25 +1200
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2010 18:28:02 -0000

Nicolas Williams <Nicolas.Williams@oracle.com> writes:

>The constraint can be such that only a hostname can be provided.

And how do you specify appropriate restrictions to make something "only a
hostname"?  Look at the endless battle in browsers with various ways of
representing IP addresses that don't look anything like IP addresses.  Also,
what if the hostname is something inside your network?  In addition if I can
spoof DNS responses (pretty easy because I can get you to query hostnames like
<randomgibberish>.com which your corporate-internal resolver won't have cached
so it has to go to an external server) I can make the hostname reside at any
address I want, including RFC 1918 ones.

Peter.

From Nicolas.Williams@oracle.com  Thu Aug  5 11:33:55 2010
Return-Path: <Nicolas.Williams@oracle.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 5CA5B3A67E3; Thu,  5 Aug 2010 11:33:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.501
X-Spam-Level: 
X-Spam-Status: No, score=-6.501 tagged_above=-999 required=5 tests=[AWL=0.097,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 65-lxbon-88n; Thu,  5 Aug 2010 11:33:54 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 6648E3A67B2; Thu,  5 Aug 2010 11:33:54 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o75IYJLt019194 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 5 Aug 2010 18:34:21 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o74L910K005253; Thu, 5 Aug 2010 18:34:17 GMT
Received: from abhmt014.oracle.com by acsmt353.oracle.com with ESMTP id 470025581281033153; Thu, 05 Aug 2010 11:32:33 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 05 Aug 2010 11:32:32 -0700
Date: Thu, 5 Aug 2010 13:32:28 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Peter Gutmann <pgut001@cs.auckland.ac.nz>
Message-ID: <20100805183227.GT5213@oracle.com>
References: <20100805164717.GJ5213@oracle.com> <E1Oh5B3-00032M-JX@wintermute02.cs.auckland.ac.nz>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <E1Oh5B3-00032M-JX@wintermute02.cs.auckland.ac.nz>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Source-IP: acsmt354.oracle.com [141.146.40.154]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090204.4C5B042B.0106:SCFMA4539814,ss=1,fgs=0
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2010 18:33:55 -0000

On Fri, Aug 06, 2010 at 06:28:25AM +1200, Peter Gutmann wrote:
> Nicolas Williams <Nicolas.Williams@oracle.com> writes:
> 
> >The constraint can be such that only a hostname can be provided.
> 
> And how do you specify appropriate restrictions to make something "only a
> hostname"?

The domain part of the URL must be a DNS domainname to be resolved by
the resolver to an IP (v4, v6) address.  No port number must be
specified -- if HTTP then the port must be 80, if LDAP it must be 389.

The local part will be computed from conventions.  For HTTP that means
using a well-known local part.  For LDAP it means doing a standard
search off the base DNs for the namingContexts supported by the server.

This rules out IP addresses.

Nico
-- 

From lists@drh-consultancy.demon.co.uk  Thu Aug  5 11:50:39 2010
Return-Path: <lists@drh-consultancy.demon.co.uk>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id DCCB03A6A74; Thu,  5 Aug 2010 11:50:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 m8cBgGGc8XX4; Thu,  5 Aug 2010 11:50:35 -0700 (PDT)
Received: from claranet-outbound-smtp03.uk.clara.net (claranet-outbound-smtp03.uk.clara.net [195.8.89.36]) by core3.amsl.com (Postfix) with ESMTP id CD3ED3A6A2D; Thu,  5 Aug 2010 11:50:34 -0700 (PDT)
Received: from drh-consultancy.demon.co.uk ([80.177.30.10]:55260 helo=[192.168.7.8]) by relay03.mail.eu.clara.net (relay.clara.net [213.253.3.43]:10587) with esmtpa (authdaemon_plain:drh) id 1Oh5Wt-0002JX-9s  (return-path <lists@drh-consultancy.demon.co.uk>); Thu, 05 Aug 2010 18:50:59 +0000
Message-ID: <4C5B0814.1060503@drh-consultancy.demon.co.uk>
Date: Thu, 05 Aug 2010 19:51:00 +0100
From: Dr Stephen Henson <lists@drh-consultancy.demon.co.uk>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: Rob Stradling <rob.stradling@comodo.com>
References: <E1OfxqR-00006L-FJ@wintermute02.cs.auckland.ac.nz>	<201008032046.38830.rob.stradling@comodo.com>	<op.vgw4c3czvqd7e2@killashandra.oslo.osa> <201008042304.05996.rob.stradling@comodo.com>
In-Reply-To: <201008042304.05996.rob.stradling@comodo.com>
X-Enigmail-Version: 1.0.1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate Status extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2010 18:50:39 -0000

On 04/08/2010 23:04, Rob Stradling wrote:
> On Wednesday 04 August 2010 15:40:05 Yngve Nysaeter Pettersen wrote:
>> On Tue, 03 Aug 2010 21:46:38 +0200, Rob Stradling
>>
>> <rob.stradling@comodo.com> wrote:
>>> In another thread, Kyle H today wrote:
>>> "...why not change the ASN.1 to allow for multiple individual responses
>>> in a
>>> SEQUENCE or SET?"
>>
>> I suspect that this is about responses for multiple certificates for the
>> same issuer.
> 
> I suspect not.  BasicOCSPResponse already allows a single Response to contain 
> status information about multiple certificates for the same issuer.
> 
> In fact, BasicOCSPResponse already allows a single Response to contain status 
> information about multiple certificates from *multiple issuers*.  The problem, 
> of course, is that a BasicOCSPResponse may only be signed by a single entity, 
> so this kind of Response could only ever be useful in a "local configuration 
> of OCSP signing authority" (RFC 2560 section 4.2.2.2 option 1) context.
> 

I can recall this being mentioned before and the possibility was mentioned that
it might be permitted if you had the same public key in multiple delegated
signer certificates for each issuer.

I'm not sure how many OCSP clients would correctly handle that case, the current
OpenSSL OCSP code can't for one.

Steve.
-- 
Dr Stephen N. Henson.
Core developer of the   OpenSSL project: http://www.openssl.org/
Freelance consultant see: http://www.drh-consultancy.co.uk/
Email: shenson@drh-consultancy.co.uk, PGP key: via homepage.

From mrex@sap.com  Thu Aug  5 13:37:39 2010
Return-Path: <mrex@sap.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 645C83A6881; Thu,  5 Aug 2010 13:37:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.774
X-Spam-Level: 
X-Spam-Status: No, score=-9.774 tagged_above=-999 required=5 tests=[AWL=0.475,  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 N06aXVvmc4sE; Thu,  5 Aug 2010 13:37:38 -0700 (PDT)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.170]) by core3.amsl.com (Postfix) with ESMTP id 0752C3A6902; Thu,  5 Aug 2010 13:37:37 -0700 (PDT)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o75Kc2bi008414 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 5 Aug 2010 22:38:07 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201008052038.o75Kc1EG007289@fs4113.wdf.sap.corp>
To: tmiller@mitre.org (Miller Timothy J.)
Date: Thu, 5 Aug 2010 22:38:01 +0200 (MEST)
In-Reply-To: <17FD76C1ECD0AB49817637E21809ABF908A316DF81@IMCMBX2.MITRE.ORG> from "Miller, Timothy J." at Aug 5, 10 08:39:33 am
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal07
X-SAP: out
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2010 20:37:39 -0000

Miller, Timothy J. wrote:
> 
> You have yet to propose an alternative.  Absent an alternative,
> I'd support a security note to the effect that path construction
> modules should be careful to treat retrieved data as potentially
> unsafe until validated.

Let's see.  The pain point is the access of a network
resource based on information under full control of a
potential attacker.  We definitely need to get rid of that entirely.

The environment where this happens is complex PKIs with
cross-certificate / bridgeCAs.

I think it would be just fair to burden that CA from one's own
original certificate chain which engages in cross-certification
activities with the burden to provide any missing cross-certs
to *ALL* other trusted PKIs accessible through cross-certification.

When going up your own certificate chain, there is also a much
higher likelyhood for the existence of contractual liabilities
and a much higher likelyhood of accessibility to online resources
from that CA.


Patching up a rough list of requirements:

1. Require the CA in your own original certification path 
   which engages in cross-certification to offer/distribute
   *ALL* cross-certs to other PKIs.

2. Define a download service to be offered by that CA where
   a client can send a list of Issue DNames and/or AuthorityKeyIdentifiers
   from all issuers of an incomplete cert chain that may be completable
   through cross-certs into the callers original chain for the retrieval
   of the missing cross-cert(s) (optionally plus
   intermediate certs from the callers own chain).

3. Define an AIA-style declaration for accessing that service in
   in at least one of the certs between the cross-certification
   engaging CA and the end entity cert that wants to perform
   a secure kind of certification path discovery.
   Multiple alternative URIs is OK.  But the important part is
   being able to send a list of issuer DNames and/or authorityKeyIdentifers
   to which the missing cross-cert(s) are needed for a certificate
   path validation.  Providing an option to request OCSP responses
   for the cross-certificates along with the missing certs might
   be sensible.

4. Support a similar out-of-band configuration for the location of
   that cross-cert provisioning service.


If you only ever have to query pre-known locations for missing
cross-certs, then this is *MUCH* easier to configure (including
firewall traversals / filtering rules), more reliable, easier
to check and maintain, better accessible (performance-wise),
its much easier to define acceptable timeouts, and you know
whom to call if it doesn't work.

-Martin

From Nicolas.Williams@oracle.com  Thu Aug  5 14:00:43 2010
Return-Path: <Nicolas.Williams@oracle.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 5626F3A67D3; Thu,  5 Aug 2010 14:00:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.503
X-Spam-Level: 
X-Spam-Status: No, score=-6.503 tagged_above=-999 required=5 tests=[AWL=0.095,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 54xGmkz+vmrz; Thu,  5 Aug 2010 14:00:42 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 59F813A680D; Thu,  5 Aug 2010 14:00:42 -0700 (PDT)
Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o75L1BA8007813 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 5 Aug 2010 21:01:13 GMT
Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o75KxcZM009668; Thu, 5 Aug 2010 21:00:02 GMT
Received: from abhmt020.oracle.com by acsmt355.oracle.com with ESMTP id 470292041281039469; Thu, 05 Aug 2010 13:17:49 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 05 Aug 2010 13:17:49 -0700
Date: Thu, 5 Aug 2010 15:17:43 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: "Miller, Timothy J." <tmiller@mitre.org>
Message-ID: <20100805201743.GY5213@oracle.com>
References: <20100805001137.GE5213@oracle.com> <201008050103.o7513F15000806@fs4113.wdf.sap.corp> <17FD76C1ECD0AB49817637E21809ABF908A316DF81@IMCMBX2.MITRE.ORG>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <17FD76C1ECD0AB49817637E21809ABF908A316DF81@IMCMBX2.MITRE.ORG>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Source-IP: acsmt355.oracle.com [141.146.40.155]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090206.4C5B2697.0109:SCFMA4539814,ss=1,fgs=0
Cc: "pkix@ietf.org" <pkix@ietf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2010 21:00:43 -0000

On Thu, Aug 05, 2010 at 08:39:33AM -0400, Miller, Timothy J. wrote:
> You have yet to propose an alternative.  Absent an alternative, I'd
> support a security note to the effect that path construction modules
> should be careful to treat retrieved data as potentially unsafe until
> validated.

You were responding to Martin, but I'll take a crack at this too, based
on Martin's idea for using "hints":

 - Define hints that peers can tell each other about what PKI / what
   part of a PKI they "live in";

    - this could take the form of a name, domainname, whatever (requires
      naming conventions)
    - or it could take the form of a list of trust anchor names (can be
      quite large, so not ideal)

   I prefer using names to listing TAs.  To prevent namespace collisions
   I'd use domainames to name PKIs.

 - Given a peer's hints send a full cert chain that they should be able
   to verify;

 - Then the peer will validate the cert chain you send them from the
   trust anchor to your EE cert.

This takes the onus of path construction from the rp's shoulders (where
it is dangerous to the rp) and puts it on the rp's peer (where it
belongs).  Validation path construction is not elided completely, just
moved to where it belongs.

Alternatively, and even concurrently, I'd like to constraint AIA as I've
described before and which I'll repeat here:

 - AIA URLs should be limited to HTTP an LDAP schemes only;
 - The server name must be a domainname, to be resolved to an IP
   address;
 - The local part of AIA HTTP URLs should be left empty because it will
   be well-known (see host-meta);
 - The local part of AIA LDAP URLs should be left empty because there
   will be a simple convention for searching the DIT (try a well-defined
   scope sub search from each naming context provided by the server);

This is still not entirely safe because an rp's peer can still cause you
to try to retrieve a CA cert from any hostname they want.

Alternatively, and even concurrently:

 - Replace AIA with a URL construction convention based on the
   certificate's issuer's Name.

This last is still not entirely safe if you're constructing a path from
a peer's EE cert to any of your TAs because the peer's EE cert's issuer
can be anything they want it to be.

Nico
-- 

From pgut001@cs.auckland.ac.nz  Fri Aug  6 06:55:57 2010
Return-Path: <pgut001@cs.auckland.ac.nz>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 1D99F3A69D7; Fri,  6 Aug 2010 06:55:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.267
X-Spam-Level: 
X-Spam-Status: No, score=-3.267 tagged_above=-999 required=5 tests=[AWL=0.332,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 5ksldyIiEG-q; Fri,  6 Aug 2010 06:55:56 -0700 (PDT)
Received: from mx2-int.auckland.ac.nz (mx2-int.auckland.ac.nz [130.216.12.41]) by core3.amsl.com (Postfix) with ESMTP id A0CCE3A69E0; Fri,  6 Aug 2010 06:55:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=pgut001@cs.auckland.ac.nz; q=dns/txt; s=uoa; t=1281102987; x=1312638987; h=from:to:subject:cc:in-reply-to:message-id:date; z=From:=20Peter=20Gutmann=20<pgut001@cs.auckland.ac.nz> |To:=20Nicolas.Williams@oracle.com,=20pgut001@cs.auckland .ac.nz|Subject:=20Re:=20[pkix]=20[TLS]=20=20New=20version =20of=20Multiple=20OCSP=20mode=20of=20Certificate|Cc:=20m rex@sap.com,=20pkix@ietf.org,=20tls@ietf.org|In-Reply-To: =20<20100805183227.GT5213@oracle.com>|Message-Id:=20<E1Oh NP9-0002RW-10@wintermute02.cs.auckland.ac.nz>|Date:=20Sat ,=2007=20Aug=202010=2001:56:11=20+1200; bh=Kv0E05XdeIvm1K4g+udmCnGL/rRZg9eOIjSvSFrnPTk=; b=RQ7kpzBqjM+Dtx5CoSmOC1vwGtSYbMSsEYxr0lLoE4b2q189E1kts2Li 9rotBlxerQj4+M80pKoxns9AFOOjRhgqG/odbQbtgGVIDcZZCvMTfE7bQ qCPD6qPHDWT3DaJQenxATDii2wq/I2WfnQooEU0MWPFLTTR4TWia9KbzX g=;
X-IronPort-AV: E=Sophos;i="4.55,329,1278244800"; d="scan'208";a="19582694"
X-Ironport-HAT: UNIVERSITY - $RELAY-THROTTLE
X-Ironport-Source: 130.216.207.92 - Outgoing - Outgoing
Received: from wintermute02.cs.auckland.ac.nz ([130.216.207.92]) by mx2-int.auckland.ac.nz with ESMTP/TLS/AES256-SHA; 07 Aug 2010 01:56:11 +1200
Received: from pgut001 by wintermute02.cs.auckland.ac.nz with local (Exim 4.69) (envelope-from <pgut001@cs.auckland.ac.nz>) id 1OhNP9-0002RW-10; Sat, 07 Aug 2010 01:56:11 +1200
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: Nicolas.Williams@oracle.com, pgut001@cs.auckland.ac.nz
In-Reply-To: <20100805183227.GT5213@oracle.com>
Message-Id: <E1OhNP9-0002RW-10@wintermute02.cs.auckland.ac.nz>
Date: Sat, 07 Aug 2010 01:56:11 +1200
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 06 Aug 2010 13:55:57 -0000

Nicolas Williams <Nicolas.Williams@oracle.com> writes:

>The domain part of the URL must be a DNS domainname to be resolved by the
>resolver to an IP (v4, v6) address.

What if it's an embedded device on a network with no DNS?

>No port number must be specified -- if HTTP then the port must be 80, if LDAP
>it must be 389.

What if they're running their OCSP on something other than port 80 because
port 80 is already in use for a web server?

(Not trying to have a perpetual-motion-machine debate here, just trying to
point out that there probably isn't any universally applicable way to restrict
this, so the ultimate choice may well be AIA or no AIA (and CRLDP and various
equivalents)).

Peter.

From Nicolas.Williams@oracle.com  Fri Aug  6 11:58:02 2010
Return-Path: <Nicolas.Williams@oracle.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id A0C5E3A6823; Fri,  6 Aug 2010 11:58:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.489
X-Spam-Level: 
X-Spam-Status: No, score=-6.489 tagged_above=-999 required=5 tests=[AWL=0.109,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 qmOxYtNRDEQB; Fri,  6 Aug 2010 11:58:01 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 89AA23A68A7; Fri,  6 Aug 2010 11:58:01 -0700 (PDT)
Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o76IwRgR014803 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 6 Aug 2010 18:58:28 GMT
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o76IwOaO005888; Fri, 6 Aug 2010 18:58:24 GMT
Received: from abhmt013.oracle.com by acsmt353.oracle.com with ESMTP id 491449081281106300; Fri, 06 Aug 2010 07:51:40 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 06 Aug 2010 07:51:39 -0700
Date: Fri, 6 Aug 2010 09:51:34 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Peter Gutmann <pgut001@cs.auckland.ac.nz>
Message-ID: <20100806145134.GS5213@oracle.com>
References: <20100805183227.GT5213@oracle.com> <E1OhNP9-0002RW-10@wintermute02.cs.auckland.ac.nz>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <E1OhNP9-0002RW-10@wintermute02.cs.auckland.ac.nz>
User-Agent: Mutt/1.5.20 (2010-03-02)
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 06 Aug 2010 18:58:02 -0000

On Sat, Aug 07, 2010 at 01:56:11AM +1200, Peter Gutmann wrote:
> Nicolas Williams <Nicolas.Williams@oracle.com> writes:
> 
> >The domain part of the URL must be a DNS domainname to be resolved by the
> >resolver to an IP (v4, v6) address.
> 
> What if it's an embedded device on a network with no DNS?

Why would you use PKI in such a case, and why AIA??

Let's be reasonable...  :)

Nico
-- 

From pgut001@cs.auckland.ac.nz  Fri Aug  6 21:42:25 2010
Return-Path: <pgut001@cs.auckland.ac.nz>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 3371B3A6359; Fri,  6 Aug 2010 21:42:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.127
X-Spam-Level: 
X-Spam-Status: No, score=-3.127 tagged_above=-999 required=5 tests=[AWL=0.157,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1, SARE_MILLIONSOF=0.315]
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 BgtK3+rMvkXy; Fri,  6 Aug 2010 21:42:23 -0700 (PDT)
Received: from mx2-int.auckland.ac.nz (mx2-int.auckland.ac.nz [130.216.12.41]) by core3.amsl.com (Postfix) with ESMTP id BCCAE3A6972; Fri,  6 Aug 2010 21:42:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=pgut001@cs.auckland.ac.nz; q=dns/txt; s=uoa; t=1281156175; x=1312692175; h=from:to:subject:cc:in-reply-to:message-id:date; z=From:=20Peter=20Gutmann=20<pgut001@cs.auckland.ac.nz> |To:=20Nicolas.Williams@oracle.com,=20pgut001@cs.auckland .ac.nz|Subject:=20Re:=20[pkix]=20[TLS]=20=20New=20version =20of=20Multiple=20OCSP=20mode=20of=20Certificate|Cc:=20m rex@sap.com,=20pkix@ietf.org,=20tls@ietf.org|In-Reply-To: =20<20100806145134.GS5213@oracle.com>|Message-Id:=20<E1Oh bF2-0001M9-7k@wintermute02.cs.auckland.ac.nz>|Date:=20Sat ,=2007=20Aug=202010=2016:42:40=20+1200; bh=lFtcF3Vd1wAC0GbSQRGharXo2sotT5b54dDYqz4zXQc=; b=GpwL6uccilkxaL9zcW/uRW77DQuUnRsYMUIIIRDp4by4W/QM4p7xxVXS y8Z1x5MiNvYlASi/b8rx5E8CupPR6/gPP2zTnRL1tayHVQHwvgXcVPYcX lAh4y0s3O54udhnvHo4/yGqFyv6ahCq8siR9Nua2PadqXOz71mTa6HLpQ c=;
X-IronPort-AV: E=Sophos;i="4.55,332,1278244800"; d="scan'208";a="19626355"
X-Ironport-HAT: UNIVERSITY - $RELAY-THROTTLE
X-Ironport-Source: 130.216.207.92 - Outgoing - Outgoing
Received: from wintermute02.cs.auckland.ac.nz ([130.216.207.92]) by mx2-int.auckland.ac.nz with ESMTP/TLS/AES256-SHA; 07 Aug 2010 16:42:40 +1200
Received: from pgut001 by wintermute02.cs.auckland.ac.nz with local (Exim 4.69) (envelope-from <pgut001@cs.auckland.ac.nz>) id 1OhbF2-0001M9-7k; Sat, 07 Aug 2010 16:42:40 +1200
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: Nicolas.Williams@oracle.com, pgut001@cs.auckland.ac.nz
In-Reply-To: <20100806145134.GS5213@oracle.com>
Message-Id: <E1OhbF2-0001M9-7k@wintermute02.cs.auckland.ac.nz>
Date: Sat, 07 Aug 2010 16:42:40 +1200
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 07 Aug 2010 04:42:25 -0000

Nicolas Williams <Nicolas.Williams@oracle.com> writes:

>Why would you use PKI in such a case

Well just off the top of my head there's tens of millions of DOCSIC certs
(although they're based on MAC addresses not IP addresses, they don't quite go
all the way up to IP), RPKI certs (although they're more likely to use AS
numbers rather than IP addresses), for pure IP there's masses of SCADA stuff
conforming to ISO 62351, DNP 3.0, IEC 61850, and probably a futher list as
long as your arm.

Peter.

From ekr@rtfm.com  Sat Aug  7 07:23:39 2010
Return-Path: <ekr@rtfm.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 589933A699C for <tls@core3.amsl.com>; Sat,  7 Aug 2010 07:23:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -100.839
X-Spam-Level: 
X-Spam-Status: No, score=-100.839 tagged_above=-999 required=5 tests=[AWL=1.137, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=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 S8L8IEQGS5Vg for <tls@core3.amsl.com>; Sat,  7 Aug 2010 07:23:38 -0700 (PDT)
Received: from mail-yx0-f172.google.com (mail-yx0-f172.google.com [209.85.213.172]) by core3.amsl.com (Postfix) with ESMTP id 764FF3A69E3 for <tls@ietf.org>; Sat,  7 Aug 2010 07:23:36 -0700 (PDT)
Received: by yxj4 with SMTP id 4so3727683yxj.31 for <tls@ietf.org>; Sat, 07 Aug 2010 07:24:08 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.90.82.4 with SMTP id f4mr9962586agb.128.1281191048168; Sat, 07  Aug 2010 07:24:08 -0700 (PDT)
Received: by 10.90.214.10 with HTTP; Sat, 7 Aug 2010 07:24:08 -0700 (PDT)
Date: Sat, 7 Aug 2010 10:24:08 -0400
Message-ID: <AANLkTimaZHpxcOHETovB+cjTv0t-3nwODzy2f0wpYH=h@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
To: tls@ietf.org
Content-Type: multipart/alternative; boundary=0016e68db78850c6c8048d3c894f
Subject: [TLS] Call for TLS Server-ID check reviewers
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 07 Aug 2010 14:23:40 -0000

--0016e68db78850c6c8048d3c894f
Content-Type: text/plain; charset=ISO-8859-1

Hi folks,

As discussed in Maastricht, there is an individual submission,

  http://tools.ietf.org/html/draft-saintandre-tls-server-id-check-09

which attempts to create a harmonized set of rules for verifying server
certificates out of all the various rules found in TLS-using protocols.

Obviously, this is highly relevant to the TLS WG, and in Maastricht
we agreed to (1) solicit reviews and (2) do a last call about a week
afterwards. I'd like to get at least 2-3 people from the email list who
weren't in Maastricht to agree to do reviews. The new draft is out
so it's time for this.

If you're willing to do this, please contact the chairs. Otherwise, I'll
probably solicit some reviewers directly :)

Thanks,
-Ekr

[As WG chair]

--0016e68db78850c6c8048d3c894f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi folks,<div><br></div><div>As discussed in Maastricht, there is an indivi=
dual submission,</div><div><br></div><div>=A0=A0<a href=3D"http://tools.iet=
f.org/html/draft-saintandre-tls-server-id-check-09">http://tools.ietf.org/h=
tml/draft-saintandre-tls-server-id-check-09</a></div>
<div><br></div><div>which attempts to create a harmonized set of rules for =
verifying server</div><div>certificates out of all the various rules found =
in TLS-using protocols.</div><div><br></div><div>Obviously, this is highly =
relevant to the TLS WG, and in Maastricht</div>
<div>we agreed to (1) solicit reviews and (2) do a last call about a week</=
div><div>afterwards. I&#39;d like to get at least 2-3 people from the email=
 list who</div><div>weren&#39;t in Maastricht to agree to do reviews. The n=
ew draft is out</div>
<div>so it&#39;s time for this.</div><div><br></div><div>If you&#39;re will=
ing to do this,=A0please contact the chairs. Otherwise, I&#39;ll</div><div>=
probably solicit some reviewers directly :)</div><div><br></div><div>Thanks=
,</div>
<div>-Ekr</div><div><br></div><div>[As WG chair]</div><div><br></div>

--0016e68db78850c6c8048d3c894f--

From benl@google.com  Sun Aug  8 14:51:27 2010
Return-Path: <benl@google.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 71A703A69CF for <tls@core3.amsl.com>; Sun,  8 Aug 2010 14:51:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.977
X-Spam-Level: 
X-Spam-Status: No, score=-103.977 tagged_above=-999 required=5 tests=[AWL=1.999, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4, 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 tSDHATcylS9J for <tls@core3.amsl.com>; Sun,  8 Aug 2010 14:51:26 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id CB7173A697F for <tls@ietf.org>; Sun,  8 Aug 2010 14:51:25 -0700 (PDT)
Received: from kpbe14.cbf.corp.google.com (kpbe14.cbf.corp.google.com [172.25.105.78]) by smtp-out.google.com with ESMTP id o78LpvfZ005697 for <tls@ietf.org>; Sun, 8 Aug 2010 14:51:58 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1281304318; bh=/pVWfa2BeqLHYf7vaAOUgJp5lyo=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=GShQxXkZhIxwp7PxuNiRtVFmR5ikJvBM3nRs1q8sTzRA75V2CZagX0EsvAOO7Ya+e juUag/eSDzM60fESH/8TQ==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=wjkgLe2oSnZ1vBMkBGYT2p0WaHhioLtUK+nlNZynYldoUB910FBIBOA7tEYaZppVF N94SP5TN7jMJFG0KGbe2Q==
Received: from qwd7 (qwd7.prod.google.com [10.241.193.199]) by kpbe14.cbf.corp.google.com with ESMTP id o78LplsM022070 for <tls@ietf.org>; Sun, 8 Aug 2010 14:51:56 -0700
Received: by qwd7 with SMTP id 7so6745691qwd.7 for <tls@ietf.org>; Sun, 08 Aug 2010 14:51:56 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.220.62.136 with SMTP id x8mr9230585vch.37.1281304314905; Sun,  08 Aug 2010 14:51:54 -0700 (PDT)
Received: by 10.220.183.68 with HTTP; Sun, 8 Aug 2010 14:51:54 -0700 (PDT)
In-Reply-To: <AANLkTimaZHpxcOHETovB+cjTv0t-3nwODzy2f0wpYH=h@mail.gmail.com>
References: <AANLkTimaZHpxcOHETovB+cjTv0t-3nwODzy2f0wpYH=h@mail.gmail.com>
Date: Sun, 8 Aug 2010 14:51:54 -0700
Message-ID: <AANLkTinVjM+xybGL3rqCZPUhr__kJFbfPe_pUMK6NN1L@mail.gmail.com>
From: Ben Laurie <benl@google.com>
To: Eric Rescorla <ekr@rtfm.com>
Content-Type: multipart/alternative; boundary=e0cb4e8874538a055d048d56e824
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] Call for TLS Server-ID check reviewers
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 08 Aug 2010 21:51:27 -0000

--e0cb4e8874538a055d048d56e824
Content-Type: text/plain; charset=ISO-8859-1

On 7 August 2010 07:24, Eric Rescorla <ekr@rtfm.com> wrote:

> Hi folks,
>
> As discussed in Maastricht, there is an individual submission,
>
>   http://tools.ietf.org/html/draft-saintandre-tls-server-id-check-09
>
> which attempts to create a harmonized set of rules for verifying server
> certificates out of all the various rules found in TLS-using protocols.
>
> Obviously, this is highly relevant to the TLS WG, and in Maastricht
> we agreed to (1) solicit reviews and (2) do a last call about a week
> afterwards. I'd like to get at least 2-3 people from the email list who
> weren't in Maastricht to agree to do reviews. The new draft is out
> so it's time for this.
>
> If you're willing to do this, please contact the chairs. Otherwise, I'll
> probably solicit some reviewers directly :)
>

Great stuff. I'd be happy to review but note that next week is USENIX
Security so probably will not be able to do it in the next week.


>
> Thanks,
> -Ekr
>
> [As WG chair]
>
>
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>
>

--e0cb4e8874538a055d048d56e824
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On 7 August 2010 07:24, Eric Rescorla <s=
pan dir=3D"ltr">&lt;<a href=3D"mailto:ekr@rtfm.com">ekr@rtfm.com</a>&gt;</s=
pan> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex=
;border-left:1px #ccc solid;padding-left:1ex;">
Hi folks,<div><br></div><div>As discussed in Maastricht, there is an indivi=
dual submission,</div><div><br></div><div>=A0=A0<a href=3D"http://tools.iet=
f.org/html/draft-saintandre-tls-server-id-check-09" target=3D"_blank">http:=
//tools.ietf.org/html/draft-saintandre-tls-server-id-check-09</a></div>

<div><br></div><div>which attempts to create a harmonized set of rules for =
verifying server</div><div>certificates out of all the various rules found =
in TLS-using protocols.</div><div><br></div><div>Obviously, this is highly =
relevant to the TLS WG, and in Maastricht</div>

<div>we agreed to (1) solicit reviews and (2) do a last call about a week</=
div><div>afterwards. I&#39;d like to get at least 2-3 people from the email=
 list who</div><div>weren&#39;t in Maastricht to agree to do reviews. The n=
ew draft is out</div>

<div>so it&#39;s time for this.</div><div><br></div><div>If you&#39;re will=
ing to do this,=A0please contact the chairs. Otherwise, I&#39;ll</div><div>=
probably solicit some reviewers directly :)</div></blockquote><div><br></di=
v>
<div>Great stuff. I&#39;d be happy to review but note that next week is USE=
NIX Security so probably will not be able to do it in the next week.</div><=
div>=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;b=
order-left:1px #ccc solid;padding-left:1ex;">
<div><br></div><div>Thanks,</div>
<div>-Ekr</div><div><br></div><div>[As WG chair]</div><div><br></div>
<br>_______________________________________________<br>
TLS mailing list<br>
<a href=3D"mailto:TLS@ietf.org">TLS@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/tls" target=3D"_blank">htt=
ps://www.ietf.org/mailman/listinfo/tls</a><br>
<br></blockquote></div><br>

--e0cb4e8874538a055d048d56e824--

From tmiller@mitre.org  Mon Aug  9 06:03:00 2010
Return-Path: <tmiller@mitre.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 5CCF53A6AD1; Mon,  9 Aug 2010 06:03:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 y0P6IeCeEts1; Mon,  9 Aug 2010 06:02:59 -0700 (PDT)
Received: from smtp-bedford.mitre.org (smtp-bedford.mitre.org [129.83.20.191]) by core3.amsl.com (Postfix) with ESMTP id 842203A68F6; Mon,  9 Aug 2010 06:02:58 -0700 (PDT)
Received: from smtp-bedford.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id o79D3V1Z015531;  Mon, 9 Aug 2010 09:03:31 -0400
Received: from imchub2.MITRE.ORG (imchub2.mitre.org [129.83.29.74]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id o79D3UIY015509;  Mon, 9 Aug 2010 09:03:30 -0400
Received: from IMCMBX2.MITRE.ORG ([129.83.29.205]) by imchub2.MITRE.ORG ([129.83.29.74]) with mapi; Mon, 9 Aug 2010 09:03:30 -0400
From: "Miller, Timothy J." <tmiller@mitre.org>
To: "'Nicolas Williams'" <Nicolas.Williams@oracle.com>, Peter Gutmann <pgut001@cs.auckland.ac.nz>
Date: Mon, 9 Aug 2010 09:03:29 -0400
Thread-Topic: [pkix] [TLS]  New version of Multiple OCSP mode of Certificate
Thread-Index: Acs1mWMW4k5SIA01SrS/nkb9rbuKnQCKZHFA
Message-ID: <17FD76C1ECD0AB49817637E21809ABF908A316DF8A@IMCMBX2.MITRE.ORG>
References: <20100805183227.GT5213@oracle.com> <E1OhNP9-0002RW-10@wintermute02.cs.auckland.ac.nz> <20100806145134.GS5213@oracle.com>
In-Reply-To: <20100806145134.GS5213@oracle.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "pkix@ietf.org" <pkix@ietf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] [pkix] New version of Multiple OCSP mode of Certificate
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Aug 2010 13:03:00 -0000

>> What if it's an embedded device on a network with no DNS?

>Why would you use PKI in such a case, and why AIA??

>Let's be reasonable...  :)

Off the top of my head:

1) Regulatory requirements.

2) Because a symmetric key distribution infrastructure might be too hard in=
 the specific environment.

3) Because commercial platforms usually don't grok keys without certs.

-- Tim

From ietfc@btconnect.com  Mon Aug  9 07:46:10 2010
Return-Path: <ietfc@btconnect.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 717E03A6833 for <tls@core3.amsl.com>; Mon,  9 Aug 2010 07:46:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.729
X-Spam-Level: 
X-Spam-Status: No, score=-0.729 tagged_above=-999 required=5 tests=[AWL=-0.544, BAYES_40=-0.185]
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 SWkA89wlPeDm for <tls@core3.amsl.com>; Mon,  9 Aug 2010 07:46:09 -0700 (PDT)
Received: from c2bthomr09.btconnect.com (c2bthomr09.btconnect.com [213.123.20.127]) by core3.amsl.com (Postfix) with ESMTP id 98C7B3A698B for <tls@ietf.org>; Mon,  9 Aug 2010 07:45:59 -0700 (PDT)
Received: from pc6 (host81-156-71-186.range81-156.btcentralplus.com [81.156.71.186]) by c2bthomr09.btconnect.com with SMTP id FYT66829; Mon, 9 Aug 2010 15:46:17 +0100 (BST)
X-Mirapoint-IP-Reputation: reputation=Fair-1, source=Queried, refid=0001.0A0B0301.4C6014B9.0116, actions=tag
Message-ID: <004101cb37c8$9a0e33c0$4001a8c0@gateway.2wire.net>
From: "t.petch" <ietfc@btconnect.com>
To: "Eric Rescorla" <ekr@rtfm.com>, <tls@ietf.org>
References: <AANLkTimaZHpxcOHETovB+cjTv0t-3nwODzy2f0wpYH=h@mail.gmail.com>
Date: Mon, 9 Aug 2010 15:41:31 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Junkmail-Status: score=10/50, host=c2bthomr09.btconnect.com
X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A0B0206.4C6014C5.02C8,ss=1,fgs=0, ip=0.0.0.0, so=2009-07-20 21:54:04, dmn=5.7.1/2009-08-27, mode=single engine
X-Junkmail-IWF: false
Subject: Re: [TLS] Call for TLS Server-ID check reviewers
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Aug 2010 14:46:10 -0000

I do think that this is a very sad document, since it may queer the pitch for
what could have come after.

It used to be much smaller, and cover so much more - IP Addresses, e-mail
addresses, SIP addresses, etc as reference identities,  use by client as well as
server etc., greater use of wild card, ..... - and so offer much to the rest of
the IETF.

There may be an application using TLS for which this larger, but much reduced,
I-D is still appropriate, but I cannot recall seeing one in the IETF lately.

(As such, it reminds me of some of the would-be TLS extensions that have not
gained traction here).

Deep sigh:-(

Still, I will read it again to remind myself just how much skill has gone into
producing it  ........

Tom Petch

----- Original Message -----
From: "Eric Rescorla" <ekr@rtfm.com>
To: <tls@ietf.org>
Sent: Saturday, August 07, 2010 4:24 PM
Subject: [TLS] Call for TLS Server-ID check reviewers


> Hi folks,
>
> As discussed in Maastricht, there is an individual submission,
>
>   http://tools.ietf.org/html/draft-saintandre-tls-server-id-check-09
>
> which attempts to create a harmonized set of rules for verifying server
> certificates out of all the various rules found in TLS-using protocols.
>
> Obviously, this is highly relevant to the TLS WG, and in Maastricht
> we agreed to (1) solicit reviews and (2) do a last call about a week
> afterwards. I'd like to get at least 2-3 people from the email list who
> weren't in Maastricht to agree to do reviews. The new draft is out
> so it's time for this.
>
> If you're willing to do this, please contact the chairs. Otherwise, I'll
> probably solicit some reviewers directly :)
>
> Thanks,
> -Ekr
>
> [As WG chair]
>


--------------------------------------------------------------------------------


> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>


From ekr@rtfm.com  Mon Aug  9 08:06:18 2010
Return-Path: <ekr@rtfm.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 10D503A6803 for <tls@core3.amsl.com>; Mon,  9 Aug 2010 08:06:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -100.981
X-Spam-Level: 
X-Spam-Status: No, score=-100.981 tagged_above=-999 required=5 tests=[AWL=0.995, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=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 gFYwYi29Ssr8 for <tls@core3.amsl.com>; Mon,  9 Aug 2010 08:06:17 -0700 (PDT)
Received: from mail-bw0-f44.google.com (mail-bw0-f44.google.com [209.85.214.44]) by core3.amsl.com (Postfix) with ESMTP id 9759C3A65A5 for <tls@ietf.org>; Mon,  9 Aug 2010 08:06:16 -0700 (PDT)
Received: by bwz10 with SMTP id 10so1735183bwz.31 for <tls@ietf.org>; Mon, 09 Aug 2010 08:06:50 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.204.81.39 with SMTP id v39mr3118931bkk.149.1281366409814; Mon,  09 Aug 2010 08:06:49 -0700 (PDT)
Received: by 10.204.163.138 with HTTP; Mon, 9 Aug 2010 08:06:49 -0700 (PDT)
Date: Mon, 9 Aug 2010 11:06:49 -0400
Message-ID: <AANLkTimoKppxYa7m5=Vow1njvzu=cmrHqSDX_RgYZ17X@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
To: tls@ietf.org
Content-Type: multipart/alternative; boundary=0016e6dd966aaf26a5048d655d30
Subject: [TLS] Accept draft-turner-ssl-must-not-02 as WG item
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Aug 2010 15:06:18 -0000

--0016e6dd966aaf26a5048d655d30
Content-Type: text/plain; charset=ISO-8859-1

In Maastricht, we saw a presentation on draft-turner-ssl-must-not:

http://tools.ietf.org/html/draft-turner-ssl-must-not-02

The consensus in Maastricht was to adopt this as a WG item.
If anyone objects please speak up now.

Thanks,
-Ekr

--0016e6dd966aaf26a5048d655d30
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

In Maastricht, we saw a presentation on draft-turner-ssl-must-not:<div><br>=
</div><div><a href=3D"http://tools.ietf.org/html/draft-turner-ssl-must-not-=
02">http://tools.ietf.org/html/draft-turner-ssl-must-not-02</a></div><div>
<br></div><div>The consensus in Maastricht was to adopt this as a WG item.=
=A0</div><div>If anyone objects please speak up now.</div><div><br></div><d=
iv>Thanks,</div><div>-Ekr</div><div><br></div>

--0016e6dd966aaf26a5048d655d30--

From Xuelei.Fan@Sun.COM  Mon Aug  9 19:29:32 2010
Return-Path: <Xuelei.Fan@Sun.COM>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id AD09B3A69F2 for <tls@core3.amsl.com>; Mon,  9 Aug 2010 19:29:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 gIpVc+n1nK+7 for <tls@core3.amsl.com>; Mon,  9 Aug 2010 19:29:31 -0700 (PDT)
Received: from gmp-eb-inf-2.sun.com (gmp-eb-inf-2.sun.com [192.18.6.24]) by core3.amsl.com (Postfix) with ESMTP id 58E8B3A69F1 for <tls@ietf.org>; Mon,  9 Aug 2010 19:29:31 -0700 (PDT)
Received: from fe-emea-09.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id o7A2U5Qb005874 for <tls@ietf.org>; Tue, 10 Aug 2010 02:30:05 GMT
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: text/plain; CHARSET=US-ASCII
Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0L6W00200ZYJJO00@fe-emea-09.sun.com> for tls@ietf.org; Tue, 10 Aug 2010 03:29:41 +0100 (BST)
Received: from [129.150.24.4] ([unknown] [129.150.24.4]) by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0L6X00HPJ09E4T30@fe-emea-09.sun.com> for tls@ietf.org; Tue, 10 Aug 2010 03:29:41 +0100 (BST)
Date: Tue, 10 Aug 2010 10:29:31 +0800
From: Xuelei Fan <Xuelei.Fan@Sun.COM>
Sender: Xuelei.Fan@Sun.COM
To: tls@ietf.org
Message-id: <4C60B98B.6000004@Sun.COM>
X-Enigmail-Version: 1.1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2
Subject: [TLS] What's the right version number in the PreMasterSecret for renegotiation
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Aug 2010 02:29:32 -0000

In RFC4346/5246, the specification for client_version in the
PreMasterSecret is described as:
---------------
      struct {
          ProtocolVersion client_version;
          opaque random[46];
      } PreMasterSecret;

      client_version The latest (newest) version supported by the
         client.  This is used to detect version roll-back attacks.
         Upon receiving the premaster secret, the server SHOULD check
         that this value matches the value transmitted by the client in
         the client hello message.

      ....

   Note: The version number in the PreMasterSecret MUST be the version
         offered by the client in the ClientHello, not the version
         negotiated for the connection.  This feature is designed to
         prevent rollback attacks.
---------------

The spec is clear for initial handshaking. But while testing
renegotiation, we get two different interpretations of the version
number in the PreMasterSecret. We noticed Opera (10.50) uses the version
number offered by the renegotiation ClientHello, while Microsoft IE 8
(IE 8 at Windows 7) uses the version number offered by the ClientHello
in the initial handshaking.

For Opera, the scenario looks like:

    Opera <--------------> TLS server
         --->ClientHello V1.2--->
         <---ServerHello V1.1<---
         ...
         --->PreMasterSecret (v1.2)--->  (as expected)
         ...
         <---HelloRequest<----
         ---->ClientHello v1.1----> (ask for an abbreviated handshake)
         <---ServerHello V1.1<---   (not resumable, new session)
         ...
         --->PreMasterSecret (v1.1)---> (*)


For IE 8, the scenario looks like:

    IE 8<--------------> TLS server
         --->ClientHello V1.2--->
         <---ServerHello V1.1<---
         ...
         --->PreMasterSecret (v1.2)--->  (as expected)
         ...
         <---HelloRequest<----
         ---->ClientHello v1.1----> (ask for an abbreviated handshake)
         <---ServerHello V1.1<---   (not resumable, new session)
         ...
         --->PreMasterSecret (v1.2)---> (**)

(*) Opera uses the version number offered by the ClientHello in the
renegotiation handshaking.
(**) IE 8 uses the version number offered by the ClientHello in the
initial handshaking.

Please help to clarify what's the correct version number choice for
renegotiation.

Thanks,
Xuelei (Andrew) Fan

From mike-list@pobox.com  Mon Aug  9 20:19:35 2010
Return-Path: <mike-list@pobox.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 7179D3A67B4 for <tls@core3.amsl.com>; Mon,  9 Aug 2010 20:19:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000,  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 4CbXwW5tQrRr for <tls@core3.amsl.com>; Mon,  9 Aug 2010 20:19:34 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 259E43A680F for <tls@ietf.org>; Mon,  9 Aug 2010 20:19:32 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id ECE19CC6BA; Mon,  9 Aug 2010 23:20:05 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=+prXgwiFONS9 t2Rj5V2YRDUaRGs=; b=YxDruscepX/pCcTwEyOM6bziQ+6bEALgeK9YclGYqCiM Prr/cLgpJdm+k5u5kGSbsLx7YzVui8aA1TSoLG04HaTM2a5uAYF5HGDy/5p6BYOZ xlNrJ0wQJgvCvCLP5bVygwmn26SpyEQSQqLIPi36bfkd1X6KRRCeQAaCEQ9B1XU=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=FNyJT3 OI0FQ2YSy80PSUab07wUbLAtplmCG7RDLMawcoS4zZeEniC85GJNPwip0ihQs5R9 5G76XqYpESJwgfY31d65AJYz75qOFtqq7HGW/QO9rsBhoXUeuX2PumYq+YlkJVdY 1mcOxepDz6kcBqn3W9RhRvCOjTnI4xYGK+nDQ=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id D7F94CC6B7; Mon,  9 Aug 2010 23:20:04 -0400 (EDT)
Received: from iMac.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 47474CC6B5; Mon,  9 Aug 2010 23:20:03 -0400 (EDT)
Message-ID: <4C60C562.6090908@pobox.com>
Date: Mon, 09 Aug 2010 20:20:02 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
To: Xuelei Fan <Xuelei.Fan@Sun.COM>
References: <4C60B98B.6000004@Sun.COM>
In-Reply-To: <4C60B98B.6000004@Sun.COM>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 2B6EA332-A42E-11DF-A546-9056EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] What's the right version number in the PreMasterSecret for renegotiation
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Aug 2010 03:19:35 -0000

Based on the scenarios below, it looks like Opera is doing the right
thing during the renegotiation while IE 8 is not.

Mike



Xuelei Fan wrote:
> In RFC4346/5246, the specification for client_version in the
> PreMasterSecret is described as:
> ---------------
>       struct {
>           ProtocolVersion client_version;
>           opaque random[46];
>       } PreMasterSecret;
> 
>       client_version The latest (newest) version supported by the
>          client.  This is used to detect version roll-back attacks.
>          Upon receiving the premaster secret, the server SHOULD check
>          that this value matches the value transmitted by the client in
>          the client hello message.
> 
>       ....
> 
>    Note: The version number in the PreMasterSecret MUST be the version
>          offered by the client in the ClientHello, not the version
>          negotiated for the connection.  This feature is designed to
>          prevent rollback attacks.
> ---------------
> 
> The spec is clear for initial handshaking. But while testing
> renegotiation, we get two different interpretations of the version
> number in the PreMasterSecret. We noticed Opera (10.50) uses the version
> number offered by the renegotiation ClientHello, while Microsoft IE 8
> (IE 8 at Windows 7) uses the version number offered by the ClientHello
> in the initial handshaking.
> 
> For Opera, the scenario looks like:
> 
>     Opera <--------------> TLS server
>          --->ClientHello V1.2--->
>          <---ServerHello V1.1<---
>          ...
>          --->PreMasterSecret (v1.2)--->  (as expected)
>          ...
>          <---HelloRequest<----
>          ---->ClientHello v1.1----> (ask for an abbreviated handshake)
>          <---ServerHello V1.1<---   (not resumable, new session)
>          ...
>          --->PreMasterSecret (v1.1)---> (*)
> 
> 
> For IE 8, the scenario looks like:
> 
>     IE 8<--------------> TLS server
>          --->ClientHello V1.2--->
>          <---ServerHello V1.1<---
>          ...
>          --->PreMasterSecret (v1.2)--->  (as expected)
>          ...
>          <---HelloRequest<----
>          ---->ClientHello v1.1----> (ask for an abbreviated handshake)
>          <---ServerHello V1.1<---   (not resumable, new session)
>          ...
>          --->PreMasterSecret (v1.2)---> (**)
> 
> (*) Opera uses the version number offered by the ClientHello in the
> renegotiation handshaking.
> (**) IE 8 uses the version number offered by the ClientHello in the
> initial handshaking.
> 
> Please help to clarify what's the correct version number choice for
> renegotiation.
> 
> Thanks,
> Xuelei (Andrew) Fan

From mrex@sap.com  Tue Aug 10 07:56:43 2010
Return-Path: <mrex@sap.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 7D2023A6860 for <tls@core3.amsl.com>; Tue, 10 Aug 2010 07:56:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.779
X-Spam-Level: 
X-Spam-Status: No, score=-9.779 tagged_above=-999 required=5 tests=[AWL=0.470,  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 Y3ABwOPsJyfV for <tls@core3.amsl.com>; Tue, 10 Aug 2010 07:56:42 -0700 (PDT)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.170]) by core3.amsl.com (Postfix) with ESMTP id 45BF93A687A for <tls@ietf.org>; Tue, 10 Aug 2010 07:56:42 -0700 (PDT)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o7AEvAp7028504 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 10 Aug 2010 16:57:15 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201008101457.o7AEv9e7019723@fs4113.wdf.sap.corp>
To: mike-list@pobox.com (Michael D'Errico)
Date: Tue, 10 Aug 2010 16:57:09 +0200 (MEST)
In-Reply-To: <4C60C562.6090908@pobox.com> from "Michael D'Errico" at Aug 9, 10 08:20:02 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal05
X-SAP: out
Cc: Xuelei.Fan@Sun.COM, tls@ietf.org
Subject: Re: [TLS] What's the right version number in the PreMasterSecret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Aug 2010 14:56:43 -0000

Michael D'Errico wrote:
> 
> Based on the scenarios below, it looks like Opera is doing the right
> thing during the renegotiation while IE 8 is not.

Opera is sending the correct client_version in the RSA PreMaster Secret
in both handshakes (initial and renegotiation).  Handshakes in the
originial SSLv3 and TLS protocol were completely independent and
self-contained, so the back-reference of the client_version in
RSA premaster secret is ALWAYS to the ClientHello handshake message
of the current handshake.

But both browsers should actually be sending their highest supported
protocol version as client_version on EVERY ClientHello handshake
message--independent of whether they propose session resumption--
and both browsers appear to flunk on this point.


-Martin

> 
> Xuelei Fan wrote:
> > In RFC4346/5246, the specification for client_version in the
> > PreMasterSecret is described as:
> > ---------------
> >       struct {
> >           ProtocolVersion client_version;
> >           opaque random[46];
> >       } PreMasterSecret;
> > 
> >       client_version The latest (newest) version supported by the
> >          client.  This is used to detect version roll-back attacks.
> >          Upon receiving the premaster secret, the server SHOULD check
> >          that this value matches the value transmitted by the client in
> >          the client hello message.
> > 
> >       ....
> > 
> >    Note: The version number in the PreMasterSecret MUST be the version
> >          offered by the client in the ClientHello, not the version
> >          negotiated for the connection.  This feature is designed to
> >          prevent rollback attacks.
> > ---------------
> > 
> > The spec is clear for initial handshaking. But while testing
> > renegotiation, we get two different interpretations of the version
> > number in the PreMasterSecret. We noticed Opera (10.50) uses the version
> > number offered by the renegotiation ClientHello, while Microsoft IE 8
> > (IE 8 at Windows 7) uses the version number offered by the ClientHello
> > in the initial handshaking.
> > 
> > For Opera, the scenario looks like:
> > 
> >     Opera <--------------> TLS server
> >          --->ClientHello V1.2--->
> >          <---ServerHello V1.1<---
> >          ...
> >          --->PreMasterSecret (v1.2)--->  (as expected)
> >          ...
> >          <---HelloRequest<----
> >          ---->ClientHello v1.1----> (ask for an abbreviated handshake)
> >          <---ServerHello V1.1<---   (not resumable, new session)
> >          ...
> >          --->PreMasterSecret (v1.1)---> (*)
> > 
> > 
> > For IE 8, the scenario looks like:
> > 
> >     IE 8<--------------> TLS server
> >          --->ClientHello V1.2--->
> >          <---ServerHello V1.1<---
> >          ...
> >          --->PreMasterSecret (v1.2)--->  (as expected)
> >          ...
> >          <---HelloRequest<----
> >          ---->ClientHello v1.1----> (ask for an abbreviated handshake)
> >          <---ServerHello V1.1<---   (not resumable, new session)
> >          ...
> >          --->PreMasterSecret (v1.2)---> (**)
> > 
> > (*) Opera uses the version number offered by the ClientHello in the
> > renegotiation handshaking.
> > (**) IE 8 uses the version number offered by the ClientHello in the
> > initial handshaking.
> > 
> > Please help to clarify what's the correct version number choice for
> > renegotiation.
> > 
> > Thanks,
> > Xuelei (Andrew) Fan
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
> 


From yngve@opera.com  Tue Aug 10 08:26:03 2010
Return-Path: <yngve@opera.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 4C5723A6A33 for <tls@core3.amsl.com>; Tue, 10 Aug 2010 08:26:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 0Hb1kRbdV9-J for <tls@core3.amsl.com>; Tue, 10 Aug 2010 08:26:02 -0700 (PDT)
Received: from smtp.opera.com (smtp.opera.com [213.236.208.81]) by core3.amsl.com (Postfix) with ESMTP id 3E2233A698C for <tls@ietf.org>; Tue, 10 Aug 2010 08:26:01 -0700 (PDT)
Received: from acorna.invalid.invalid (161.131.189.109.customer.cdi.no [109.189.131.161]) (authenticated bits=0) by smtp.opera.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7AFQSNA016227 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 10 Aug 2010 15:26:29 GMT
Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes
To: "Michael D'Errico" <mike-list@pobox.com>, "Martin Rex" <mrex@sap.com>
References: <201008101457.o7AEv9e7019723@fs4113.wdf.sap.corp>
Date: Tue, 10 Aug 2010 17:26:29 +0200
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
From: "Yngve N. Pettersen (Developer Opera Software ASA)" <yngve@opera.com>
Organization: Opera Software AS
Message-ID: <op.vg8aifvdqrq7tp@acorna.invalid.invalid>
In-Reply-To: <201008101457.o7AEv9e7019723@fs4113.wdf.sap.corp>
User-Agent: Opera Mail/10.60 (Win32)
Cc: Xuelei.Fan@sun.com, tls@ietf.org
Subject: Re: [TLS] What's the right version number in the PreMasterSecret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Aug 2010 15:26:03 -0000

On Tue, 10 Aug 2010 16:57:09 +0200, Martin Rex <mrex@sap.com> wrote:

> Michael D'Errico wrote:
>>
>> Based on the scenarios below, it looks like Opera is doing the right
>> thing during the renegotiation while IE 8 is not.
>
> Opera is sending the correct client_version in the RSA PreMaster Secret
> in both handshakes (initial and renegotiation).  Handshakes in the
> originial SSLv3 and TLS protocol were completely independent and
> self-contained, so the back-reference of the client_version in
> RSA premaster secret is ALWAYS to the ClientHello handshake message
> of the current handshake.
>
> But both browsers should actually be sending their highest supported
> protocol version as client_version on EVERY ClientHello handshake
> message--independent of whether they propose session resumption--
> and both browsers appear to flunk on this point.

I have not been able to locate the exact reason for our policy, but if we  
have an active session against a server we will use the negotiated  
protocol version in future handshakes.

This policy is 11+ years old, and was probably implemented because there  
was some kind of problem with resuming sessions using a Hello protocol  
version different from the one we used when setting up the session.

It may be possible to remove this, along with all the version fallback  
code, when we enter strict Renego patch mode.


-- 
Sincerely,
Yngve N. Pettersen

********************************************************************
Senior Developer                     Email: yngve@opera.com
Opera Software ASA                   http://www.opera.com/
Phone:  +47 24 16 42 60              Fax:    +47 24 16 40 01
********************************************************************

From brian@briansmith.org  Tue Aug 10 08:48:56 2010
Return-Path: <brian@briansmith.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C3A053A67A1 for <tls@core3.amsl.com>; Tue, 10 Aug 2010 08:48:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.386
X-Spam-Level: 
X-Spam-Status: No, score=-0.386 tagged_above=-999 required=5 tests=[AWL=-0.387, BAYES_50=0.001]
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 xIBIi0Dmmeoc for <tls@core3.amsl.com>; Tue, 10 Aug 2010 08:48:55 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 13B3E3A6884 for <tls@ietf.org>; Tue, 10 Aug 2010 08:48:54 -0700 (PDT)
Received: from T60 (unknown [98.200.150.199]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id BA5F0509DD; Tue, 10 Aug 2010 11:49:23 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: "'Adam Langley'" <agl@google.com>
References: <001201cb1c6b$b24f9730$16eec590$@briansmith.org>	<AANLkTil_u_ZUj-suzrdJryzS7cIqofFLGIwXUk2eIB4x@mail.gmail.com>	<001301cb3100$ef203ee0$cd60bca0$@briansmith.org> <AANLkTimM=mRqCMqvO+vCR_t==Wjz1Jd5jMM_43-6sAbS@mail.gmail.com>
In-Reply-To: <AANLkTimM=mRqCMqvO+vCR_t==Wjz1Jd5jMM_43-6sAbS@mail.gmail.com>
Date: Tue, 10 Aug 2010 10:49:22 -0500
Message-ID: <003c01cb38a3$9d5c55d0$d8150170$@briansmith.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQG/yiGAso7HZOsbN9ePveYgcrF8tAIKWdVtASYzm2UCcRh8AwFUymAk
Content-Language: en-us
Cc: tls@ietf.org
Subject: Re: [TLS] Ephemeral key exchange in TLS Snap Start (was RE: TLS Snap Start)
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Aug 2010 15:48:56 -0000

Adam Langley wrote:
> On Sat, Jul 31, 2010 at 6:37 PM, Brian Smith <brian@briansmith.org> =
wrote:
> > 1. An extension (or new cipher suites) for indicating that the =
(EC)DH
> parameters in a ServerKeyExchange message are not really ephemeral, =
but
> rather are reusable for a certain duration of time. This part could be =
used reused
> independently of the other parts.
>=20
> I believe that this is isomorphic to (EC)DH_(RSA|DSS). Although I must =
admit that
> I've never seen a fixed DH TLS connection, and a brief check of the =
RFC wasn't
> enlightening. I'm not aware of the standard format for =
(EC)DH_(RSA|DSS)
> certificates, although I suppose that the
> X.509 PublicKey field is flexible enough to admit a fixed DH value.

A certificate with fixed D-H parameters (ECDH or DH) puts the D-H =
parameters in the public key field. The _RSA|_DSS|_ECDSA at the end =
simply refers to the signature algorithm used to signed the certificate =
by the CA. That means you cannot use the same certificate for ECDH_RSA =
and RSA or for DH_RSA and RSA, because the public key formats don't =
match. So, if you want to support fixed D-H parameters AND also support =
regular RSA key exchange, you need TWO certificates, at least. And, you =
need a server that is willing and able to choose a certificate based on =
the negotiated cipher suite, which Apache/mod_ssl/OpenSSL cannot even =
do, and which many clients (including NSS and many other very popular =
ones) do not support. So, it isn't surprising that we don't see fixed DH =
parameter certificates in the wild. Further, I searched around and I =
could not find any indication from *any* commercial CA that they would =
be willing to issue a certificate with a ECDH, DH, or general-purpose =
ECC (which allows ECDH and ECDSA) public key.

But, even without those obstacles, there is another major one: rotating =
encryption keys by replacing certificates is a very tedious and =
error-prone manual process that has no tools available to automate it. =
And, setting up this kind of certificate rotation seems beyond what we =
can reasonably expect typical web server administrators to understand =
and care about, as the vast majority of documentation on configuring a =
SSL server is of the form "Here's the bare minimum to get a client to =
connect; don't touch anything after you see it working."

> If the server
> knew that the client could trust the fixed DH value via another means =
(i.e.
> DNSSEC) then the signature of the certificate could be omitted and the
> _(RSA|DSS) part rendered moot.

I agree that DNSSEC seems like a great idea, except we are still very =
far off from being able to rely on DNSSEC anywhere, and in some parts of =
the world, DNSSEC may not happen for a very long time. IMO, we can =
achieve the same effects much faster by creating a new set of =
"short-term static ECDH" cipher suites that allow one to use a plain old =
RSA certificate to sign a timestamped set of reusable ECDH parameters =
that are transmitted in the ServerKeyExchange message--much like ECDHE, =
but with additional signed parameters indicating the validity of the =
ECDH parameters.

> > 2. An extension that allows the client to put its ClientKeyExchange =
in a
> ClientHello extension. For DHE key exchanges, this would depend on the
> preceding extension.
>=20
> I believe that the fixed DH value would be included in the client's =
certificate with
> (EC)DH_(RSA|DSS). Again, probably unsigned.

I think we have some miscommunication here. The vast majority of the =
time, there will be no client certificate. And, when there is a client =
certificate, it will almost never have fixed DH parameters. And, when it =
does have them, they mean something different than what I understand you =
to mean here.

> > Given #1 and #2, the handshake would be optimized to a sequence =
similar to
> session resumption, but allowing a request for client authentication:
>=20
> (I intended that Snap start already allow for client-side =
certificates, although
> none of my unittests verify this.)

The current formulation of snap start requires the client to prove proof =
of possession of the user's private key (i.e. prove the user's identity) =
before the server identifies itself. This is a problem inherited from =
regular TLS's RSA key exchange. The (EC)DH(E) cipher suites require the =
server to prove possession of the server private key first, which is =
extremely helpful when the user has to decide whether or not to send his =
certificate. IMO, this means that client certificates shouldn't be used =
at all with RSA key exchange.

> In general, I see EDH as much more of a spectrum than the dichotomy =
that I
> often find it presented as. At one extreme, multiple EDH handshakes =
could be
> performed in a single connection to protect different time spans of =
that
> connection. At the other, the practice of rotating RSA keys every year =
provides
> some forward security: a compromise of this year's key doesn't allow =
for
> retrospective decryption of last year's traffic.

Almost all of the incentives for a server operator are to use RSA key as =
long as possible, unless they somehow have an understanding of forward =
secrecy. First, CAs give you deep discounts for buying certificates with =
longer validity periods (up to five or even ten years). And, nothing =
forces (and little documentation even encourages) a sysadmin to generate =
a new RSA private key when renewing certificates. I wouldn't be =
surprised to find that a huge number of servers on the internet are =
using the same RSA keys basically in perpetuity. When key rotation does =
happen, the tools available are so error-prone that they key rotation =
process itself becomes a very likely point of key compromise. And, how =
many server private keys get backed up every day, unprotected, in =
virtually permanent storage? These are the main reasons I advocate =
against using RSA key exchange. A new "short-term static ECDH" key =
exchange method would allow a server (cluster) to securely and =
frequently (e.g. daily) rotate encryption keys, autonomously, in a way =
that is much less error prone while potentially being much less =
expensive computationally than RSA key exchange.

> When using ECDHE with a 224-bit curve (or larger), I think key =
compromise is the
> greatest danger. The work required to calculate discrete logs in such =
a large
> group suggests that, if accomplished, the attacker probably has such a
> monumental breakthrough (i.e. a quantum computer) that per-connection =
EDH
> probably isn't going to present much more of a challenge.
>=20
> Therefore, rotating a fixed DH value at some frequency may well =
provide a
> better performance/security trade-off than per-connection EDH.

I agree.=20

> (And I'm
> probably pointing out the obvious when I say that DNSSEC seems to =
provide a
> convenient, dynamic trust base for that.)

It seems unlikely that we will be able to depend on any such mechanism =
any time soon. I am not even sure that we'll need TLS at the time that =
such a mechanism becomes generally useful. That's why I think an =
in-protocol solution is better.

Regards,
Brian


From paul.hoffman@vpnc.org  Tue Aug 10 10:38:37 2010
Return-Path: <paul.hoffman@vpnc.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 16DB73A6A8A for <tls@core3.amsl.com>; Tue, 10 Aug 2010 10:38:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -99.69
X-Spam-Level: 
X-Spam-Status: No, score=-99.69 tagged_above=-999 required=5 tests=[AWL=-0.244, BAYES_50=0.001, HELO_MISMATCH_COM=0.553, 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 fnF9fjID8m1K for <tls@core3.amsl.com>; Tue, 10 Aug 2010 10:38:36 -0700 (PDT)
Received: from hoffman.proper.com (Hoffman.Proper.COM [207.182.41.81]) by core3.amsl.com (Postfix) with ESMTP id 123133A698D for <tls@ietf.org>; Tue, 10 Aug 2010 10:38:35 -0700 (PDT)
Received: from [10.20.30.158] (75-101-30-90.dsl.dynamic.sonic.net [75.101.30.90]) (authenticated bits=0) by hoffman.proper.com (8.14.4/8.14.3) with ESMTP id o7AHdAT4046919 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <tls@ietf.org>; Tue, 10 Aug 2010 10:39:11 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
Mime-Version: 1.0
Message-Id: <p0624081fc8873f1b843a@[10.20.30.158]>
Date: Tue, 10 Aug 2010 10:39:08 -0700
To: tls@ietf.org
From: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: text/plain; charset="us-ascii"
Subject: [TLS] Microsoft's view of the renegotiation problem
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Aug 2010 17:38:37 -0000

Of interest to this list:

<http://blogs.technet.com/b/srd/archive/2010/08/10/ms10-049-an-inside-look-at-cve-2009-3555-the-tls-renegotiation-vulnerability.aspx>

From brian@briansmith.org  Tue Aug 10 11:01:50 2010
Return-Path: <brian@briansmith.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 4A59E3A6A95 for <tls@core3.amsl.com>; Tue, 10 Aug 2010 11:01:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.665
X-Spam-Level: 
X-Spam-Status: No, score=-1.665 tagged_above=-999 required=5 tests=[AWL=0.933,  BAYES_00=-2.599, HTML_MESSAGE=0.001]
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 LmrRofhwKowk for <tls@core3.amsl.com>; Tue, 10 Aug 2010 11:01:47 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 0874C3A6867 for <tls@ietf.org>; Tue, 10 Aug 2010 11:01:46 -0700 (PDT)
Received: from T60 (unknown [98.200.150.199]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id F0C89509DD for <tls@ietf.org>; Tue, 10 Aug 2010 14:02:15 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: <tls@ietf.org>
Date: Tue, 10 Aug 2010 13:02:14 -0500
Message-ID: <001801cb38b6$2cfd1d20$86f75760$@briansmith.org>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0019_01CB388C.442DF2F0"
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQJQhPCoMWvCkrPhmfXViGCyYPHC0g==
Content-Language: en-us
Subject: [TLS] When/why is the RSA premaster secret version rollback check needed?
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Aug 2010 18:01:50 -0000

This is a multipart message in MIME format.

------=_NextPart_000_0019_01CB388C.442DF2F0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

What attack is thwarted by checking the version number in the premaster
secret that isn't thwarted by the Finished message hash & HMAC? If a server
finds this check problematic for some reason, what alternate countermeasures
could it take to achieve a same security assurance? 

 

At first, I thought it was enough to disable SSL 2.0 support. But, the TLS
1.2 specification actually requires *stricter* checks when the hello
versions are newer than it does when the hello versions are older. I am
having trouble understanding how this makes sense.

 

My intuition tells me that for a server that doesn't support SSL 2.0, the
premaster secret version check must either be unnecessary, or it must be
caused by some problem inherent to RSA key exchange that I've overlooked,
since the Finished message protects the entire contents of hello messages
(including the version numbers), and this specific check isn't done for
other key exchange methods.

 

Any help-even simply a link to the discussion that motivated the addition of
the version number into the RSA encrypted premaster secret-would be greatly
appreciated.

 

Thank you,

Brian


------=_NextPart_000_0019_01CB388C.442DF2F0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 14 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"MS Mincho";
	panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
	{font-family:"MS Mincho";
	panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:"\@MS Mincho";
	panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal>What =
attack is thwarted by checking the version number in the premaster =
secret that isn&#8217;t thwarted by the Finished message hash &amp; =
HMAC? If a server finds this check problematic for some reason, what =
alternate countermeasures could it take to achieve a same security =
assurance? <o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>At first, I thought it was enough to disable SSL 2.0 =
support. But, the TLS 1.2 specification actually requires =
*<b>stricter</b>* checks when the hello versions are newer than it does =
when the hello versions are older. I am having trouble understanding how =
this makes sense.<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>My intuition =
tells me that for a server that doesn&#8217;t support SSL 2.0, the =
premaster secret version check must either be unnecessary, or it must be =
caused by some problem inherent to RSA key exchange that I&#8217;ve =
overlooked, since the Finished message protects the entire contents of =
hello messages (including the version numbers), and this specific check =
isn&#8217;t done for other key exchange methods.<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>Any =
help&#8212;even simply a link to the discussion that motivated the =
addition of the version number into the RSA encrypted premaster =
secret&#8212;would be greatly appreciated.<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>Thank =
you,<o:p></o:p></p><p =
class=3DMsoNormal>Brian<o:p></o:p></p></div></body></html>
------=_NextPart_000_0019_01CB388C.442DF2F0--


From mike-list@pobox.com  Tue Aug 10 11:29:15 2010
Return-Path: <mike-list@pobox.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 10B4E3A6AA2 for <tls@core3.amsl.com>; Tue, 10 Aug 2010 11:29:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 tNTNd38BnA1p for <tls@core3.amsl.com>; Tue, 10 Aug 2010 11:29:14 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 0D0773A6A8D for <tls@ietf.org>; Tue, 10 Aug 2010 11:29:13 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id B483BCC762; Tue, 10 Aug 2010 14:29:48 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=xRvapej207PF Db/PxDccpkHnB5I=; b=PEWdJ503LDkquuGUfGuIC8AFliuz14baXZfvCC/AargI rFbSn8+PP2t9Gg+nMW66A+NzpQeIR6wRZNG7MASTz+evawTO3/gtrjSMcR9F27CU Ucxzfxq/m6gliByovJxG2YQVEIJL/QMrmE2HatR4vCkM7oBzaBOn1HnUvwSKNA8=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=b5FhA3 st9sQG48jhkJ8vAtymavZtHLltfBwAIaDGIT3EgfDo+HFiMb7Jp9cvBKwtAw9/MU MWALzRuiFLnni5hiofvNvpxlqtKfimX/0CN7c+R4KSCtkF4YkX+OcdhTHRvGjhpp rUEZbi0lK64aodqCZZ5ocHlHHD1BaHhqZbxWc=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 2F3B7CC75D; Tue, 10 Aug 2010 14:29:46 -0400 (EDT)
Received: from iMac.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 7E2F5CC755; Tue, 10 Aug 2010 14:29:37 -0400 (EDT)
Message-ID: <4C619A90.1010403@pobox.com>
Date: Tue, 10 Aug 2010 11:29:36 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
To: Brian Smith <brian@briansmith.org>
References: <001801cb38b6$2cfd1d20$86f75760$@briansmith.org>
In-Reply-To: <001801cb38b6$2cfd1d20$86f75760$@briansmith.org>
Content-Type: text/plain; charset=windows-1252; format=flowed
X-Pobox-Relay-ID: 406D11B8-A4AD-11DF-9972-9056EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Content-Transfer-Encoding: quoted-printable
Cc: tls@ietf.org
Subject: Re: [TLS] When/why is the RSA premaster secret version rollback check needed?
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Aug 2010 18:29:15 -0000

> What attack is thwarted by checking the version number in the premaster=
=20
> secret that isn=92t thwarted by the Finished message hash & HMAC?

I think it is a "belt and suspenders" approach to security, which is a
good thing.  It probably isn't strictly necessary.  You probably realize
that with DH-based cipher suites, the premaster secret can not include a
version; thus if the version check was actually critical, then DH would
be less secure than RSA.  I haven't heard anybody claim that to be true.

Mike

From marsh@extendedsubset.com  Tue Aug 10 11:35:47 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C1B373A68B1 for <tls@core3.amsl.com>; Tue, 10 Aug 2010 11:35:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.699
X-Spam-Level: 
X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5 tests=[AWL=-0.700, BAYES_50=0.001]
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 L1aL8TMnCrEW for <tls@core3.amsl.com>; Tue, 10 Aug 2010 11:35:45 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id 37BB33A6AB1 for <tls@ietf.org>; Tue, 10 Aug 2010 11:35:22 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1Oitfz-000LVg-E4 for tls@ietf.org; Tue, 10 Aug 2010 18:35:51 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 61D946087 for <tls@ietf.org>; Tue, 10 Aug 2010 18:35:49 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1+HkZhSnp6lEdI8Vun7ZdheL2DuHpHZMKI=
Message-ID: <4C619C03.3060809@extendedsubset.com>
Date: Tue, 10 Aug 2010 13:35:47 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: "tls@ietf.org" <tls@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: [TLS] Way to go everybody! TLS FTW!
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Aug 2010 18:35:47 -0000

Today, this "Patch Tuesday", Microsoft releases KB980436 which adds 
support for RFC 5746 the Renegotiation Indication Extension
http://www.microsoft.com/technet/security/bulletin/ms10-049.mspx
This is a major accomplishment, Microsoft clearly has as many affected 
products and systems as anybody. Although they may be bringing up the 
rear among the vendors, the rear has clearly been brought up.

In less than one year (10 months since public disclosure), we've taken 
an exceptionally thorny protocol security bug and helped and encouraged 
the great majority of the industry to quickly deploy a fix.

To put this in perspective, I'll be talking on Thurs (Usenix Security 
10) about another protocol (NTLM/MSCHAP v1,2) which has been subject to 
a known credentials forwarding attack for about the last 16 years 
without a proper fix! Alice connects to wifi in coffeehouse, Bob gets 
into VPN. It's that bad.

This list was especially active back in Nov-Dec when the public 
discussion began. Lots of us put in extra effort discussing every detail 
to death making sure the IETF-endorsed solution would close the security 
hole, preserve the needed functionality, and cause minimal disruption 
during deployment. The only work remaining in this mitigation is to not 
let everyone forget to eventually migrate to strict rather than 
compatible mode.

There was more than one person (mostly not on this list) who said it 
couldn't be done, yet it was. Certainly there there will be systems 
which do not deploy the fix, but such unmaintained systems become less 
relevant over time and are probably vulnerable through many other 
vectors already.

I think everyone on this list deserves a pat on the back (I would buy 
the next round if I could :-).

- Marsh

From aerowolf@gmail.com  Tue Aug 10 14:44:40 2010
Return-Path: <aerowolf@gmail.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 136F628C0D9; Tue, 10 Aug 2010 14:44:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.918
X-Spam-Level: 
X-Spam-Status: No, score=-0.918 tagged_above=-999 required=5 tests=[AWL=-0.072, BAYES_00=-2.599, MIME_BASE64_TEXT=1.753]
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 w7vPq2KMulvv; Tue, 10 Aug 2010 14:44:38 -0700 (PDT)
Received: from mail-ew0-f44.google.com (mail-ew0-f44.google.com [209.85.215.44]) by core3.amsl.com (Postfix) with ESMTP id 15D953A6AE3; Tue, 10 Aug 2010 14:44:37 -0700 (PDT)
Received: by ewy22 with SMTP id 22so4694739ewy.31 for <multiple recipients>; Tue, 10 Aug 2010 14:45:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :subject:in-reply-to:references:mime-version:content-type; bh=/F/Ibzq9CI5skYo1gfz6tT2R3onlqbqVOBTUuIufOqI=; b=N3YEQU9JRM9p19T9iUMqk5hDm7NZSy0xrlbvWYPuAnK7HABgBXinKwhVnBT5I1qQJp LtZz8NTopcceSTU5dSHtpgkxLsBpUaagCRPQKF0RN+bRul/6auYFEK/vVYBpsRi65tS4 xPzGqdRDVuwM6bhg532Z2LHsXNG6OBnZ6tuT0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject:in-reply-to:references :mime-version:content-type; b=MUgiS2AkfR/ISmLWFvrn5yr2sPg1PigCTgQ28UgZFkjrzra90IlVzNXc6sBBoQwRHc 26kNg6NaP8FMX5F1C4CgyVB4xmFQmpRhQWRNNyT6c6GxaXCYVmD5AZ4BQK1CQmv36C1I qAV2GRLUmgsotjK+Lzg7YfqzJPvqki49Ex9jk=
Received: by 10.213.4.145 with SMTP id 17mr4873500ebr.17.1281476712853; Tue, 10 Aug 2010 14:45:12 -0700 (PDT)
Received: from [127.0.0.1] (c-76-103-146-6.hsd1.ca.comcast.net [76.103.146.6]) by mx.google.com with ESMTPS id v8sm10487867eeh.20.2010.08.10.14.45.09 (version=SSLv3 cipher=RC4-MD5); Tue, 10 Aug 2010 14:45:11 -0700 (PDT)
From: "Kyle Hamilton" <aerowolf@gmail.com>
To: "Kemp, David P." <DPKemp@missi.ncsc.mil>
Date: Tue, 10 Aug 2010 14:45:07 -0700 (PST)
Message-ID: <gcpa57emw0794q0kx3jezwJv4X.penango@mail.gmail.com>
In-Reply-To: <4C573E09.1060700@nist.gov>
References: <4C573E09.1060700@nist.gov>
MIME-Version: 1.0
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha1"; charset=x-user-defined; boundary=gmsm1.4.5eqgcpa57m7fs9dxwqvxr2
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] [pkix] Previous attempt to update OCSP
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Aug 2010 21:44:40 -0000

This is an S/MIME signed message generated with Penango.
--gmsm1.4.5eqgcpa57m7fs9dxwqvxr2
Content-Transfer-Encoding: base64
Content-Type: text/plain; format=flowed; charset=iso-8859-1

DQoNCk9uIFR1ZSwgQXVnIDEwLCAyMDEwIGF0IDc6MDYgQU0sIEtlbXAsIERhdmlkIFAuIDxEUEtl
bXBAbWlzc2kubmNzYy5taWw+IHdyb3RlOg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0K
PiBGcm9tOiBUb21hcyBHdXN0YXZzc29uDQo+DQo+PiBPbiAwOC8xMC8yMDEwIDA4OjQ0IEFNLCBQ
ZXRlciBHdXRtYW5uIHdyb3RlOg0KPj4+DQo+Pj4gT0NTUCBpc24ndCB0aGF0IHNpbXBsZSwgaXQn
cyBhY3R1YWxseSBxdWl0ZSBjb21wbGljYXRlZCBmb3Igd2hhdCBpdA0KPiBkb2VzLiCgVGhlDQo+
Pj4gcmVhc29uIGl0IGdldHMgdXNlZCBpcyBiZWNhdXNlIGl0J3Mgbm90IENSTHMuDQo+Pj4NCj4+
IEkgdG90YWxseSBidXkgdGhhdCBPQ1NQIGlzIHVzZWQgYmVjYXVzZSB0aGVyZSBpcyBub3RoaW5n
IHdvcnNlIHRoYW4NCj4gQ1JMcy4NCj4NCj4gTm90aGluZyBpcyB3b3JzZSB0aGFuIDEwIE1CIENS
THMgb3ZlciBMREFQLiCgQnV0IG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9maWxlZC4pDQoNCkluIGZhY3Q6IFguNTA5IGlzIHByaW1hcmls
eSBhYm91dCBhbiBpZGVudGl0eSBpbmZyYXN0cnVjdHVyZS4gIFRoZSBQS0kgbXVzdCBleGlzdCBi
ZWZvcmUgdGhlIFByaXZpbGVnZSBNYW5hZ2VtZW50IEluZnJhc3RydWN0dXJlLCBidXQgdGhlIFBL
SSBpcyBOT1QgYW55IGtpbmQgb2YgUE1JLiAgVW50aWwgdGhlIFBNSSBpcyBkZWZpbmVkIC0tIHdo
aWNoIGlzIGV4Y2VwdGlvbmFsbHkgb3V0LW9mLXNjb3BlIGZvciB0aGUgSUVURiAtLSBubyBwcml2
aWxlZ2VzIHNob3VsZCBiZSBhYmxlIHRvIGJlIGdyYW50ZWQgZHVlIHRvIGZsYWdzIHNldCBieSBh
IENBIG9uIGEgcGFydGljdWxhciBjZXJ0aWZpY2F0ZS4NCg0KLUt5bGUgSA==
--gmsm1.4.5eqgcpa57m7fs9dxwqvxr2
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
Content-Type: application/pkcs7-signature; name="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIINBDCCBjQw
ggQcoAMCAQICASAwDQYJKoZIhvcNAQEFBQAwfTELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0
Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNpZ25pbmcxKTAn
BgNVBAMTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA3MTAyNDIxMDI1NVoX
DTE3MTAyNDIxMDI1NVowgYwxCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1TdGFydENvbSBMdGQuMSsw
KQYDVQQLEyJTZWN1cmUgRGlnaXRhbCBDZXJ0aWZpY2F0ZSBTaWduaW5n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FByaW1hcnkgSW50ZXJtZWRpYXRlIENs
aWVudCBDQQICCMQwCQYFKw4DAhoFAKCBvjAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqG
SIb3DQEJBTEPFw0xMDA4MTAyMTQ1MDdaMCMGCSqGSIb3DQEJBDEWBBQUOZ0P/8BDlCHmxmLTTxW/
X6Y4UjBfBgkqhkiG9w0BCQ8xUjBQMAsGCWCGSAFlAwQBAjAKBggqhkiG9w0DBzAOBggqhkiG9w0D
AgICAIAwDQYIKoZIhvcNAwICAUAwBwYFKw4DAgcwDQYIKoZIhvcNAwICASgwDQYJKoZIhvcNAQEB
BQAEggEAf4Zw6+eyn3TjERzbqBH102uApJSFacWMDKDoLNkXSAfU0FSEoYaQ1GId6Zss5rs1SiLC
zP8HTfvh0vDg/M/qs/uZMd4qvJP7NDNMN1SSQeOwhPctb+Ll3agqA/Wm0Nn3xBhw/VCNyb7ti4ez
zYJxjLYxjAP0nRRIoeEK002JLUdTbFiUsi2HNTBV3QJwz7EMYKtanKlzMjztwKsfiK650SuHh5Nq
UoB7PVE+01y+38Ch97XA7VqlNUSlJGumNhISw97eqp+6hkorOW/Lh/1iHNRGJ0nIn5shCVgSJByB
oLwFD1B1x4luutQzPsKbTbj++ko095oV2vOajbJ0EMNpCwAAAAAAAA==
--gmsm1.4.5eqgcpa57m7fs9dxwqvxr2--


From aerowolf@gmail.com  Tue Aug 10 15:34:48 2010
Return-Path: <aerowolf@gmail.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 7CAEE3A6AEA for <tls@core3.amsl.com>; Tue, 10 Aug 2010 15:34:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.911
X-Spam-Level: 
X-Spam-Status: No, score=-0.911 tagged_above=-999 required=5 tests=[AWL=-0.065, BAYES_00=-2.599, MIME_BASE64_TEXT=1.753]
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 WgFdmPBk1kkl for <tls@core3.amsl.com>; Tue, 10 Aug 2010 15:34:45 -0700 (PDT)
Received: from mail-qy0-f179.google.com (mail-qy0-f179.google.com [209.85.216.179]) by core3.amsl.com (Postfix) with ESMTP id E99503A6AE6 for <tls@ietf.org>; Tue, 10 Aug 2010 15:34:44 -0700 (PDT)
Received: by qyk8 with SMTP id 8so10007567qyk.10 for <tls@ietf.org>; Tue, 10 Aug 2010 15:35:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :subject:in-reply-to:references:mime-version:content-type; bh=9jdQsDMURQ0nIiJq/s1OdkTa6nWWn7u4kWycz9mIwyk=; b=UxfHg0LUDk+NJsZD7CX+rTMScQwSVPRM6e4Ttcm/9pfu8P+OnwsMMwz7V257n2pm8c Mt2uQpI7uP8UMDgJVz73GoK6PFayEJdgyvg1dcy7OpWL/02Se2p5NT9+cTLz9LRiB6vw 1uTgoIwsN01dI+xWrVqsLVoWu16vlcwvNOMWU=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject:in-reply-to:references :mime-version:content-type; b=gt0LJRztxQJwl6bPKr/baTHn0W1y7tVqD0kXW87ywoCZ7z55+DajUS8VAxVvSvCmw8 213GqPn6p9vbggeXtEGaW7N3K4Lxkqzcn4sJPSSvdWJjUup4CR9k9ZSWSMbg25cHFKeZ dSbJOLJP73v82nXQYsnrQxclaP9KQXz/8DTiI=
Received: by 10.224.78.32 with SMTP id i32mr10068601qak.42.1281479720050; Tue, 10 Aug 2010 15:35:20 -0700 (PDT)
Received: from [127.0.0.1] (c-76-103-146-6.hsd1.ca.comcast.net [76.103.146.6]) by mx.google.com with ESMTPS id t4sm8496898qcs.4.2010.08.10.15.35.17 (version=SSLv3 cipher=RC4-MD5); Tue, 10 Aug 2010 15:35:18 -0700 (PDT)
From: "Kyle Hamilton" <aerowolf@gmail.com>
To: "Michael D'Errico" <mike-list@pobox.com>
Date: Tue, 10 Aug 2010 15:35:16 -0700 (PST)
Message-ID: <gcpbxpjp2odftlprasjezwJv4X.penango@mail.gmail.com>
In-Reply-To: <4C60B98B.6000004@Sun.COM>
References: <4C60B98B.6000004@Sun.COM>
MIME-Version: 1.0
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha1"; charset=x-user-defined; boundary=gmsm1.4.5eqgcpbxpodvsu3yqdh3i2
Cc: Xuelei Fan <Xuelei.Fan@sun.com>, tls@ietf.org
Subject: Re: [TLS] What's the right version number in the PreMasterSecret for renegotiation
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Aug 2010 22:34:48 -0000

This is an S/MIME signed message generated with Penango.
--gmsm1.4.5eqgcpbxpodvsu3yqdh3i2
Content-Transfer-Encoding: base64
Content-Type: text/plain; format=flowed; charset=iso-8859-1

Q2FuIHlvdSBwbGVhc2UgZXhwbGFpbiBob3cgYW5kIHdoeSB5b3UgY2FtZSB0byB0aGlzIGNvbmNs
dXNpb24/ICAoUGxlYXNlIGRvbid0IHRha2Ugb2ZmZW5zZSwgSSdtIG5vdCBkaXNwdXRpbmcgdGhl
IGNvbmNsdXNpb24sIEkgc2ltcGx5IHdpc2ggdG8gYmUgbW9yZSBpbmZvcm1lZCBhcyB0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sbG9SZXF1ZXN0PC0tLS0NCj4+IKAgoCCgIKAgLS0tLT5DbGllbnRI
ZWxsbyB2MS4xLS0tLT4gKGFzayBmb3IgYW4gYWJicmV2aWF0ZWQgaGFuZHNoYWtlKQ0KPj4goCCg
IKAgoCA8LS0tU2VydmVySGVsbG8gVjEuMTwtLS0goCAobm90IHJlc3VtYWJsZSwgbmV3IHNlc3Np
b24pDQo+PiCgIKAgoCCgIC4uLg0KPj4goCCgIKAgoCAtLS0+UHJlTWFzdGVyU2VjcmV0ICh2MS4y
KS0tLT4gKCoqKQ0KPj4NCj4+ICgqKSBPcGVyYSB1c2VzIHRoZSB2ZXJzaW9uIG51bWJlciBvZmZl
cmVkIGJ5IHRoZSBDbGllbnRIZWxsbyBpbiB0aGUNCj4+IHJlbmVnb3RpYXRpb24gaGFuZHNoYWtp
bmcuDQo+PiAoKiopIElFIDggdXNlcyB0aGUgdmVyc2lvbiBudW1iZXIgb2ZmZXJlZCBieSB0aGUg
Q2xpZW50SGVsbG8gaW4gdGhlDQo+PiBpbml0aWFsIGhhbmRzaGFraW5nLg0KPj4NCj4+IFBsZWFz
ZSBoZWxwIHRvIGNsYXJpZnkgd2hhdCdzIHRoZSBjb3JyZWN0IHZlcnNpb24gbnVtYmVyIGNob2lj
ZSBmb3INCj4+IHJlbmVnb3RpYXRpb24uDQo+Pg0KPj4gVGhhbmtzLA0KPj4gWHVlbGVpIChBbmRy
ZXcpIEZhbg0KPg0KPiBfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fXw0KPiBUTFMgbWFpbGluZyBsaXN0DQo+IFRMU0BpZXRmLm9yZw0KPiBodHRwczovL3d3dy5p
ZXRmLm9yZy9tYWlsbWFuL2xpc3RpbmZvL3Rscw0KPg0KDQo=
--gmsm1.4.5eqgcpbxpodvsu3yqdh3i2
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
Content-Type: application/pkcs7-signature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vSqRZz2oJehtvqI0F052M8Fp5EzzIQL0MlMgA/PEYBAt/
+FEbmQPkEMj3zZE4TKmOAyCEaQrD4puB4tVIdHJmOLdtgwAAAAAAAA==
--gmsm1.4.5eqgcpbxpodvsu3yqdh3i2--


From mike-list@pobox.com  Tue Aug 10 16:02:15 2010
Return-Path: <mike-list@pobox.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id AB19C3A68A7 for <tls@core3.amsl.com>; Tue, 10 Aug 2010 16:02:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 LGcpZ4NXDGut for <tls@core3.amsl.com>; Tue, 10 Aug 2010 16:02:14 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 04D343A6842 for <tls@ietf.org>; Tue, 10 Aug 2010 16:02:11 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 0CE2ECCE55; Tue, 10 Aug 2010 19:02:47 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=tK754UCqh6r5 +8A/g629cU+kPIM=; b=tqZI6W88fz9gDU0ojpUbHPt5CIJW0rpTowsdIUKvzQvq aENboAOVDqSCPxh6Xz/E++cp7LR9Z4L/WiZYltcGxXp1pEjlQ8PXyhHs9bd6bInc SgZTgaMkpaJ3D69aCWy0T8Wh9uL2+pz0OQaPYG1p6BtU67vrqK76k4mrBPY7unM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=umjkeU y6UkSNk3/GVllwud1mQC37nfF4tmGuFWr2YS7IGbJt7juYcgWdkwGQJjY57LOWWI Fl0PMH91oaVTOabt0KLx5rGobV4oJE7mWu9pMLTOwgfIkasuhnbw5w6jDq3Cbdce WoE4QP26eTOFoIHndjdgc92UmsQTJlqQRfwB0=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id CC393CCE54; Tue, 10 Aug 2010 19:02:45 -0400 (EDT)
Received: from iMac.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 17759CCE52; Tue, 10 Aug 2010 19:02:43 -0400 (EDT)
Message-ID: <4C61DA92.2010702@pobox.com>
Date: Tue, 10 Aug 2010 16:02:42 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
To: Kyle Hamilton <aerowolf@gmail.com>
References: <4C60B98B.6000004@Sun.COM> <gcpbxpjp2odftlprasjezwJv4X.penango@mail.gmail.com>
In-Reply-To: <gcpbxpjp2odftlprasjezwJv4X.penango@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 637525A8-A4D3-11DF-AFBF-9056EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] What's the right version number in the PreMasterSecret for renegotiation
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Aug 2010 23:02:15 -0000

Kyle Hamilton wrote:
> Can you please explain how and why you came to this conclusion?  (Please 
> don't take offense, I'm not disputing the conclusion, I simply wish to 
> be more informed as to why?)

The problematic handshake is:

        ---->ClientHello v1.1----> (ask for an abbreviated handshake)
        <---ServerHello V1.1<---   (not resumable, new session)
        ...
        --->PreMasterSecret (v1.2)---> (**)

The version encoded within the PreMasterSecret is not the version
that was used in the ClientHello.  That's a violation of the spec.

The fact that the client does actually support version 1.2 is
immaterial.  A server is not expected to have logic that keeps track
of the highest version the client has ever offered in the past.

Mike




> On Mon, Aug 9, 2010 at 8:20 PM, Michael D'Errico <mike-list@pobox.com> 
> wrote:
>> Based on the scenarios below, it looks like Opera is doing the right
>> thing during the renegotiation while IE 8 is not.
>>
>> Mike
>>
>>
>>
>> Xuelei Fan wrote:
>>>
>>> In RFC4346/5246, the specification for client_version in the
>>> PreMasterSecret is described as:
>>> ---------------
>>>      struct {
>>>          ProtocolVersion client_version;
>>>          opaque random[46];
>>>      } PreMasterSecret;
>>>
>>>      client_version The latest (newest) version supported by the
>>>         client.  This is used to detect version roll-back attacks.
>>>         Upon receiving the premaster secret, the server SHOULD check
>>>         that this value matches the value transmitted by the client in
>>>         the client hello message.
>>>
>>>      ....
>>>
>>>   Note: The version number in the PreMasterSecret MUST be the version
>>>         offered by the client in the ClientHello, not the version
>>>         negotiated for the connection.  This feature is designed to
>>>         prevent rollback attacks.
>>> ---------------
>>>
>>> The spec is clear for initial handshaking. But while testing
>>> renegotiation, we get two different interpretations of the version
>>> number in the PreMasterSecret. We noticed Opera (10.50) uses the version
>>> number offered by the renegotiation ClientHello, while Microsoft IE 8
>>> (IE 8 at Windows 7) uses the version number offered by the ClientHello
>>> in the initial handshaking.
>>>
>>> For Opera, the scenario looks like:
>>>
>>>    Opera <--------------> TLS server
>>>         --->ClientHello V1.2--->
>>>         <---ServerHello V1.1<---
>>>         ...
>>>         --->PreMasterSecret (v1.2)--->  (as expected)
>>>         ...
>>>         <---HelloRequest<----
>>>         ---->ClientHello v1.1----> (ask for an abbreviated handshake)
>>>         <---ServerHello V1.1<---   (not resumable, new session)
>>>         ...
>>>         --->PreMasterSecret (v1.1)---> (*)
>>>
>>>
>>> For IE 8, the scenario looks like:
>>>
>>>    IE 8<--------------> TLS server
>>>         --->ClientHello V1.2--->
>>>         <---ServerHello V1.1<---
>>>         ...
>>>         --->PreMasterSecret (v1.2)--->  (as expected)
>>>         ...
>>>         <---HelloRequest<----
>>>         ---->ClientHello v1.1----> (ask for an abbreviated handshake)
>>>         <---ServerHello V1.1<---   (not resumable, new session)
>>>         ...
>>>         --->PreMasterSecret (v1.2)---> (**)
>>>
>>> (*) Opera uses the version number offered by the ClientHello in the
>>> renegotiation handshaking.
>>> (**) IE 8 uses the version number offered by the ClientHello in the
>>> initial handshaking.
>>>
>>> Please help to clarify what's the correct version number choice for
>>> renegotiation.
>>>
>>> Thanks,
>>> Xuelei (Andrew) Fan
>>
>> _______________________________________________
>> TLS mailing list
>> TLS@ietf.org
>> https://www.ietf.org/mailman/listinfo/tls
>>
> 

From DPKemp@missi.ncsc.mil  Tue Aug 10 16:18:42 2010
Return-Path: <DPKemp@missi.ncsc.mil>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id A857A3A6964; Tue, 10 Aug 2010 16:18:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.316
X-Spam-Level: 
X-Spam-Status: No, score=-6.316 tagged_above=-999 required=5 tests=[AWL=0.284,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 V24nQjr4PVww; Tue, 10 Aug 2010 16:18:41 -0700 (PDT)
Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by core3.amsl.com (Postfix) with ESMTP id 8124A3A68C5; Tue, 10 Aug 2010 16:18:41 -0700 (PDT)
Received: from AUGUSTINE.missi.ncsc.mil (augustine.missi.ncsc.mil [144.51.60.33]) by stingray.missi.ncsc.mil with ESMTP id o7ANJGaW095411; Tue, 10 Aug 2010 19:19:16 -0400 (EDT)
Received: from DABECK.missi.ncsc.mil ([144.51.60.16]) by AUGUSTINE.missi.ncsc.mil with Microsoft SMTPSVC(6.0.3790.4675);  Tue, 10 Aug 2010 19:20:53 -0400
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Tue, 10 Aug 2010 19:13:13 -0400
Message-ID: <C1A47F1540DF3246A8D30C853C05D0DA01B96AEC@DABECK.missi.ncsc.mil>
In-Reply-To: <gcpa57emw0794q0kx3jezwJv4X.penango@mail.gmail.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [pkix] Previous attempt to update OCSP
Thread-Index: Acs41VYprQ2vMcbISqGDRJTuIG7PGAAAP0eA
References: <4C573E09.1060700@nist.gov> <gcpa57emw0794q0kx3jezwJv4X.penango@mail.gmail.com>
From: "Kemp, David P." <DPKemp@missi.ncsc.mil>
To: <pkix@ietf.org>, <tls@ietf.org>
X-OriginalArrivalTime: 10 Aug 2010 23:20:53.0328 (UTC) FILETIME=[AD68C500:01CB38E2]
Subject: Re: [TLS] [pkix] Previous attempt to update OCSP
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Aug 2010 23:18:42 -0000

-----Original Message-----
From: Kyle Hamilton [mailto:aerowolf@gmail.com]=20

> If the CRL actually included semantics as to
> "was a particular certificate valid at a particular
> date/time", I'd agree with you about their elegant
> data structure; as it is, though, there's at least
> two problems I see:
>
> 1) CRLs allow expired certificates to "fall off",
> which prevents anything but the first CRL after the
> expiration of the certificate from being a time-based
> authority as to the status of the certificate during
> its nominal notBefore/notAfter timeframe.
> (If I had the ability to specify the "next generation"
> of CRLs, I'd ensure that there was an 'archive' mechanism,
> where someone could query for the CRL of a given time.)

What does this have to do with CRLs or PKIX?  You could stand up a
repository right now (or just use the wayback machine) that responds to
queries by date/time for anything you wish to archive, including CRLs.


> 2) CRLs suffer a particular issue called "misrevocation".
> i.e., the wrong certificate gets added to the CRL with
> keyCompromise as the reason, someone downloads it, the
> error is corrected (and the serial number of the incorrect
> certificate removed and the correct one added), and now
> any client that didn't get the mis-issued CRL will work
> properly with the mis-revoked certificate, but the clients
> that implement strict CRL semantics will never work properly
> with the mis-revoked certificate again.

Can you point to the RFC 5280 section that calls for Relying Parties to
behave as you describe?

Section 6.3.3 says "This algorithm begins by assuming that the
certificate is not revoked."
Section 6.3.3 (a) (1) (ii) says: "Update the local CRL cache with a
current complete CRL, verify that the current time is before the next
update value in the new CRL, and continue processing with the new CRL."

What I don't see is any text that requires or suggests that RPs preserve
state from previous CRLs, and any such text would be in conflict with
the initialization process.

A CA that removes a serial number from a CRL before the certificate
expires is not PKIX-compliant.  But an RP that received such a
non-compliant "corrected" CRL would assume that the certificate is not
revoked.



> If we need real-time credential status, why are we using certificates?
> They were *specifically* created by the ITU nee CCITT as a means
> to provide *offline* -- that is, *no available connection to the
> recorder* -- reliable credentials.

Certificates can be used both offline and online, unlike mechanisms that
can be used only online (i.e. that require interaction with a server
before a user can be authenticated).  If an authentication server has
high latency or is not 5 9's reliable, certificate-based authentication
can proceed immediately whereas interactive authentication would stall
waiting for the server to respond or come back up.

> If you need real-time status, you cannot rely on certificates.

This is both a non-sequitur and patently false.

 =20

From Xuelei.Fan@Sun.COM  Tue Aug 10 18:42:54 2010
Return-Path: <Xuelei.Fan@Sun.COM>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 47EAA3A68C6 for <tls@core3.amsl.com>; Tue, 10 Aug 2010 18:42:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 QVbp0No7-vsH for <tls@core3.amsl.com>; Tue, 10 Aug 2010 18:42:53 -0700 (PDT)
Received: from gmp-eb-inf-2.sun.com (gmp-eb-inf-2.sun.com [192.18.6.24]) by core3.amsl.com (Postfix) with ESMTP id 053B93A68B6 for <tls@ietf.org>; Tue, 10 Aug 2010 18:42:52 -0700 (PDT)
Received: from fe-emea-09.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id o7B1hR28013326 for <tls@ietf.org>; Wed, 11 Aug 2010 01:43:27 GMT
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: text/plain; CHARSET=US-ASCII
Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0L6Y00100SO6RS00@fe-emea-09.sun.com> for tls@ietf.org; Wed, 11 Aug 2010 02:42:55 +0100 (BST)
Received: from [129.150.0.9] ([unknown] [129.150.0.9]) by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0L6Y002X3SRGG180@fe-emea-09.sun.com>;  Wed, 11 Aug 2010 02:42:55 +0100 (BST)
Date: Wed, 11 Aug 2010 09:42:45 +0800
From: Xuelei Fan <Xuelei.Fan@Sun.COM>
In-reply-to: <op.vg8aifvdqrq7tp@acorna.invalid.invalid>
Sender: Xuelei.Fan@Sun.COM
To: "Yngve N. Pettersen (Developer Opera Software ASA)" <yngve@opera.com>
Message-id: <4C620015.5070305@Sun.COM>
X-Enigmail-Version: 1.1.1
References: <201008101457.o7AEv9e7019723@fs4113.wdf.sap.corp> <op.vg8aifvdqrq7tp@acorna.invalid.invalid>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2
Cc: tls@ietf.org
Subject: Re: [TLS] What's the right version number in the PreMasterSecret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 01:42:54 -0000

On 8/10/2010 11:26 PM, Yngve N. Pettersen (Developer Opera Software ASA)
wrote:
> On Tue, 10 Aug 2010 16:57:09 +0200, Martin Rex <mrex@sap.com> wrote:
> 
>> Michael D'Errico wrote:
>>>
>>> Based on the scenarios below, it looks like Opera is doing the right
>>> thing during the renegotiation while IE 8 is not.
>>
>> Opera is sending the correct client_version in the RSA PreMaster Secret
>> in both handshakes (initial and renegotiation).  Handshakes in the
>> originial SSLv3 and TLS protocol were completely independent and
>> self-contained, so the back-reference of the client_version in
>> RSA premaster secret is ALWAYS to the ClientHello handshake message
>> of the current handshake.
>>
>> But both browsers should actually be sending their highest supported
>> protocol version as client_version on EVERY ClientHello handshake
>> message--independent of whether they propose session resumption--
>> and both browsers appear to flunk on this point.
> 
> I have not been able to locate the exact reason for our policy, but if
> we have an active session against a server we will use the negotiated
> protocol version in future handshakes.
Java (SunJSSE) use the same policy as Opera, use the negotiated protocol
version for renegotiation.

> 
> This policy is 11+ years old, and was probably implemented because there
> was some kind of problem with resuming sessions using a Hello protocol
> version different from the one we used when setting up the session.
> 
> It may be possible to remove this, along with all the version fallback
> code, when we enter strict Renego patch mode.
I'm a little worried about the interoperability. I'm not sure, but if
some vendors care about the protocol version in renegotiation
ClientHello, for example, comparing the ClientHello.client_version with
the cached negotiated protocol version.

Anyone know which TLS implementations do not use the negotiated protocol
version for abbreviated handshake?

Thanks,
Xuelei (Andrew) Fan

From pgut001@cs.auckland.ac.nz  Tue Aug 10 20:12:55 2010
Return-Path: <pgut001@cs.auckland.ac.nz>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 431BA3A6910; Tue, 10 Aug 2010 20:12:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.238
X-Spam-Level: 
X-Spam-Status: No, score=-3.238 tagged_above=-999 required=5 tests=[AWL=0.361,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 UroZA96v3cf1; Tue, 10 Aug 2010 20:12:53 -0700 (PDT)
Received: from mx2-int.auckland.ac.nz (mx2-int.auckland.ac.nz [130.216.12.41]) by core3.amsl.com (Postfix) with ESMTP id CFFC93A689E; Tue, 10 Aug 2010 20:12:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=pgut001@cs.auckland.ac.nz; q=dns/txt; s=uoa; t=1281496409; x=1313032409; h=from:to:subject:cc:in-reply-to:message-id:date; z=From:=20Peter=20Gutmann=20<pgut001@cs.auckland.ac.nz> |To:=20aerowolf@gmail.com,=20DPKemp@missi.ncsc.mil |Subject:=20Re:=20[TLS]=20[pkix]=20Previous=20attempt=20t o=20update=20OCSP|Cc:=20pkix@ietf.org,=20tls@ietf.org |In-Reply-To:=20<gcpa57emw0794q0kx3jezwJv4X.penango@mail. gmail.com>|Message-Id:=20<E1Oj1k8-0004zf-D9@wintermute02. cs.auckland.ac.nz>|Date:=20Wed,=2011=20Aug=202010=2015:12 :40=20+1200; bh=qG0Vjrrms5LDVezwxzYT6CXUJO5RQbpvajdGtTKgqSg=; b=d82adHpupoZxkg4kIayo5xFPq48RXA/Ep/P0ayPa+dSgd9HOVL3DairK jaFFtbqFhX3FYygsl25mB0ufIKRgIv//IlFnUgmfTUHjbhoqaAUTWlEpq hHWFZMG0kvWHh9sfdzmnfpW8p1jhyGdFD1tEe5gRNs5VQBokhzhxozKxO 0=;
X-IronPort-AV: E=Sophos;i="4.55,350,1278244800"; d="scan'208";a="20271788"
X-Ironport-HAT: UNIVERSITY - $RELAY-THROTTLE
X-Ironport-Source: 130.216.207.92 - Outgoing - Outgoing
Received: from wintermute02.cs.auckland.ac.nz ([130.216.207.92]) by mx2-int.auckland.ac.nz with ESMTP/TLS/AES256-SHA; 11 Aug 2010 15:12:40 +1200
Received: from pgut001 by wintermute02.cs.auckland.ac.nz with local (Exim 4.69) (envelope-from <pgut001@cs.auckland.ac.nz>) id 1Oj1k8-0004zf-D9; Wed, 11 Aug 2010 15:12:40 +1200
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: aerowolf@gmail.com, DPKemp@missi.ncsc.mil
In-Reply-To: <gcpa57emw0794q0kx3jezwJv4X.penango@mail.gmail.com>
Message-Id: <E1Oj1k8-0004zf-D9@wintermute02.cs.auckland.ac.nz>
Date: Wed, 11 Aug 2010 15:12:40 +1200
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] [pkix] Previous attempt to update OCSP
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 03:12:55 -0000

"Kyle Hamilton" <aerowolf@gmail.com> writes:

>DQoNCk9uIFR1ZSwgQXVnIDEwLCAyMDEwIGF0IDc6MDYgQU0sIEtlbXAsIERhdmlkIFAuIDxEUEtl
>bXBAbWlzc2kubmNzYy5taWw+IHdyb3RlOg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0K
>PiBGcm9tOiBUb21hcyBHdXN0YXZzc29uDQo+DQo+PiBPbiAwOC8xMC8yMDEwIDA4OjQ0IEFNLCBQ
>ZXRlciBHdXRtYW5uIHdyb3RlOg0KPj4+DQo+Pj4gT0NTUCBpc24ndCB0aGF0IHNpbXBsZSwgaXQn
>cyBhY3R1YWxseSBxdWl0ZSBjb21wbGljYXRlZCBmb3Igd2hhdCBpdA0KPiBkb2VzLiCgVGhlDQo+
>Pj4gcmVhc29uIGl0IGdldHMgdXNlZCBpcyBiZWNhdXNlIGl0J3Mgbm90IENSTHMuDQo+Pj4NCj4+

Interesting, I'd never considered the misrevocation issue.  Is this a real
problem though, or just (one of many) conceptual issues with periodic-
blacklist-based validity checks?

(Given that fact that revocation checking barely works anyway - I'm still
waiting for the Realtek malware cert to be regarded as revoked by software a
month after the CA declared it revoked - I'd say that it's not such a big
concern, but only because of the nonfunctionality of the revocation mechanism
as a whole).

>IHRoZSBDUkwgd2l0aCBrZXlDb21wcm9taXNlIGFzIHRoZSByZWFzb24sIHNvbWVvbmUgZG93bmxv
>YWRzIGl0LCB0aGUgZXJyb3IgaXMgY29ycmVjdGVkIChhbmQgdGhlIHNlcmlhbCBudW1iZXIgb2Yg
>dGhlIGluY29ycmVjdCBjZXJ0aWZpY2F0ZSByZW1vdmVkIGFuZCB0aGUgY29ycmVjdCBvbmUgYWRk

Drifting rather off topic here, but I think attribute certs are a lost cause,
and have been for years.  If you really want a PMI, use your X.509 cert to
sign some SAML, which is well-supported and gives you what you need (and far
more than an attribute cert ever can).

Peter.

From brian@briansmith.org  Tue Aug 10 23:02:11 2010
Return-Path: <brian@briansmith.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id DE5853A69EF for <tls@core3.amsl.com>; Tue, 10 Aug 2010 23:02:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.712
X-Spam-Level: 
X-Spam-Status: No, score=-1.712 tagged_above=-999 required=5 tests=[AWL=0.887,  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 YN817GiG2Uin for <tls@core3.amsl.com>; Tue, 10 Aug 2010 23:02:11 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id E21B43A68DE for <tls@ietf.org>; Tue, 10 Aug 2010 23:02:10 -0700 (PDT)
Received: from T60 (unknown [98.200.150.199]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 528D5509B4; Wed, 11 Aug 2010 02:02:40 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: "'Michael D'Errico'" <mike-list@pobox.com>
References: <001801cb38b6$2cfd1d20$86f75760$@briansmith.org> <4C619A90.1010403@pobox.com>
In-Reply-To: <4C619A90.1010403@pobox.com>
Date: Wed, 11 Aug 2010 00:56:18 -0500
Message-ID: <000f01cb391a$d0b755c0$72260140$@briansmith.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQJQhPCoMWvCkrPhmfXViGCyYPHC0gJ7zjAPAlG1kSM=
Content-Language: en-us
x-cr-hashedpuzzle: AQ7/ BPTs DXdx D0fO FMJO F0Kz HGZA HYLI K9IY LIHj OjDF O5Fk Q+l+ TRgd Tgrn WBIb; 2; bQBpAGsAZQAtAGwAaQBzAHQAQABwAG8AYgBvAHgALgBjAG8AbQA7AHQAbABzAEAAaQBlAHQAZgAuAG8AcgBnAA==; Sosha1_v1; 7; {3DF7FE65-055A-400C-9BC9-966EB0B00C80}; YgByAGkAYQBuAEAAYgByAGkAYQBuAHMAbQBpAHQAaAAuAG8AcgBnAA==; Wed, 11 Aug 2010 05:55:13 GMT; UgBFADoAIABbAFQATABTAF0AIABXAGgAZQBuAC8AdwBoAHkAIABpAHMAIAB0AGgAZQAgAFIAUwBBACAAcAByAGUAbQBhAHMAdABlAHIAIABzAGUAYwByAGUAdAAgAHYAZQByAHMAaQBvAG4AIAByAG8AbABsAGIAYQBjAGsAIABjAGgAZQBjAGsAIABuAGUAZQBkAGUAZAA/AA==
x-cr-puzzleid: {3DF7FE65-055A-400C-9BC9-966EB0B00C80}
Cc: tls@ietf.org
Subject: Re: [TLS] When/why is the RSA premaster secret version rollback check needed?
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 06:02:12 -0000

Michael D'Errico wrote:
> > What attack is thwarted by checking the version number in the
> > premaster secret that isn't thwarted by the Finished message hash &
HMAC?
> 
> I think it is a "belt and suspenders" approach to security, which is a
good thing.
> It probably isn't strictly necessary.  You probably realize that with
DH-based
> cipher suites, the premaster secret can not include a version; thus if the
version
> check was actually critical, then DH would be less secure than RSA.  I
haven't
> heard anybody claim that to be true.

I guess the RSA encrypted premaster secret version check (REPMSVC) does
provide a mechanism for protecting version rollbacks even in the event that
an enabled SSL/TLS version's finished hash is be ineffective. But, the
finished hash is required for cipher suite rollback prevention, secure
renegotiation, defense against the Bleichenbacher/Klima attacks, defense
against version rollback attacks for non-RSA key exchange methods, and
probably more. The REPMSVC doesn't offer any of these protections, so it
seems it is now useless. 

In certain common situations, the TLS 1.2 spec's suggested defense against
the Klima attack exacts a notable performance penalty. Skipping the version
check completely can result in a notable savings on *every* RSA handshake,
completely avoid the Klima attack, and apparently prevent interoperability
problems with IE8. It seems clear to me that the pros and cons of
permanently disabling the check outweigh the potential benefits. However, I
am very eager to hear arguments to the contrary, in the event I am
overlooking something. Again, feedback is greatly appreciated.

Thanks again,
Brian



From matt@mattmccutchen.net  Wed Aug 11 01:27:28 2010
Return-Path: <matt@mattmccutchen.net>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 948103A6A40; Wed, 11 Aug 2010 01:27:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.197
X-Spam-Level: 
X-Spam-Status: No, score=-2.197 tagged_above=-999 required=5 tests=[AWL=0.402,  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 DVXe93R8wkWs; Wed, 11 Aug 2010 01:27:26 -0700 (PDT)
Received: from homiemail-a1.g.dreamhost.com (caiajhbdcahe.dreamhost.com [208.97.132.74]) by core3.amsl.com (Postfix) with ESMTP id B62F73A6804; Wed, 11 Aug 2010 01:27:26 -0700 (PDT)
Received: from homiemail-a1.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a1.g.dreamhost.com (Postfix) with ESMTP id A06A134806E; Wed, 11 Aug 2010 01:28:02 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=mattmccutchen.net; h=subject:from :to:cc:in-reply-to:references:content-type:date:message-id :mime-version:content-transfer-encoding; q=dns; s= mattmccutchen.net; b=aUqjcauHFWxBvENHDdTn48wrOchqJiv3oNPVxEplixz iqilTZ7YNmyrORdr3VYb39CZXUbAc5tIqkbNOw6FNeeRf2lh8FYUCNiEcZemslVW tCI/YeEv94efH0eoFIHRJRcDbED0jAQj+kQQjqJY1gkfZJHp7mFD3cmXWBHt8O9k =
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=mattmccutchen.net; h= subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:content-transfer-encoding; s= mattmccutchen.net; bh=JydXINEFPviuSwMYSjEjy8OmfQ8=; b=McMpObf3+y jrR4uc92kWdU5YzvTa4DJJYKQCWdfnbmw9EX7OKenyz3I/k/XDy2r3aW1GzZIjKw lMP2Ol6WlWW2ERjtnLyzttIZOV2qptNDjZ7lCEf6N3cctLD83CWHWcKDdzUHKZo/ yeVSrztqceKl3o/US7RYzyXGF7UqC1fuc=
Received: from [10.10.6.3] (unknown [216.38.153.2]) (Authenticated sender: matt@mattmccutchen.net) by homiemail-a1.g.dreamhost.com (Postfix) with ESMTPA id 738A134806C; Wed, 11 Aug 2010 01:28:02 -0700 (PDT)
From: Matt McCutchen <matt@mattmccutchen.net>
To: Kyle Hamilton <aerowolf@gmail.com>
In-Reply-To: <gcpa57emw0794q0kx3jezwJv4X.penango@mail.gmail.com>
References: <4C573E09.1060700@nist.gov> <gcpa57emw0794q0kx3jezwJv4X.penango@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Date: Wed, 11 Aug 2010 01:28:01 -0700
Message-ID: <1281515281.16678.83.camel@mattlaptop2.local>
Mime-Version: 1.0
X-Mailer: Evolution 2.30.2 
Content-Transfer-Encoding: 7bit
Cc: pkix@ietf.org, tls@ietf.org
Subject: Re: [TLS] [pkix] Previous attempt to update OCSP
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 08:27:28 -0000

On Tue, 2010-08-10 at 14:45 -0700, Kyle Hamilton wrote:
> PKIX fails to meet many (and, it could be argued, even 'most') of its
> stated goals.  More "patchy protocols" have grown around PKIX than
> anything else, including HTTP (which has the 'cookie protocol' to try
> to make up for its lack of pure session support).

Cookies do some things that TLS sessions don't: they can persist for
years and be scoped to domains.  They also got to market first.  I have
a hard time blaming PKIX for not winning webmasters away from them.

> Also, PKIX's lack of prescribing minimum standards for verification
> has led to a problem where neither Penango (an in-browser S/MIME
> client with certificate verification capability) nor Qualys's SSLLabs
> Server Certificate Survey can determine from a technical standpoint
> that anything more than a domain or an email address has been
> verified.  [...]

Is it really PKIX's job as a technical working group to define OV?

> Just because I know who CA A says EE B is doesn't mean that I
> automatically grant access to B, and I don't necessarily trust A's
> assertion as to B's identity anyway.  That decision is taken out of my
> hands by the people who make browser software, and add trust by
> default to organizations that I have no knowledge of.

<tangent>
This is unfair to the browser makers.  I'll refer to Mozilla since I'm
most familiar with them.  Given current technology, they are doing the
best they can, trying to admit CAs according to a consistent set of
criteria.  They must assess the costs and benefits of recognizing more
CAs differently than you, given their broad user population.  As always,
you're welcome to remove some or all CAs.
</tangent>

> There is no reason for this, other than that PKIX fails to address the
> real problems underlying the Internet's lack-of-identity-authenticity.

> There *is* no Universal Font of Trust.

I would welcome work to design and implement system that doesn't require
a set of universally trusted public CAs.  SPKI looks like the right
approach.  In the meantime, there are benefits to using the public CA
system for all but one's most sensitive communications.

> It failed to create mutual-authentication systems that were widely
> deployed, which led to the prefix-injection attack against TLS on the
> public Internet to be exploited.

That's unfair.  TLS with server-only authentication has some significant
uses, including anonymous integrity-protected retrieval of information.
The prefix-injection attack was the result of an oversight in the design
of TLS, which was corrected in a straightforward way.

> (When -- if ever -- is the PKIX WG going to realize that the spec it
> has created has no place on the open Internet, and only has
> appropriate scope to be deployed in a particular administrative domain
> -- and thus is outside of the scope of Internet standards
> organizations?

Nonsense.  With PKIs at the organizational level, standardizing the
technology still means that each organization doesn't have to reinvent
it for themselves (possibly insecurely) and that a user can use the same
client software to interact with many organizations and have it just
work.  For that matter, HTTP is only practiced by pairs of machines at a
time.

-- 
Matt


From mrex@sap.com  Wed Aug 11 01:38:22 2010
Return-Path: <mrex@sap.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 643C03A6A47 for <tls@core3.amsl.com>; Wed, 11 Aug 2010 01:38:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.79
X-Spam-Level: 
X-Spam-Status: No, score=-9.79 tagged_above=-999 required=5 tests=[AWL=0.459,  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 vYV25rMQjqfk for <tls@core3.amsl.com>; Wed, 11 Aug 2010 01:38:21 -0700 (PDT)
Received: from smtpde02.sap-ag.de (smtpde02.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id 163E33A6A3F for <tls@ietf.org>; Wed, 11 Aug 2010 01:38:20 -0700 (PDT)
Received: from mail.sap.corp by smtpde02.sap-ag.de (26) with ESMTP id o7B8cor2010988 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 11 Aug 2010 10:38:55 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201008110838.o7B8cnV5020569@fs4113.wdf.sap.corp>
To: Xuelei.Fan@Sun.COM (Xuelei Fan)
Date: Wed, 11 Aug 2010 10:38:49 +0200 (MEST)
In-Reply-To: <4C620015.5070305@Sun.COM> from "Xuelei Fan" at Aug 11, 10 09:42:45 am
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal05
X-SAP: out
Cc: tls@ietf.org
Subject: Re: [TLS] What's the right version number in the PreMasterSecret
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 08:38:22 -0000

Xuelei Fan wrote:
> 
> Yngve N. Pettersen (Developer Opera Software ASA) wrote:
> > Martin Rex <mrex@sap.com> wrote:
> > >
> > > But both browsers should actually be sending their highest supported
> > > protocol version as client_version on EVERY ClientHello handshake
> > > message--independent of whether they propose session resumption--
> > > and both browsers appear to flunk on this point.
> > 
> > I have not been able to locate the exact reason for our policy, but if
> > we have an active session against a server we will use the negotiated
> > protocol version in future handshakes.
>
> Java (SunJSSE) use the same policy as Opera, use the negotiated protocol
> version for renegotiation.

Technically, this should be just fine.

> 
> > 
> > This policy is 11+ years old, and was probably implemented because there
> > was some kind of problem with resuming sessions using a Hello protocol
> > version different from the one we used when setting up the session.
> > 
> > It may be possible to remove this, along with all the version fallback
> > code, when we enter strict Renego patch mode.
>
> I'm a little worried about the interoperability. I'm not sure, but if
> some vendors care about the protocol version in renegotiation
> ClientHello, for example, comparing the ClientHello.client_version with
> the cached negotiated protocol version.

You are probably right, sending the protocol version from the
session that is proposed for resume is the more conservative approach,
with a lesser likelihood to tickle bugs.


IF the server agrees to session resumption, then the session MUST be
resumed with the original protocol version.  It would be bug in the
server if it would resume the session with a different protocol
version, and it would be a bug in the client to agree to resuming
the session with a different protocol version.

AFAIK, the architecture behind TLS session caching is that it is
resumed "as is" from the session cache, with all characteristics as
established in the full handshake that created this session
that includes protocol version, cipher suite, compression alg,
active TLS extensions.

Doing otherwise might have unexpected side effects.  A TLS session
resumption omits the exchange of certificate messages and therefore
might omit some checks that were (for whatever reason) tied into
the certificate path validation.


> 
> Anyone know which TLS implementations do not use the negotiated protocol
> version for abbreviated handshake?

Anyone know which TLS client would agree to resuming with a different
protocol version if a buggy server would do this based on the
ClientHello.client_version differing from the protocol version of
the cached session that is proposed for resumption?

-Martin

From matt@mattmccutchen.net  Wed Aug 11 01:40:16 2010
Return-Path: <matt@mattmccutchen.net>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 07CC53A680E for <tls@core3.amsl.com>; Wed, 11 Aug 2010 01:40:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.297
X-Spam-Level: 
X-Spam-Status: No, score=-2.297 tagged_above=-999 required=5 tests=[AWL=0.302,  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 OsqAcXuvhwwL for <tls@core3.amsl.com>; Wed, 11 Aug 2010 01:40:14 -0700 (PDT)
Received: from homiemail-a10.g.dreamhost.com (caiajhbdcbbj.dreamhost.com [208.97.132.119]) by core3.amsl.com (Postfix) with ESMTP id A36A03A67CF for <tls@ietf.org>; Wed, 11 Aug 2010 01:40:14 -0700 (PDT)
Received: from homiemail-a10.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a10.g.dreamhost.com (Postfix) with ESMTP id A03B428005E; Wed, 11 Aug 2010 01:40:50 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=mattmccutchen.net; h=subject:from :to:cc:in-reply-to:references:content-type:date:message-id :mime-version:content-transfer-encoding; q=dns; s= mattmccutchen.net; b=ctuQTePp63HdU45aqExkcGkZs3LuEB06XdTEvP5Yrmv BjABevsisjZaKfNGgSN54ApJvqR/odkLyr9kAO+Szu6//9TYH/x8S6+hy3G986DZ +fLDdIH6GqO83ZkyfA7aAV/tLhNrHW3USmOKETddf13AqS5WwGtNId/4uBPP5zw8 =
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=mattmccutchen.net; h= subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:content-transfer-encoding; s= mattmccutchen.net; bh=WzT7ky2yjewwjtowHHQ8/GNdL/k=; b=cXKzPtCPww hu3RHtkuLhlvesqPxnH6tFXQDxQlNmku8LERGUhDmqmmsNds3nvwoJbg0vhGEBod X1xaVyuQsvaA+EqpCUioI8mO4pUSO9BbFN5wBPKo8kcEr0XohjRnn4+GgBtAhMJk u4vhcxI2v/mH1PspILBIFHIUa8TGAw2m4=
Received: from [10.10.6.3] (unknown [216.38.153.2]) (Authenticated sender: matt@mattmccutchen.net) by homiemail-a10.g.dreamhost.com (Postfix) with ESMTPA id 83C6728005C;  Wed, 11 Aug 2010 01:40:50 -0700 (PDT)
From: Matt McCutchen <matt@mattmccutchen.net>
To: Marsh Ray <marsh@extendedsubset.com>
In-Reply-To: <4C619C03.3060809@extendedsubset.com>
References: <4C619C03.3060809@extendedsubset.com>
Content-Type: text/plain; charset="UTF-8"
Date: Wed, 11 Aug 2010 01:40:49 -0700
Message-ID: <1281516049.16678.89.camel@mattlaptop2.local>
Mime-Version: 1.0
X-Mailer: Evolution 2.30.2 
Content-Transfer-Encoding: 7bit
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Way to go everybody! TLS FTW!
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 08:40:16 -0000

On Tue, 2010-08-10 at 13:35 -0500, Marsh Ray wrote: 
> Today, this "Patch Tuesday", Microsoft releases KB980436 which adds 
> support for RFC 5746 the Renegotiation Indication Extension
> http://www.microsoft.com/technet/security/bulletin/ms10-049.mspx
> This is a major accomplishment, Microsoft clearly has as many affected 
> products and systems as anybody. Although they may be bringing up the 
> rear among the vendors, the rear has clearly been brought up.

No, alas, Debian still has OpenSSL with RFC 5746 available only in
testing:

http://packages.debian.org/search?keywords=openssl&searchon=sourcenames&exact=1&suite=all&section=all

Does anyone know what the hold-up is?  I installed the individual
package on my Debian-based web server in May and it has worked fine
since then, but for example, Savannah isn't willing to do that
(https://savannah.gnu.org/support/?107417).

-- 
Matt



From marsh@extendedsubset.com  Wed Aug 11 01:53:24 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id BE9163A6A3C for <tls@core3.amsl.com>; Wed, 11 Aug 2010 01:53:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.979
X-Spam-Level: 
X-Spam-Status: No, score=-1.979 tagged_above=-999 required=5 tests=[AWL=0.620,  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 bT27vYbZxGwC for <tls@core3.amsl.com>; Wed, 11 Aug 2010 01:53:23 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id E560128C0E5 for <tls@ietf.org>; Wed, 11 Aug 2010 01:53:22 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1Oj74Q-0007tK-Nu; Wed, 11 Aug 2010 08:53:58 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id A825B6049; Wed, 11 Aug 2010 08:53:56 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1/SP8VXjYxMq3PnLyjDfM/fFkW4LGDTOAE=
Message-ID: <4C626524.5010600@extendedsubset.com>
Date: Wed, 11 Aug 2010 03:53:56 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: Matt McCutchen <matt@mattmccutchen.net>
References: <4C619C03.3060809@extendedsubset.com> <1281516049.16678.89.camel@mattlaptop2.local>
In-Reply-To: <1281516049.16678.89.camel@mattlaptop2.local>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Way to go everybody! TLS FTW!
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 08:53:24 -0000

On 08/11/2010 03:40 AM, Matt McCutchen wrote:
> On Tue, 2010-08-10 at 13:35 -0500, Marsh Ray wrote:
>> Today, this "Patch Tuesday", Microsoft releases KB980436 which adds
>> support for RFC 5746 the Renegotiation Indication Extension
>
> No, alas, Debian still has OpenSSL with RFC 5746 available only in
> testing:

Something tells me that will change pretty quickly now ;-)

- Marsh

From hotz@jpl.nasa.gov  Thu Aug 12 10:53:36 2010
Return-Path: <hotz@jpl.nasa.gov>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B493328C113; Thu, 12 Aug 2010 10:53:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.705
X-Spam-Level: 
X-Spam-Status: No, score=-5.705 tagged_above=-999 required=5 tests=[AWL=-0.595, BAYES_05=-1.11, RCVD_IN_DNSWL_MED=-4]
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 L0ACszQ9zz2G; Thu, 12 Aug 2010 10:53:35 -0700 (PDT)
Received: from mail.jpl.nasa.gov (smtp.jpl.nasa.gov [128.149.139.109]) by core3.amsl.com (Postfix) with ESMTP id D2F3828C121; Thu, 12 Aug 2010 10:53:35 -0700 (PDT)
Received: from laphotz.jpl.nasa.gov (laphotz.jpl.nasa.gov [128.149.133.44]) (authenticated (0 bits)) by smtp.jpl.nasa.gov (Switch-3.4.3/Switch-3.4.3) with ESMTP id o7CHsBUq030720 (using TLSv1/SSLv3 with cipher AES128-SHA (128 bits) verified NO); Thu, 12 Aug 2010 10:54:11 -0700
Mime-Version: 1.0 (Apple Message framework v1081)
Content-Type: text/plain; charset=us-ascii
From: "Henry B. Hotz" <hotz@jpl.nasa.gov>
In-Reply-To: <1281515281.16678.83.camel@mattlaptop2.local>
Date: Thu, 12 Aug 2010 10:54:10 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <61A6096C-1FD4-4534-B5A0-7559048FAD0E@jpl.nasa.gov>
References: <4C573E09.1060700@nist.gov> <gcpa57emw0794q0kx3jezwJv4X.penango@mail.gmail.com> <1281515281.16678.83.camel@mattlaptop2.local>
To: Matt McCutchen <matt@mattmccutchen.net>
X-Mailer: Apple Mail (2.1081)
X-Source-IP: laphotz.jpl.nasa.gov [128.149.133.44]
X-Source-Sender: hotz@jpl.nasa.gov
X-AUTH: Authorized
X-Mailman-Approved-At: Thu, 12 Aug 2010 21:59:07 -0700
Cc: "pkix@ietf.org" <pkix@ietf.org>, "tls@ietf.org" <tls@ietf.org>, Kyle Hamilton <aerowolf@gmail.com>
Subject: Re: [TLS] [pkix] (OT) Previous attempt to update OCSP
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 12 Aug 2010 17:53:36 -0000

On Aug 11, 2010, at 1:28 AM, Matt McCutchen wrote:

>> (When -- if ever -- is the PKIX WG going to realize that the spec it
>> has created has no place on the open Internet, and only has
>> appropriate scope to be deployed in a particular administrative =
domain
>> -- and thus is outside of the scope of Internet standards
>> organizations?
>=20
> Nonsense.  With PKIs at the organizational level, standardizing the
> technology still means that each organization doesn't have to reinvent
> it for themselves (possibly insecurely) and that a user can use the =
same
> client software to interact with many organizations and have it just
> work.  For that matter, HTTP is only practiced by pairs of machines at =
a
> time.

Since (unlike most X.509) most Kerberos service is deployed at the =
organizational level, can I interpret this as an argument in favor of =
KX509?  ;-)

------------------------------------------------------
The opinions expressed in this message are mine,
not those of Caltech, JPL, NASA, or the US Government.
Henry.B.Hotz@jpl.nasa.gov, or hbhotz@oxy.edu




From matt@mattmccutchen.net  Sat Aug 14 23:31:03 2010
Return-Path: <matt@mattmccutchen.net>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C6FB93A6898; Sat, 14 Aug 2010 23:31:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.398
X-Spam-Level: 
X-Spam-Status: No, score=-2.398 tagged_above=-999 required=5 tests=[AWL=0.201,  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 n9TdIdBBmbvD; Sat, 14 Aug 2010 23:31:02 -0700 (PDT)
Received: from homiemail-a62.g.dreamhost.com (mx1.spunky.mail.dreamhost.com [208.97.132.47]) by core3.amsl.com (Postfix) with ESMTP id AD2783A688A; Sat, 14 Aug 2010 23:31:02 -0700 (PDT)
Received: from homiemail-a62.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a62.g.dreamhost.com (Postfix) with ESMTP id D424863406F; Sat, 14 Aug 2010 23:31:37 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=mattmccutchen.net; h=subject:from :to:in-reply-to:references:content-type:date:message-id :mime-version:content-transfer-encoding; q=dns; s= mattmccutchen.net; b=Anc30K/Px9cpq2b/4x1aKP5LIgEfpAmLO0/GPOtdfWi qyb2a+k4gF6Btt5scI3cYQPeZ/v6PY3mLNreyKdWXu1wWMUHQzaoO5jTxQ+z2fND fTRd39somc3x/Jg3yY5c4dkZ/VDDIiMeEDtJN9KKAXiXSOolzvLbEd3nj7VEbKSk =
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=mattmccutchen.net; h= subject:from:to:in-reply-to:references:content-type:date :message-id:mime-version:content-transfer-encoding; s= mattmccutchen.net; bh=RNhCFYUwSTbj6ZZGhUwRLERsuDU=; b=S0ZDiFyhXf 9Uo10Db/TJMdrlyuxnmzphPZmFAPKfzsx5eYzUW+XO/Gm6H+QwIlcAe9YA4kJF8T OYAn0uGvkLpEkCZzY1n9hnANrdglygOgUaFem2cYix+19gXCISuLiiRLZtHIJGfb /+lFPxAIFIKvL4tPU2V/9iZjuUDEszSXg=
Received: from [10.10.6.3] (unknown [216.38.153.2]) (Authenticated sender: matt@mattmccutchen.net) by homiemail-a62.g.dreamhost.com (Postfix) with ESMTPA id 86742634064;  Sat, 14 Aug 2010 23:31:35 -0700 (PDT)
From: Matt McCutchen <matt@mattmccutchen.net>
To: pkix@ietf.org, tls@ietf.org
In-Reply-To: <op.vgxmfsfrqrq7tp@acorna.invalid.invalid>
References: <201008042039.o74Kd8TP014387@fs4113.wdf.sap.corp> <op.vgxmfsfrqrq7tp@acorna.invalid.invalid>
Content-Type: text/plain; charset="UTF-8"
Date: Sat, 14 Aug 2010 23:31:34 -0700
Message-ID: <1281853894.2621.131.camel@mattlaptop2.local>
Mime-Version: 1.0
X-Mailer: Evolution 2.30.2 
Content-Transfer-Encoding: 7bit
Subject: Re: [TLS] [pkix]  Accessing arbitrary AIA URLs
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 15 Aug 2010 06:31:03 -0000

On Wed, 2010-08-04 at 23:10 +0200, Yngve N. Pettersen (Developer Opera
Software ASA) wrote:
> On Wed, 04 Aug 2010 22:39:08 +0200, Martin Rex <mrex@sap.com> wrote:
> > That crafted AIA-request could be accessing resources that are not
> > accessible to the attacker himself with a protocol of the attackers  
> > choice
> > and result in reaction that help the attacker in carrying out a more
> > complex attack (like opening ports on a NAT-style firewall).
> 
> Opera have policies in place that prevent many kinds of cross  
> network-category attacks, including that one.

Mozilla is also working on preventing attacks on internal networks:

https://bugzilla.mozilla.org/show_bug.cgi?id=354493

But internal networks are not necessarily the only networks to which the
victim may have access that the attacker doesn't.

-- 
Matt


From ietf@adambarth.com  Mon Aug 16 10:07:39 2010
Return-Path: <ietf@adambarth.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id BC04C3A6901 for <tls@core3.amsl.com>; Mon, 16 Aug 2010 10:07:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
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 IUlLeS98ZbQd for <tls@core3.amsl.com>; Mon, 16 Aug 2010 10:07:38 -0700 (PDT)
Received: from mail-ew0-f44.google.com (mail-ew0-f44.google.com [209.85.215.44]) by core3.amsl.com (Postfix) with ESMTP id 9FD023A6846 for <tls@ietf.org>; Mon, 16 Aug 2010 10:07:38 -0700 (PDT)
Received: by ewy22 with SMTP id 22so2747381ewy.31 for <tls@ietf.org>; Mon, 16 Aug 2010 10:08:14 -0700 (PDT)
Received: by 10.216.50.73 with SMTP id y51mr4574028web.85.1281978493618; Mon, 16 Aug 2010 10:08:13 -0700 (PDT)
Received: from mail-pv0-f172.google.com (mail-pv0-f172.google.com [74.125.83.172]) by mx.google.com with ESMTPS id v44sm3436646weq.28.2010.08.16.10.08.11 (version=SSLv3 cipher=RC4-MD5); Mon, 16 Aug 2010 10:08:12 -0700 (PDT)
Received: by pvg7 with SMTP id 7so2298062pvg.31 for <tls@ietf.org>; Mon, 16 Aug 2010 10:08:10 -0700 (PDT)
Received: by 10.142.86.6 with SMTP id j6mr4841115wfb.55.1281978490254; Mon, 16 Aug 2010 10:08:10 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.220.161.139 with HTTP; Mon, 16 Aug 2010 10:07:49 -0700 (PDT)
From: Adam Barth <ietf@adambarth.com>
Date: Mon, 16 Aug 2010 10:07:49 -0700
Message-ID: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>
To: tls@ietf.org
Content-Type: text/plain; charset=ISO-8859-1
Subject: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 17:07:39 -0000

TLS experts,

As some of you may be aware, the HyBi working group is considering use
a TLS extension has part of the WebSockets protocol [1].  I believe
the extension has been mentioned on this list before, but as there is
now renewed interested in its use, now might be a good time for this
working group to look over the extension and provide feedback.

The extension, called Next Protocol Negotiation, adds information to
the TLS handshake to let the client and server agree on which protocol
they will speak over the encrypted tunnel once the handshake
completes.  In some sense, this extension is to TLS what ports are to
TCP: it allows multiplexing a number of protocols over a single
listening endpoint (in the case of TLS, a TCP port, in the case of
TCP, an IP address).

The HyBi working group is interested in Next Protocol Negotiation
because it has two properties:

1) It allows servers to multiplex HTTPS and WebSockets over the same
listening port (typically 443).
2) After completing the TLS handshake (with the extension) both
parties are guaranteed that the other party intends to speak
WebSockets over the encrypted tunnel.  (This property is important to
avoid cross-protocol vulnerabilities, which I can elaborate on if
you're not familiar with that class of vulnerability.)

The current Internet-Draft is located here:

http://tools.ietf.org/html/draft-agl-tls-nextprotoneg

I look forward to receiving your feedback.

Kind regards,
Adam

[1] http://trac.tools.ietf.org/wg/hybi/trac/ticket/14

From ekr@rtfm.com  Mon Aug 16 10:18:16 2010
Return-Path: <ekr@rtfm.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D5BF73A6889 for <tls@core3.amsl.com>; Mon, 16 Aug 2010 10:18:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.091
X-Spam-Level: 
X-Spam-Status: No, score=-101.091 tagged_above=-999 required=5 tests=[AWL=0.884, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=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 LfxAsZEiQPdS for <tls@core3.amsl.com>; Mon, 16 Aug 2010 10:18:15 -0700 (PDT)
Received: from mail-bw0-f44.google.com (mail-bw0-f44.google.com [209.85.214.44]) by core3.amsl.com (Postfix) with ESMTP id AA3743A6869 for <tls@ietf.org>; Mon, 16 Aug 2010 10:18:14 -0700 (PDT)
Received: by bwz9 with SMTP id 9so2072632bwz.31 for <tls@ietf.org>; Mon, 16 Aug 2010 10:18:49 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.204.76.69 with SMTP id b5mr3568307bkk.79.1281979129185; Mon, 16 Aug 2010 10:18:49 -0700 (PDT)
Received: by 10.204.7.70 with HTTP; Mon, 16 Aug 2010 10:18:49 -0700 (PDT)
In-Reply-To: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>
Date: Mon, 16 Aug 2010 10:18:49 -0700
Message-ID: <AANLkTinpTAvT=btYzc=eufXgGDQQv=K8_8FNOG5y+3aJ@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
To: Adam Barth <ietf@adambarth.com>
Content-Type: multipart/alternative; boundary=0016364990879ac4f5048df406ac
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 17:18:17 -0000

--0016364990879ac4f5048df406ac
Content-Type: text/plain; charset=ISO-8859-1

[Speaking as chair; I'll have some technical comments later.]

The current draft of NGN (draft-agl-tls-nextprotoneg-00) defines two
new code points (Section 5):

- A new TLS extension type.
- A new TLS handshake type.

The TLS standard (RFC 5246) defines the rules for the assignment of code
points in these
ranges. Extension types may be defined by "IETF Consensus" (this requires an
IETF LC).
Handshake types must be defined by "Standards Action" (this means a
standards
track RFC). This means that as a practical matter NGN as currently
constituted will
need to go through the TLS WG in order to reserve the code point through the
IETF
process. (To state the obvious, vendors can obviously grab a code point and
say
"that's NPN", but I'm assuming the intent is to actually follow the IETF
standards process
here.)

The status of NPN is that a draft exists, but there hasn't been a huge
amount of discussion
on the list, it has never been presented at a meeting, isn't a WG item, and
the chairs
have never been asked to take it on as such.

-Ekr

On Mon, Aug 16, 2010 at 10:07 AM, Adam Barth <ietf@adambarth.com> wrote:

> TLS experts,
>
> As some of you may be aware, the HyBi working group is considering use
> a TLS extension has part of the WebSockets protocol [1].  I believe
> the extension has been mentioned on this list before, but as there is
> now renewed interested in its use, now might be a good time for this
> working group to look over the extension and provide feedback.
>
> The extension, called Next Protocol Negotiation, adds information to
> the TLS handshake to let the client and server agree on which protocol
> they will speak over the encrypted tunnel once the handshake
> completes.  In some sense, this extension is to TLS what ports are to
> TCP: it allows multiplexing a number of protocols over a single
> listening endpoint (in the case of TLS, a TCP port, in the case of
> TCP, an IP address).
>
> The HyBi working group is interested in Next Protocol Negotiation
> because it has two properties:
>
> 1) It allows servers to multiplex HTTPS and WebSockets over the same
> listening port (typically 443).
> 2) After completing the TLS handshake (with the extension) both
> parties are guaranteed that the other party intends to speak
> WebSockets over the encrypted tunnel.  (This property is important to
> avoid cross-protocol vulnerabilities, which I can elaborate on if
> you're not familiar with that class of vulnerability.)
>
> The current Internet-Draft is located here:
>
> http://tools.ietf.org/html/draft-agl-tls-nextprotoneg
>
> I look forward to receiving your feedback.
>
> Kind regards,
> Adam
>
> [1] http://trac.tools.ietf.org/wg/hybi/trac/ticket/14
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>

--0016364990879ac4f5048df406ac
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

[Speaking as chair; I&#39;ll have some technical comments later.]<div><br><=
/div><div><span class=3D"Apple-style-span" style=3D"font-family: arial, san=
s-serif; font-size: 13px; border-collapse: collapse; "><div>The current dra=
ft of NGN (draft-agl-tls-nextprotoneg-00) defines two</div>
<div>new code points (Section 5):</div><div><br></div><div>- A new TLS exte=
nsion type.</div><div>- A new TLS handshake type.</div><div><br></div><div>=
The TLS standard (RFC 5246) defines the rules for the assignment of code po=
ints in these</div>
<div>ranges. Extension types may be defined by &quot;IETF Consensus&quot; (=
this requires an IETF LC).</div><div>Handshake types must be defined by &qu=
ot;Standards Action&quot; (this means a standards</div><div>track RFC). Thi=
s means that as a practical matter NGN as currently constituted will</div>
<div>need to go through the TLS WG in order to reserve the code point throu=
gh the IETF</div><div>process. (To state the obvious, vendors can obviously=
 grab a code point and say</div><div>&quot;that&#39;s NPN&quot;, but I&#39;=
m assuming the intent is to actually follow the IETF standards process</div=
>
<div>here.)</div><div><br></div><div>The status of NPN is that a draft exis=
ts, but there hasn&#39;t been a huge amount of discussion</div><div>on the =
list, it has never been presented at a meeting, isn&#39;t a WG item, and th=
e chairs</div>
<div>have never been asked to take it on as such.</div><div><br></div><div>=
-Ekr</div></span><br><div class=3D"gmail_quote">On Mon, Aug 16, 2010 at 10:=
07 AM, Adam Barth <span dir=3D"ltr">&lt;<a href=3D"mailto:ietf@adambarth.co=
m">ietf@adambarth.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;">TLS experts,<br>
<br>
As some of you may be aware, the HyBi working group is considering use<br>
a TLS extension has part of the WebSockets protocol [1]. =A0I believe<br>
the extension has been mentioned on this list before, but as there is<br>
now renewed interested in its use, now might be a good time for this<br>
working group to look over the extension and provide feedback.<br>
<br>
The extension, called Next Protocol Negotiation, adds information to<br>
the TLS handshake to let the client and server agree on which protocol<br>
they will speak over the encrypted tunnel once the handshake<br>
completes. =A0In some sense, this extension is to TLS what ports are to<br>
TCP: it allows multiplexing a number of protocols over a single<br>
listening endpoint (in the case of TLS, a TCP port, in the case of<br>
TCP, an IP address).<br>
<br>
The HyBi working group is interested in Next Protocol Negotiation<br>
because it has two properties:<br>
<br>
1) It allows servers to multiplex HTTPS and WebSockets over the same<br>
listening port (typically 443).<br>
2) After completing the TLS handshake (with the extension) both<br>
parties are guaranteed that the other party intends to speak<br>
WebSockets over the encrypted tunnel. =A0(This property is important to<br>
avoid cross-protocol vulnerabilities, which I can elaborate on if<br>
you&#39;re not familiar with that class of vulnerability.)<br>
<br>
The current Internet-Draft is located here:<br>
<br>
<a href=3D"http://tools.ietf.org/html/draft-agl-tls-nextprotoneg" target=3D=
"_blank">http://tools.ietf.org/html/draft-agl-tls-nextprotoneg</a><br>
<br>
I look forward to receiving your feedback.<br>
<br>
Kind regards,<br>
Adam<br>
<br>
[1] <a href=3D"http://trac.tools.ietf.org/wg/hybi/trac/ticket/14" target=3D=
"_blank">http://trac.tools.ietf.org/wg/hybi/trac/ticket/14</a><br>
_______________________________________________<br>
TLS mailing list<br>
<a href=3D"mailto:TLS@ietf.org">TLS@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/tls" target=3D"_blank">htt=
ps://www.ietf.org/mailman/listinfo/tls</a><br>
</blockquote></div><br></div>

--0016364990879ac4f5048df406ac--

From agl@google.com  Mon Aug 16 10:33:58 2010
Return-Path: <agl@google.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 7CB2F3A69FF for <tls@core3.amsl.com>; Mon, 16 Aug 2010 10:33:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.677
X-Spam-Level: 
X-Spam-Status: No, score=-104.677 tagged_above=-999 required=5 tests=[AWL=1.300, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_MED=-4, 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 ZCIRV+2dldUQ for <tls@core3.amsl.com>; Mon, 16 Aug 2010 10:33:56 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id B64B23A69FE for <tls@ietf.org>; Mon, 16 Aug 2010 10:33:55 -0700 (PDT)
Received: from wpaz9.hot.corp.google.com (wpaz9.hot.corp.google.com [172.24.198.73]) by smtp-out.google.com with ESMTP id o7GHYVCv007024 for <tls@ietf.org>; Mon, 16 Aug 2010 10:34:31 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1281980071; bh=hrBWEdUyqFHRokYEI1YnOr8TgLY=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=ktclyvSsM1oATTfgCXps/fjMGScBXOc0O//qHLc5FlV4dXkWX1s4vpPuHII6Zunzo 8hLfyCft/XMB/6WagDlXw==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=YDX4itp5DGRzW62nzWMy/S5lVuOd7vFrXrHwZphqVDfuCMPAmQ3Rt+7SEujRPR6hk yWy1GE3VUNxhCTxLxSing==
Received: from iwn6 (iwn6.prod.google.com [10.241.68.70]) by wpaz9.hot.corp.google.com with ESMTP id o7GHYUPK013143 for <tls@ietf.org>; Mon, 16 Aug 2010 10:34:30 -0700
Received: by iwn6 with SMTP id 6so1938244iwn.40 for <tls@ietf.org>; Mon, 16 Aug 2010 10:34:30 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.77.155 with SMTP id g27mr5804645ibk.195.1281980070230; Mon, 16 Aug 2010 10:34:30 -0700 (PDT)
Received: by 10.231.142.32 with HTTP; Mon, 16 Aug 2010 10:34:30 -0700 (PDT)
In-Reply-To: <AANLkTinpTAvT=btYzc=eufXgGDQQv=K8_8FNOG5y+3aJ@mail.gmail.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <AANLkTinpTAvT=btYzc=eufXgGDQQv=K8_8FNOG5y+3aJ@mail.gmail.com>
Date: Mon, 16 Aug 2010 13:34:30 -0400
Message-ID: <AANLkTinNH1i7uJ5qrHi4OeuHVEC1=aGOrnb1mq0F0Wsb@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: Eric Rescorla <ekr@rtfm.com>
Content-Type: text/plain; charset=UTF-8
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 17:33:58 -0000

On Mon, Aug 16, 2010 at 1:18 PM, Eric Rescorla <ekr@rtfm.com> wrote:
> The status of NPN is that a draft exists, but there hasn't been a huge
> amount of discussion
> on the list, it has never been presented at a meeting, isn't a WG item, and
> the chairs
> have never been asked to take it on as such.

Previously, I didn't want to push the standards process forward before
we had interoperable implementions and some real world testing. Since
the first posting of the NPN draft we now have NSS support[1] (out of
tree) and OpenSSL support (in their CVS). Both have been heavily
tested.

With the added interest of WebSockets, I would now like to request
that the chairs consider this draft as a possible WG item.


[1] http://src.chromium.org/viewvc/chrome/trunk/src/net/third_party/nss/patches/nextproto.patch?view=markup

AGL

From mike-list@pobox.com  Mon Aug 16 10:42:38 2010
Return-Path: <mike-list@pobox.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E62113A686B for <tls@core3.amsl.com>; Mon, 16 Aug 2010 10:42:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000,  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 OzbdM4P+MlMv for <tls@core3.amsl.com>; Mon, 16 Aug 2010 10:42:37 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 960FD3A659C for <tls@ietf.org>; Mon, 16 Aug 2010 10:42:37 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id EC317CE691; Mon, 16 Aug 2010 13:43:12 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=flHBMkfi1qCj 5mnOyf00cdf9cZw=; b=vyvXODgWEr+lusqhatU1kKgNBgh4qKhrApf131TKwCgK SymJPf6ahc3YqU0tHUoaXfJXRO1pPsH1B1Ok0jF3Iefb1AXk2oTcQP13PKrYvX3j 6AqbuAN0fRGNe90NSr8zkkChFUSclQSGeP9jTe0s8WdiZzmkkf1wv4XP5hGYSmY=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=g7ki8u R3Y26VU10LQni2Om7DFylkNjVhhN+Ux34IVxLOJfrQv+5/hiuTn5mwyP3QtV2Q4h hdOeFPfqTdI4VXtQBuAxXS1R4CNhtVaFcF/7lE9an1+HT6lleSC2ICEGRZk7Xn2Z za+SqgDFqL68tGVA6HiEQq/2sXxPIb73I/ujg=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 96927CE690; Mon, 16 Aug 2010 13:43:11 -0400 (EDT)
Received: from iMac.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id C062CCE68D; Mon, 16 Aug 2010 13:43:09 -0400 (EDT)
Message-ID: <4C6978A3.1070404@pobox.com>
Date: Mon, 16 Aug 2010 10:42:59 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
To: Adam Barth <ietf@adambarth.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>
In-Reply-To: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: BD2F9E28-A95D-11DF-9DB6-9056EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 17:42:39 -0000

One problem is that the server is not made aware of the next protocol
until just before the Finished messages are exchanged.  By delaying
this information, the server can not use the protocol as part of its
certificate selection process.

I understand the desire to keep this information private, but it comes
with a cost.  If the server is handling many protocols and desires to
use different certificates for each because of different security
requirements such as lists of supported cipher suites per protocol, or
maybe they are hosting multiple virtual hosts and need to select the
proper certificate from a particular customer.

If the response to this is "use SNI" then you just leaked the information
you are trying to hide by delaying the next protocol until after CCS.

Mike




Adam Barth wrote:
> TLS experts,
> 
> As some of you may be aware, the HyBi working group is considering use
> a TLS extension has part of the WebSockets protocol [1].  I believe
> the extension has been mentioned on this list before, but as there is
> now renewed interested in its use, now might be a good time for this
> working group to look over the extension and provide feedback.
> 
> The extension, called Next Protocol Negotiation, adds information to
> the TLS handshake to let the client and server agree on which protocol
> they will speak over the encrypted tunnel once the handshake
> completes.  In some sense, this extension is to TLS what ports are to
> TCP: it allows multiplexing a number of protocols over a single
> listening endpoint (in the case of TLS, a TCP port, in the case of
> TCP, an IP address).
> 
> The HyBi working group is interested in Next Protocol Negotiation
> because it has two properties:
> 
> 1) It allows servers to multiplex HTTPS and WebSockets over the same
> listening port (typically 443).
> 2) After completing the TLS handshake (with the extension) both
> parties are guaranteed that the other party intends to speak
> WebSockets over the encrypted tunnel.  (This property is important to
> avoid cross-protocol vulnerabilities, which I can elaborate on if
> you're not familiar with that class of vulnerability.)
> 
> The current Internet-Draft is located here:
> 
> http://tools.ietf.org/html/draft-agl-tls-nextprotoneg
> 
> I look forward to receiving your feedback.
> 
> Kind regards,
> Adam
> 
> [1] http://trac.tools.ietf.org/wg/hybi/trac/ticket/14

From agl@google.com  Mon Aug 16 11:01:34 2010
Return-Path: <agl@google.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 47B7C3A68B2 for <tls@core3.amsl.com>; Mon, 16 Aug 2010 11:01:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.327
X-Spam-Level: 
X-Spam-Status: No, score=-105.327 tagged_above=-999 required=5 tests=[AWL=0.650, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_MED=-4, 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 JlNBDzCvR4FR for <tls@core3.amsl.com>; Mon, 16 Aug 2010 11:01:33 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id 82F2F3A67AC for <tls@ietf.org>; Mon, 16 Aug 2010 11:01:32 -0700 (PDT)
Received: from hpaq1.eem.corp.google.com (hpaq1.eem.corp.google.com [172.25.149.1]) by smtp-out.google.com with ESMTP id o7GI26J4029104 for <tls@ietf.org>; Mon, 16 Aug 2010 11:02:07 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1281981728; bh=lCHjkxyBXpjrztdu9/yZEJyKxCU=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type:Content-Transfer-Encoding; b=Qg7XPQkGe9rOgi0cEr6fhqW810g13SGF6ih3qG8H6cLMAbr6i13BjlDS7bSPCvNbY SgXrXpKF42yDv9mHh7qXQ==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:content-transfer-encoding:x-system-of-record; b=dOYDtLbZztxNFHl7Qh0IpbMJs5k+wLQeD+JAmzL6jp83ehmLQaNcb6mF+GmPjY8vm M5Ym/4BZhcglJkrASk46A==
Received: from pzk28 (pzk28.prod.google.com [10.243.19.156]) by hpaq1.eem.corp.google.com with ESMTP id o7GI2406027738 for <tls@ietf.org>; Mon, 16 Aug 2010 11:02:05 -0700
Received: by pzk28 with SMTP id 28so2320619pzk.23 for <tls@ietf.org>; Mon, 16 Aug 2010 11:02:04 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.142.136.1 with SMTP id j1mr4761667wfd.331.1281981724486; Mon, 16 Aug 2010 11:02:04 -0700 (PDT)
Received: by 10.231.142.32 with HTTP; Mon, 16 Aug 2010 11:02:04 -0700 (PDT)
In-Reply-To: <4C6978A3.1070404@pobox.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C6978A3.1070404@pobox.com>
Date: Mon, 16 Aug 2010 14:02:04 -0400
Message-ID: <AANLkTinzpLgX7Y6eVFothtG2uuZTd207y5JiQn_nkbtg@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: "Michael D'Errico" <mike-list@pobox.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 18:01:34 -0000

On Mon, Aug 16, 2010 at 1:42 PM, Michael D'Errico <mike-list@pobox.com> wro=
te:
> I understand the desire to keep this information private, but it comes
> with a cost. =C2=A0If the server is handling many protocols and desires t=
o
> use different certificates for each because of different security
> requirements such as lists of supported cipher suites per protocol, or
> maybe they are hosting multiple virtual hosts and need to select the
> proper certificate from a particular customer.

I agree that it's a trade off. The design, as is, was picked because
the use cases considered were either ambivalent on this point or
favoured the privacy side (i.e. Tor).

Following a more traditional "client presents a list, server picks" is
a reasonable solution, and one that we could accept if opinion was
overwhelming on the matter. But this draft was partly born as a result
of the decay of the end-of-end principal which has rendered TCP port
numbers an ineffective solution. Thus this draft made efforts to be
more future-proof.


AGL

From brian@briansmith.org  Mon Aug 16 11:30:23 2010
Return-Path: <brian@briansmith.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 9682E3A682D for <tls@core3.amsl.com>; Mon, 16 Aug 2010 11:30:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.754
X-Spam-Level: 
X-Spam-Status: No, score=-1.754 tagged_above=-999 required=5 tests=[AWL=0.845,  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 Yo6Q5sTlRSuh for <tls@core3.amsl.com>; Mon, 16 Aug 2010 11:30:21 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 671D93A6A4C for <tls@ietf.org>; Mon, 16 Aug 2010 11:30:20 -0700 (PDT)
Received: from T60 (unknown [98.200.150.199]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id D9183509E1; Mon, 16 Aug 2010 14:30:49 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: "'Michael D'Errico'" <mike-list@pobox.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C6978A3.1070404@pobox.com>
In-Reply-To: <4C6978A3.1070404@pobox.com>
Date: Mon, 16 Aug 2010 13:30:48 -0500
Message-ID: <001301cb3d71$295b28f0$7c117ad0$@briansmith.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQGWKjOVVsWlkADqERmWe4yahRG/kwDZIqNxAQ7X3n4=
Content-Language: en-us
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 18:30:23 -0000

Michael D'Errico wrote:
> One problem is that the server is not made aware of the next protocol
until just
> before the Finished messages are exchanged. 

Wouldn't it actually be better to put the next protocol message *after* the
Finished message so that it can be protected with a HMAC instead of a HMAC
of a PRF'd hash?

> By delaying this information, the server cannot use the protocol as part
of its
> certificate selection process. I understand the desire to keep this
information
> private, but it comes with a cost. If the server is handling many
protocols and
> desires to use different certificates for each because of different
security
> requirements such as lists of supported cipher suites per protocol, or
maybe
> they are hosting multiple virtual hosts and need to select the proper
> certificate from a particular customer.
>
> If the response to this is "use SNI" then you just leaked the information
you are
> trying to hide by delaying the next protocol until after CCS.

SNI was created because the certificate contains the hostname, and the
server needs to choose the certificate based on the hostname. Since the
certificate doesn't contain the protocol, the server doesn't need to choose
the certificate based on the protocol in use. Choosing the cipher suite
based on the protocol doesn't seem very useful and doesn't fit with the TLS
design; the server is supposed to choose the best cipher suite that both
sides support. Also, current implementations already provide support for
switching the cipher suite based on information that they receive after CCS
via renegotiation. For example, Apache will start a renegotiation if the
request URL maps to a resource that has been (mis)configured to use a cipher
suite different than the default for the server.

Cheers,
Brian


From mike-list@pobox.com  Mon Aug 16 11:53:46 2010
Return-Path: <mike-list@pobox.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 36F523A6A38 for <tls@core3.amsl.com>; Mon, 16 Aug 2010 11:53:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000,  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 6kBBZH-irlCE for <tls@core3.amsl.com>; Mon, 16 Aug 2010 11:53:45 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id DE5053A6407 for <tls@ietf.org>; Mon, 16 Aug 2010 11:53:44 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 52B22CD007; Mon, 16 Aug 2010 14:54:20 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=SNrCw6At3sRl cj/hCP/JGyZf5MI=; b=X8lS+GPtH9CqUJcpnwv1sDZmXfTx8qEosguFP3Ok0qNi ZIY2PjWgejxm7mznNwe2ZShTGUJS0RC6FOmVSJjgGJoupmSIJ/TlOsXfIMLLlc9X SFTb42SzB7wtEESNUolEstpCERmiulzcnM2c0SIF9RXwxOBNHY1ZcxDjyshUcu0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=aRTpmp jT/Beb+k7dk11OqwermZ6rStAGMDN/GgpXjThGDI1h/wVx8AJ+ndtkaM/OQ7XsA9 3m2K0+9th/5bgVt0HjUYTrbLhpc0i9TPaFA2g8y5Ldlj41/uFXJIae4tf0INEu+y tcRG3MV3fPJKbGmvUATcjz3jBjIUheHhAexIU=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 3EC5FCD006; Mon, 16 Aug 2010 14:54:19 -0400 (EDT)
Received: from iMac.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 7C6E7CD004; Mon, 16 Aug 2010 14:54:17 -0400 (EDT)
Message-ID: <4C698958.909@pobox.com>
Date: Mon, 16 Aug 2010 11:54:16 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
To: Brian Smith <brian@briansmith.org>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C6978A3.1070404@pobox.com> <001301cb3d71$295b28f0$7c117ad0$@briansmith.org>
In-Reply-To: <001301cb3d71$295b28f0$7c117ad0$@briansmith.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: ACEBF660-A967-11DF-AB75-9056EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 18:53:46 -0000

 > SNI was created because the certificate contains the hostname, and the
 > server needs to choose the certificate based on the hostname. Since the
 > certificate doesn't contain the protocol, the server doesn't need to choose
 > the certificate based on the protocol in use.

It appears you are thinking just in terms of HTTP.  What I'm thinking about
is multiplexing other protocols such as SMTP and IMAP using this extension.
Your SMTP server would likely have a different certificate than your web
server, so the TLS layer would need to know which server (SMTP vs. HTTP) is
being contacted in order to use the correct certificate.

Mike




Brian Smith wrote:
> Michael D'Errico wrote:
>> One problem is that the server is not made aware of the next protocol
> until just
>> before the Finished messages are exchanged. 
> 
> Wouldn't it actually be better to put the next protocol message *after* the
> Finished message so that it can be protected with a HMAC instead of a HMAC
> of a PRF'd hash?
> 
>> By delaying this information, the server cannot use the protocol as part
> of its
>> certificate selection process. I understand the desire to keep this
> information
>> private, but it comes with a cost. If the server is handling many
> protocols and
>> desires to use different certificates for each because of different
> security
>> requirements such as lists of supported cipher suites per protocol, or
> maybe
>> they are hosting multiple virtual hosts and need to select the proper
>> certificate from a particular customer.
>>
>> If the response to this is "use SNI" then you just leaked the information
> you are
>> trying to hide by delaying the next protocol until after CCS.
> 
> SNI was created because the certificate contains the hostname, and the
> server needs to choose the certificate based on the hostname. Since the
> certificate doesn't contain the protocol, the server doesn't need to choose
> the certificate based on the protocol in use. Choosing the cipher suite
> based on the protocol doesn't seem very useful and doesn't fit with the TLS
> design; the server is supposed to choose the best cipher suite that both
> sides support. Also, current implementations already provide support for
> switching the cipher suite based on information that they receive after CCS
> via renegotiation. For example, Apache will start a renegotiation if the
> request URL maps to a resource that has been (mis)configured to use a cipher
> suite different than the default for the server.
> 
> Cheers,
> Brian

From marsh@extendedsubset.com  Mon Aug 16 12:24:45 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id EDEFD3A6A21 for <tls@core3.amsl.com>; Mon, 16 Aug 2010 12:24:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.696
X-Spam-Level: 
X-Spam-Status: No, score=-0.696 tagged_above=-999 required=5 tests=[AWL=-0.697, BAYES_50=0.001]
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 KYerMaN+eVev for <tls@core3.amsl.com>; Mon, 16 Aug 2010 12:24:45 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id E15893A69EA for <tls@ietf.org>; Mon, 16 Aug 2010 12:24:44 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1Ol5JA-000J71-I4; Mon, 16 Aug 2010 19:25:20 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id E515D6095; Mon, 16 Aug 2010 19:25:17 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX18LSs5czHmVDo3T2AG3KxaIq04HOcgDIWE=
Message-ID: <4C69909D.1060200@extendedsubset.com>
Date: Mon, 16 Aug 2010 14:25:17 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: Adam Langley <agl@google.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>	<4C6978A3.1070404@pobox.com> <AANLkTinzpLgX7Y6eVFothtG2uuZTd207y5JiQn_nkbtg@mail.gmail.com>
In-Reply-To: <AANLkTinzpLgX7Y6eVFothtG2uuZTd207y5JiQn_nkbtg@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 19:24:46 -0000

On 08/16/2010 01:02 PM, Adam Langley wrote:
> But this draft was partly born as a result
> of the decay of the end-of-end principal which has rendered TCP port
> numbers an ineffective solution. Thus this draft made efforts to be
> more future-proof.

I am concerned by this proposal. Not that it's technically bad somehow 
but that it seems to be screaming and shaking its fist at the law of 
unintended consequences.

So let me just put these ideas out for discussion:

1. There are already plenty of options available ("VPNs") for tunneling 
arbitrary ports, IPs, even whole netblocks, through TLS or SSH. Perhaps 
these are too heavyweight of a solution in some cases, but nevertheless 
they are commonly used so we know they are options if the demand is great.

2. We already have a decent mechanism for supporting multiple protocols 
on a single IP address, even with TLS. It's "port numbers" doing exactly 
what they were designed to do.

The reason that "different application layer protocols are increasingly 
being carried over TLS using a small set of TCP port numbers, most often 
port 443" is due to the conscious decision of administrators and how 
they choose to configure their firewalls. They really do want to block 
all those other protocols! Today they can do so by selectively blocking, 
intercepting, and/or monitoring the ports they are assigned to.

But a lot of the stuff (standardized or not) running over 443 today is 
doing so just to get around the firewall! This degrades the ability of 
the admin to manage his network.

This is in fact a problem, not a feature that should be officially 
blessed with standardization in the form of a TLS extension.

If network admins are no longer able to effectively manage their traffic 
because it's all being tunneled through TLS on port 443, let's try to 
predict what the effect will be: Of course admins will continue to 
require the ability of the firewall to manage protocols, so they will 
have to inspect deeply the contents of port 443 traffic. This means 
clients will be forced to install trusted root CA certs from the 
inspecting firewall in order to make outbound connections. Of course 
these certs will remain trusted for connections from other networks as 
well. It means these CA private keys are not managed by audited 
processes in vaults underground, they get stored and used on 
internet-facing boxes where they are vulnerable to "unauthorized use". 
We all know they'll eventually be sold on Ebay without an effective 
revocation process. Of course, these root certs will be "automatically 
deployed", meaning browser users will be trained to accept new CA certs 
from time to time (yes, a hotel gave me a bogus cert for an unrelated 
website just a few days ago).

What if SMTP is standardized over this mechanism? What will ISPs which 
now block port 25 do to limit spam? Is this facility only appropriate 
for protocols which should not need blocking? Will those decisions be 
haphazardly decided?

Technical benefits aside, I believe that to the extent this proposal 
replaces the established port assignment mechanism it undermines some 
long established "interface contracts" of the net's design. If the goal 
is to some degree to usurp the admin's ability to control his traffic, 
the result will probably benefit no one.

As you guys know, I'm happy to be convinced, but think it could be a 
potentially significant change to some fundamental stuff which deserves 
due consideration.

- Marsh

From peter.sylvester@edelweb.fr  Mon Aug 16 12:29:11 2010
Return-Path: <peter.sylvester@edelweb.fr>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 018C43A682E for <tls@core3.amsl.com>; Mon, 16 Aug 2010 12:29:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.87
X-Spam-Level: 
X-Spam-Status: No, score=-1.87 tagged_above=-999 required=5 tests=[AWL=0.729,  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 YXreqGHyAWVh for <tls@core3.amsl.com>; Mon, 16 Aug 2010 12:29:09 -0700 (PDT)
Received: from ganymede.on-x.com (ganymede.on-x.com [92.103.215.11]) by core3.amsl.com (Postfix) with ESMTP id C09913A6896 for <tls@ietf.org>; Mon, 16 Aug 2010 12:29:08 -0700 (PDT)
Received: from varuna.puteaux.on-x (varuna.puteaux.on-x [192.168.10.6]) by ganymede.on-x.com (Postfix) with ESMTP id C6CD014F for <tls@ietf.org>; Mon, 16 Aug 2010 21:29:43 +0200 (CEST)
Received: from smtps.on-x.com (mintaka.puteaux.on-x [192.168.14.11]) by varuna.puteaux.on-x (Postfix) with ESMTP id A4D6717048 for <tls@ietf.org>; Mon, 16 Aug 2010 21:29:43 +0200 (CEST)
Received: from [192.168.0.12] (gut75-3-82-227-163-182.fbx.proxad.net [82.227.163.182]) by smtps.on-x.com (Postfix) with ESMTP id A04BC782B for <tls@ietf.org>; Mon, 16 Aug 2010 21:29:43 +0200 (CEST)
Message-ID: <4C6991A7.4070904@edelweb.fr>
Date: Mon, 16 Aug 2010 21:29:43 +0200
From: Peter Sylvester <peter.sylvester@edelweb.fr>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: tls@ietf.org
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C6978A3.1070404@pobox.com>
In-Reply-To: <4C6978A3.1070404@pobox.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 19:29:11 -0000

Hi,

If, according to Adam Barth "in some sense, this extension is to
TLS what ports are to TCP: it allows multiplexing a number of protocols 
over a single
listening endpoint (in the case of TLS, a TCP port, in the case of
  TCP, an IP address),"

why not using the IANA protocol port registry and and the integers
defined there?

Or, more general, an option would be a URI/URN although
combining several information into one textual representation
might not be a nice choice.

All assumed that these information can be transmitted in clear.

/PS


From brian@briansmith.org  Mon Aug 16 12:32:21 2010
Return-Path: <brian@briansmith.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 274C53A6875 for <tls@core3.amsl.com>; Mon, 16 Aug 2010 12:32:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.793
X-Spam-Level: 
X-Spam-Status: No, score=-1.793 tagged_above=-999 required=5 tests=[AWL=0.806,  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 SFEsJgpkH8xb for <tls@core3.amsl.com>; Mon, 16 Aug 2010 12:32:20 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 1CA5A3A6A5C for <tls@ietf.org>; Mon, 16 Aug 2010 12:32:20 -0700 (PDT)
Received: from T60 (unknown [98.200.150.199]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id AF06B509DC; Mon, 16 Aug 2010 15:32:49 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: "'Michael D'Errico'" <mike-list@pobox.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C6978A3.1070404@pobox.com> <001301cb3d71$295b28f0$7c117ad0$@briansmith.org> <4C698958.909@pobox.com>
In-Reply-To: <4C698958.909@pobox.com>
Date: Mon, 16 Aug 2010 14:32:48 -0500
Message-ID: <001e01cb3d79$d2824140$7786c3c0$@briansmith.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQGWKjOVVsWlkADqERmWe4yahRG/kwDZIqNxAQ7X3n4BFUX+9wIG6ud3
Content-Language: en-us
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 19:32:21 -0000

Michael D'Errico wrote:
>  > SNI was created because the certificate contains the hostname, and the
>
> server needs to choose the certificate based on the hostname. Since the  >
> certificate doesn't contain the protocol, the server doesn't need to
choose  >
> the certificate based on the protocol in use.
> 
> It appears you are thinking just in terms of HTTP.  What I'm thinking
about is
> multiplexing other protocols such as SMTP and IMAP using this extension.
> Your SMTP server would likely have a different certificate than your web
server,
> so the TLS layer would need to know which server (SMTP vs. HTTP) is being
> contacted in order to use the correct certificate.

I was thinking of multiplexing SMTP, IMAP, HTTP, and DNS on the same port of
the same server. One of the purposes of doing so is to get around
unreasonable (mobile) ISP/government restrictions on IMAP and SMTP. But,
that is the exact scenario, you don't want to leak information about which
protocol is in use too easily--either in the TLS handshake itself, or in the
certificates sent during the handshake. Instead, you want to force the
ISP/government to do stateful timing analysis of the application_data
messages that go back and forth, because that is probably impractical to do
in real time on a large scale for reasonable amounts of money.

Regards,
Brian


From n.mavrogiannopoulos@gmail.com  Mon Aug 16 12:37:13 2010
Return-Path: <n.mavrogiannopoulos@gmail.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D6AE63A6A74 for <tls@core3.amsl.com>; Mon, 16 Aug 2010 12:37:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000,  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 BT5U9-L+r6Fq for <tls@core3.amsl.com>; Mon, 16 Aug 2010 12:37:12 -0700 (PDT)
Received: from mail-ew0-f44.google.com (mail-ew0-f44.google.com [209.85.215.44]) by core3.amsl.com (Postfix) with ESMTP id 86D3A3A6A73 for <tls@ietf.org>; Mon, 16 Aug 2010 12:37:12 -0700 (PDT)
Received: by ewy22 with SMTP id 22so2879675ewy.31 for <tls@ietf.org>; Mon, 16 Aug 2010 12:37:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:openpgp:content-type:content-transfer-encoding; bh=QDH4jKzIsEMZFlgY3+mwFZO5sqcYIXZjJ6QtekszcMQ=; b=DIHc/3Wno1SzrpkNs7gIWwTzJKDEXpiUA9IaxzNOnjiDnPgA9eLhH0xYBNUa51c/Si VdncHkge3G83OZ6D5lMUtfsd4O2JjU/a4TcGaAeHX3lk1R8i9LPCqcF8WUu3w49duhfj ype22+7a8mJ1B2WkJWh+G99NeVCHgefRrJF4k=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:x-enigmail-version:openpgp:content-type :content-transfer-encoding; b=HliBH8ajcFMZZuh9z5Ojv9DXXXlyIGs3Ovg8BaB4n1buJD21br/s/B43qY4RISf+iH 45afqJLb61/Y7EAhUL3Ulgt+TcF7WOmCEvq1BSluouhcGYbjm4ZTk1Jy0IUlPYpMw/oG XwSk4vD/NuZATUKAY3wrbno4i4wYEpLXImKwY=
Received: by 10.213.77.75 with SMTP id f11mr3163629ebk.15.1281987467720; Mon, 16 Aug 2010 12:37:47 -0700 (PDT)
Received: from [10.100.2.14] (78-23-65-223.access.telenet.be [78.23.65.223]) by mx.google.com with ESMTPS id v59sm10566701eeh.10.2010.08.16.12.37.46 (version=SSLv3 cipher=RC4-MD5); Mon, 16 Aug 2010 12:37:46 -0700 (PDT)
Sender: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
Message-ID: <4C69938A.9080808@gnutls.org>
Date: Mon, 16 Aug 2010 21:37:46 +0200
From: Nikos Mavrogiannopoulos <nmav@gnutls.org>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100528 Thunderbird/3.0.5
MIME-Version: 1.0
To: tls@ietf.org
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>
In-Reply-To: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>
X-Enigmail-Version: 1.0.1
OpenPGP: id=96865171
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 19:37:14 -0000

On 08/16/2010 07:07 PM, Adam Barth wrote:
> TLS experts,
> 
> As some of you may be aware, the HyBi working group is considering use
> a TLS extension has part of the WebSockets protocol [1].  I believe
> the extension has been mentioned on this list before, but as there is
> now renewed interested in its use, now might be a good time for this
> working group to look over the extension and provide feedback.

Without getting on the details, why do that on the TLS protocol? This
looks like something to be done on the application protocol.

regards,
Nikos

From agl@google.com  Mon Aug 16 12:42:30 2010
Return-Path: <agl@google.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 123453A6A53 for <tls@core3.amsl.com>; Mon, 16 Aug 2010 12:42:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.544
X-Spam-Level: 
X-Spam-Status: No, score=-105.544 tagged_above=-999 required=5 tests=[AWL=0.433, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_MED=-4, 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 nyVQF-W0FZJU for <tls@core3.amsl.com>; Mon, 16 Aug 2010 12:42:29 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id 0D2EA3A6A09 for <tls@ietf.org>; Mon, 16 Aug 2010 12:42:28 -0700 (PDT)
Received: from wpaz37.hot.corp.google.com (wpaz37.hot.corp.google.com [172.24.198.101]) by smtp-out.google.com with ESMTP id o7GJh4FT026409 for <tls@ietf.org>; Mon, 16 Aug 2010 12:43:04 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1281987784; bh=qPscvfue0BN/P7IGtQtOBvXAPrg=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=Ev/ZymOt/yrdQQmS/D4PEMW9Sxh6BUlPnhDaq49q64oOO1M8E3iCIMtLbll/dj8C+ Yw0eMhDoDf385C3vGyRQg==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=jZJTVvxM97QT+AFejvMzfiRkAXyfCF5+ZxscP1s6dXG1wxtV4nVdf2ocVEVIirNKE sxT7jxa7KTBqtCYJ4+/9A==
Received: from gwb1 (gwb1.prod.google.com [10.200.2.1]) by wpaz37.hot.corp.google.com with ESMTP id o7GJgp0T016596 for <tls@ietf.org>; Mon, 16 Aug 2010 12:43:03 -0700
Received: by gwb1 with SMTP id 1so3137554gwb.40 for <tls@ietf.org>; Mon, 16 Aug 2010 12:43:03 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.12.74 with SMTP id w10mr6273255ibw.189.1281987783425; Mon, 16 Aug 2010 12:43:03 -0700 (PDT)
Received: by 10.231.142.32 with HTTP; Mon, 16 Aug 2010 12:43:03 -0700 (PDT)
In-Reply-To: <4C69909D.1060200@extendedsubset.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C6978A3.1070404@pobox.com> <AANLkTinzpLgX7Y6eVFothtG2uuZTd207y5JiQn_nkbtg@mail.gmail.com> <4C69909D.1060200@extendedsubset.com>
Date: Mon, 16 Aug 2010 15:43:03 -0400
Message-ID: <AANLkTikBV=-wshW8VrsrFm1oa-J85OTGMhMX1_WincB-@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: Marsh Ray <marsh@extendedsubset.com>
Content-Type: text/plain; charset=UTF-8
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 19:42:30 -0000

On Mon, Aug 16, 2010 at 3:25 PM, Marsh Ray <marsh@extendedsubset.com> wrote:
> But a lot of the stuff (standardized or not) running over 443 today is doing
> so just to get around the firewall! This degrades the ability of the admin
> to manage his network.

>From the purely technical standpoint, TCP port numbers have two
significant drawbacks that NPN addresses:

1) When the network wishes to express policy (ignoring any arguments
about the legitimacy of such), it often does so by dropping SYN
packets. Thus one cannot reasonably query and adapt to a local policy
because waiting for a TCP timeout is unacceptable.

2) A similar issue exists with the end server: if the client wishes to
connect to one of n ports, the latency of trying a connection and
getting a RST back (assuming the RST even comes) is unacceptable.

(In both cases 'unacceptable' is based on the requirements of
interactive programs, i.e. browsers.)


I'm going to omit a response to your other objections because I fear
this isn't the forum to argue over the end-to-end principal.


AGL

From agl@google.com  Mon Aug 16 12:47:03 2010
Return-Path: <agl@google.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 94D6D3A6A77 for <tls@core3.amsl.com>; Mon, 16 Aug 2010 12:47:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.977
X-Spam-Level: 
X-Spam-Status: No, score=-103.977 tagged_above=-999 required=5 tests=[AWL=2.000, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_MED=-4, 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 B-M0T-WcN3yC for <tls@core3.amsl.com>; Mon, 16 Aug 2010 12:47:02 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id 7ECD03A6A47 for <tls@ietf.org>; Mon, 16 Aug 2010 12:47:02 -0700 (PDT)
Received: from hpaq13.eem.corp.google.com (hpaq13.eem.corp.google.com [172.25.149.13]) by smtp-out.google.com with ESMTP id o7GJlbco028590 for <tls@ietf.org>; Mon, 16 Aug 2010 12:47:37 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1281988057; bh=zrxB39yXj/4Dvag9nEVvk2Ha1Pc=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=n6Cc7T+PaG1Y1Cjy8aTcbUak8K13ibepJa4keeVxC6/55m4J+/2rzLawV6OShDRw/ C92MJzSoldQtBlGEChlWw==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=WTljH/azHs644DdwXE8rKJ+L/UATxUAbyIpVrNQei0cVQxMFgKDugszCiZmebZtJ7 J83Tx7PQkgZRKtXiIzlxQ==
Received: from gyf1 (gyf1.prod.google.com [10.243.50.65]) by hpaq13.eem.corp.google.com with ESMTP id o7GJlafO009116 for <tls@ietf.org>; Mon, 16 Aug 2010 12:47:36 -0700
Received: by gyf1 with SMTP id 1so2332589gyf.26 for <tls@ietf.org>; Mon, 16 Aug 2010 12:47:36 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.151.78.6 with SMTP id f6mr5889486ybl.52.1281988052292; Mon, 16 Aug 2010 12:47:32 -0700 (PDT)
Received: by 10.231.142.32 with HTTP; Mon, 16 Aug 2010 12:47:32 -0700 (PDT)
In-Reply-To: <4C69938A.9080808@gnutls.org>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C69938A.9080808@gnutls.org>
Date: Mon, 16 Aug 2010 15:47:32 -0400
Message-ID: <AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Content-Type: text/plain; charset=UTF-8
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 19:47:03 -0000

On Mon, Aug 16, 2010 at 3:37 PM, Nikos Mavrogiannopoulos
<nmav@gnutls.org> wrote:
> Without getting on the details, why do that on the TLS protocol? This
> looks like something to be done on the application protocol.

Our main reason is latency: we cannot afford a round trip.

Our secondary reason is that it might not be transparent to proxies.
For an application-level protocol handshake over HTTP, this is a major
concern. With HTTPS, it's much less so. So we are spending a
round-trip to establish a TLS connection (with False Start, it's only
one) and hoping to get it back in the future with Snap Start.


AGL

From brian@briansmith.org  Mon Aug 16 13:06:59 2010
Return-Path: <brian@briansmith.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 7AEE73A6A9F for <tls@core3.amsl.com>; Mon, 16 Aug 2010 13:06:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.828
X-Spam-Level: 
X-Spam-Status: No, score=-1.828 tagged_above=-999 required=5 tests=[AWL=0.771,  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 CXovgjruUg5H for <tls@core3.amsl.com>; Mon, 16 Aug 2010 13:06:58 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 548D13A6A53 for <tls@ietf.org>; Mon, 16 Aug 2010 13:06:58 -0700 (PDT)
Received: from T60 (unknown [98.200.150.199]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id CF742509E0; Mon, 16 Aug 2010 16:07:27 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: "'Marsh Ray'" <marsh@extendedsubset.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>	<4C6978A3.1070404@pobox.com>	<AANLkTinzpLgX7Y6eVFothtG2uuZTd207y5JiQn_nkbtg@mail.gmail.com> <4C69909D.1060200@extendedsubset.com>
In-Reply-To: <4C69909D.1060200@extendedsubset.com>
Date: Mon, 16 Aug 2010 15:07:26 -0500
Message-ID: <002201cb3d7e$a926b150$fb7413f0$@briansmith.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQGWKjOVVsWlkADqERmWe4yahRG/kwDZIqNxAkpoXO8CVS8bQwJ6P/Jv
Content-Language: en-us
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 20:06:59 -0000

Marsh Ray wrote:
> On 08/16/2010 01:02 PM, Adam Langley wrote:
> This means clients will be forced to install trusted root CA certs from
> the inspecting firewall in order to make outbound connections. 

This is inevitable even without this extension, and it is in fact already
happening.

> What if SMTP is standardized over this mechanism? What will ISPs which now
> block port 25 do to limit spam? Is this facility only appropriate for
protocols
> which should not need blocking? Will those decisions be haphazardly
decided?

You can already provide SMTP over TLS over port 443. I remember seeing email
hosting providers providing this option when I was shopping for a host; they
just didn't have a HTTPS server on port 443. In fact, it is only accidental
that SMTP(S), IMAP(S), and HTTP(S) cannot be multiplexed over port 443 now;
if SMTP and IMAP were client-speaks-first protocols then it would be
trivial.

> Technical benefits aside, I believe that to the extent this proposal
replaces the
> established port assignment mechanism it undermines some long established
> "interface contracts" of the net's design. If the goal is to some degree
to usurp
> the admin's ability to control his traffic, the result will probably
benefit no one.

You can make the same argument against HTTPS-based email protocols. If the
network administrator needs to block email from computers it cannot control,
then it needs to decrypt and inspect all traffic, regardless of port or
protocol.

If network administrators effectively blocks SMTP and IMAP, HTTPS-based
protocols will become the new way to send/receive email.

Cheers,
Brian


From brian@briansmith.org  Mon Aug 16 13:07:44 2010
Return-Path: <brian@briansmith.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 91EA83A6A91 for <tls@core3.amsl.com>; Mon, 16 Aug 2010 13:07:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.86
X-Spam-Level: 
X-Spam-Status: No, score=-1.86 tagged_above=-999 required=5 tests=[AWL=0.739,  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 fXkbmbMho1TS for <tls@core3.amsl.com>; Mon, 16 Aug 2010 13:07:43 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 682463A6A7F for <tls@ietf.org>; Mon, 16 Aug 2010 13:07:43 -0700 (PDT)
Received: from T60 (unknown [98.200.150.199]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id D5FB3509DC; Mon, 16 Aug 2010 16:08:18 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: "'Adam Barth'" <ietf@adambarth.com>, <tls@ietf.org>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>
In-Reply-To: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>
Date: Mon, 16 Aug 2010 15:08:17 -0500
Message-ID: <002301cb3d7e$c53a5860$4faf0920$@briansmith.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQGWKjOVVsWlkADqERmWe4yahRG/kwIPjIVp
Content-Language: en-us
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 20:07:44 -0000

Adam Barth wrote:
> As some of you may be aware, the HyBi working group is considering use a
TLS
> extension has part of the WebSockets protocol [1].  I believe the
extension has
> been mentioned on this list before, but as there is now renewed interested
in its
> use, now might be a good time for this working group to look over the
extension
> and provide feedback.

The current draft seems to be written without consideration of snap start.
In particular, it says that the protocol negotiation is free because it
happens during first round-trip, which is unavoidable, whereas snap start
avoids that round-trip.

Also, I don't understand the prohibition against renegotiations including
the extension. The server cannot enable protocols based on the identity of
the client without requiring renegotiation client hellos to include this
extension.

Because of those two issues, I think it would be better for the list of
protocols supported by the server to become session-persistent attribute
while the current protocol in use should be a per-handshake attribute of the
connection.

The description of HTTP pipelining doesn't match RFC 2616. A client may send
multiple pipelined requests immediately (optimistically assuming the server
supports the feature), but should be prepared for the server to close the
connection after the first response. I guess this is more of a
theory-vs-practice issue, but even the practical use is quite nuanced. For
example, at least at one point in time, Amazon Web Services supported
pipelining and persistent connections, but it had a small upper limit (10?)
on the number of requests that could be issued on the same connection.
Consequently, it seems unlikely that this extension will be able to handle
all the practical aspects of HTTP pipelining interoperability in the way it
intends, without extensions also to HTTP; with such HTTP extensions, you
probably wouldn't need the next protocol extension for HTTP pipelining. It
will actually probably create headaches when the server has configured its
TLS implementation to promise "I support HTTP pipelining really well" but
the implementation doesn't live up to that promise.

Regards,
Brian


From agl@google.com  Mon Aug 16 13:29:53 2010
Return-Path: <agl@google.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 94C973A6AAE for <tls@core3.amsl.com>; Mon, 16 Aug 2010 13:29:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.644
X-Spam-Level: 
X-Spam-Status: No, score=-104.644 tagged_above=-999 required=5 tests=[AWL=1.333, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_MED=-4, 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 E9hwgT7h6hdb for <tls@core3.amsl.com>; Mon, 16 Aug 2010 13:29:52 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id 78E683A6AA0 for <tls@ietf.org>; Mon, 16 Aug 2010 13:29:52 -0700 (PDT)
Received: from hpaq6.eem.corp.google.com (hpaq6.eem.corp.google.com [172.25.149.6]) by smtp-out.google.com with ESMTP id o7GKURC2002801 for <tls@ietf.org>; Mon, 16 Aug 2010 13:30:27 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1281990627; bh=58O+IvmJw+wqJmfoUDFA32eSAt4=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=JUByTIZGk13S3ySYWuVM9N/dNscIXclx0KgRlLzultMeFXQDlfkL0/iiQ7BvMjzQ7 FZ85S3z079bs4g9YVMhTg==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=jKvHRZHyGYHWjrB59sG6ZWou1/EUPqZnwmzXLkHukxADWoxZBT/xDc/FViPqBwWDN F0KrYzirIcOAjMorFru+Q==
Received: from gyg8 (gyg8.prod.google.com [10.243.50.136]) by hpaq6.eem.corp.google.com with ESMTP id o7GKTu4I013236 for <tls@ietf.org>; Mon, 16 Aug 2010 13:30:26 -0700
Received: by gyg8 with SMTP id 8so2423281gyg.31 for <tls@ietf.org>; Mon, 16 Aug 2010 13:30:26 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.39.196 with SMTP id h4mr6655414ibe.64.1281990624777; Mon, 16 Aug 2010 13:30:24 -0700 (PDT)
Received: by 10.231.142.32 with HTTP; Mon, 16 Aug 2010 13:30:24 -0700 (PDT)
In-Reply-To: <002301cb3d7e$c53a5860$4faf0920$@briansmith.org>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <002301cb3d7e$c53a5860$4faf0920$@briansmith.org>
Date: Mon, 16 Aug 2010 16:30:24 -0400
Message-ID: <AANLkTi=OEs_fxceOG4q-1QqZXeHECsE+=ozFS8qriCJo@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: Brian Smith <brian@briansmith.org>
Content-Type: text/plain; charset=UTF-8
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 20:29:53 -0000

On Mon, Aug 16, 2010 at 4:08 PM, Brian Smith <brian@briansmith.org> wrote:
> The current draft seems to be written without consideration of snap start.
> In particular, it says that the protocol negotiation is free because it
> happens during first round-trip, which is unavoidable, whereas snap start
> avoids that round-trip.

The drafts are written independently although they are compatible. A
Snap Started NPN handshake involves the client presenting the NPN
extension, predicting the server's NPN reply and embedding a
NextProtocol message in it's ClientHello.

> Also, I don't understand the prohibition against renegotiations including
> the extension. The server cannot enable protocols based on the identity of
> the client without requiring renegotiation client hellos to include this
> extension.

This was a simplification based on the assumption that the application
level wouldn't wish to switch protocols during a connection. If you
have a use-case which does need this, then I'd be happy to change the
current draft.

> The description of HTTP pipelining doesn't match RFC 2616. A client may send
> multiple pipelined requests immediately (optimistically assuming the server
> supports the feature), but should be prepared for the server to close the
> connection after the first response.

You are correct; I was mistaken in my understanding of the RFC. I'll
remove the existing paragraph and will probably replace it with a
motivation deriving from WebSockets as that's less hand-wavy.


AGL

From ietf@adambarth.com  Mon Aug 16 17:29:40 2010
Return-Path: <ietf@adambarth.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id DAF9E3A67E3 for <tls@core3.amsl.com>; Mon, 16 Aug 2010 17:29:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.677
X-Spam-Level: 
X-Spam-Status: No, score=-1.677 tagged_above=-999 required=5 tests=[AWL=-0.300, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, J_CHICKENPOX_33=0.6]
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 pHyViSmt8l1n for <tls@core3.amsl.com>; Mon, 16 Aug 2010 17:29:39 -0700 (PDT)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by core3.amsl.com (Postfix) with ESMTP id 4D7FF3A67B1 for <tls@ietf.org>; Mon, 16 Aug 2010 17:29:39 -0700 (PDT)
Received: by vws10 with SMTP id 10so4408093vws.31 for <tls@ietf.org>; Mon, 16 Aug 2010 17:30:14 -0700 (PDT)
Received: by 10.220.122.203 with SMTP id m11mr3422230vcr.258.1282005014691; Mon, 16 Aug 2010 17:30:14 -0700 (PDT)
Received: from mail-gw0-f44.google.com (mail-gw0-f44.google.com [74.125.83.44]) by mx.google.com with ESMTPS id s20sm2034696vcr.4.2010.08.16.17.30.12 (version=SSLv3 cipher=RC4-MD5); Mon, 16 Aug 2010 17:30:13 -0700 (PDT)
Received: by gwaa18 with SMTP id a18so2584735gwa.31 for <tls@ietf.org>; Mon, 16 Aug 2010 17:30:12 -0700 (PDT)
Received: by 10.231.193.135 with SMTP id du7mr5973306ibb.176.1282005012237; Mon, 16 Aug 2010 17:30:12 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.60.18 with HTTP; Mon, 16 Aug 2010 17:29:52 -0700 (PDT)
In-Reply-To: <001301cb3d71$295b28f0$7c117ad0$@briansmith.org>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C6978A3.1070404@pobox.com> <001301cb3d71$295b28f0$7c117ad0$@briansmith.org>
From: Adam Barth <ietf@adambarth.com>
Date: Mon, 16 Aug 2010 17:29:52 -0700
Message-ID: <AANLkTi=h8extMyA-U42XNdvhV4S0gUJFpnM7Pn5bu35F@mail.gmail.com>
To: tls@ietf.org
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 00:29:41 -0000

Replies inline (combined into one message to avoid spamming the list
with infinite replies).

On Mon, Aug 16, 2010 at 11:30 AM, Brian Smith <brian@briansmith.org> wrote:
> Michael D'Errico wrote:
>> One problem is that the server is not made aware of the next protocol un=
til just
>> before the Finished messages are exchanged.
>
> Wouldn't it actually be better to put the next protocol message *after* t=
he
> Finished message so that it can be protected with a HMAC instead of a HMA=
C
> of a PRF'd hash?

I believe that would be fine too.  I don't think it matters that much, howe=
ver.

> SNI was created because the certificate contains the hostname, and the
> server needs to choose the certificate based on the hostname. Since the
> certificate doesn't contain the protocol, the server doesn't need to choo=
se
> the certificate based on the protocol in use. Choosing the cipher suite
> based on the protocol doesn't seem very useful and doesn't fit with the T=
LS
> design; the server is supposed to choose the best cipher suite that both
> sides support. Also, current implementations already provide support for
> switching the cipher suite based on information that they receive after C=
CS
> via renegotiation. For example, Apache will start a renegotiation if the
> request URL maps to a resource that has been (mis)configured to use a cip=
her
> suite different than the default for the server.

Indeed.

On Mon, Aug 16, 2010 at 11:54 AM, Michael D'Errico <mike-list@pobox.com> wr=
ote:
>> SNI was created because the certificate contains the hostname, and the
>> server needs to choose the certificate based on the hostname. Since the
>> certificate doesn't contain the protocol, the server doesn't need to
>> choose the certificate based on the protocol in use.
>
> It appears you are thinking just in terms of HTTP. =A0What I'm thinking a=
bout
> is multiplexing other protocols such as SMTP and IMAP using this extensio=
n.
> Your SMTP server would likely have a different certificate than your web
> server, so the TLS layer would need to know which server (SMTP vs. HTTP) =
is
> being contacted in order to use the correct certificate.

Why should the server's certificate vary depending on what the next
protocol is?  Your colleague Brian Smith appears to hold the opposite
belief.  Keep in mind that TLS extensions are cheap.  If that need
arises in the future, we design another next-protocol negotiation
extension to meet that need.

As various folks are fond of saying "you ain't gonna need it," which
roughly translates as (as I understand it) "you should design for the
problems you have and worry about future problems in the future."

On Mon, Aug 16, 2010 at 12:25 PM, Marsh Ray <marsh@extendedsubset.com> wrot=
e:
> On 08/16/2010 01:02 PM, Adam Langley wrote:
>> But this draft was partly born as a result
>> of the decay of the end-of-end principal which has rendered TCP port
>> numbers an ineffective solution. Thus this draft made efforts to be
>> more future-proof.
>
> I am concerned by this proposal. Not that it's technically bad somehow bu=
t
> that it seems to be screaming and shaking its fist at the law of unintend=
ed
> consequences.

It's hard for me to address your non-technical concerns.  The use of
NPN for WebSockets is not in any way a fist shaking reaction to
anything.  It's a technical solution to the following technical
problem:

1) The client needs to be convinced that the server wishes to speak
the WebSocket protocol.

2) The server needs to be convinced that the client wishes to speak
the WebSocket protocol.

If either party cannot be convinced of that fact, then we leave
ourselves open to cross-protocol attacks, which is unacceptable in the
deployment scenarios for WebSockets.

> So let me just put these ideas out for discussion:
>
> 1. There are already plenty of options available ("VPNs") for tunneling
> arbitrary ports, IPs, even whole netblocks, through TLS or SSH. Perhaps
> these are too heavyweight of a solution in some cases, but nevertheless t=
hey
> are commonly used so we know they are options if the demand is great.

For WebSockets, we're not interested in tunneling arbitrary ports.
We're interested in establishing the security property above, which is
the security property TLS+NPN gives us.

> 2. We already have a decent mechanism for supporting multiple protocols o=
n a
> single IP address, even with TLS. It's "port numbers" doing exactly what
> they were designed to do.

Port numbers do not achieve the security property above.  For example,
suppose we choose port 39426 as the designated port for WebSocket
connections.  There's no guarantee that a server won't have a SMTP
server listening on port 39426.  If the client (in the typical
WebSocket deployment scenario, this means a browser) speaks WebSockets
to an SMTP server, we have a security problem, namely a malicious web
site you visit might be able to send spam via your computer and that
server.

> The reason that "different application layer protocols are increasingly
> being carried over TLS using a small set of TCP port numbers, most often
> port 443" is due to the conscious decision of administrators and how they
> choose to configure their firewalls. They really do want to block all tho=
se
> other protocols! Today they can do so by selectively blocking, intercepti=
ng,
> and/or monitoring the ports they are assigned to.

While that might or might not be true, it's not relevant to
establishing the security property we seek to establish.

[trim]

> What if SMTP is standardized over this mechanism?

That would be great for the security of the web because we wouldn't
have to worry about HTTP POST requests being sent to SMTP servers and
generating spam.  We do have to worry about that today, and our
solutions are quite hacky (essentially port blacklisting) because SMTP
(even SMTP-over-TLS) doesn't use NPN.

> What will ISPs which now block port 25 do to limit spam?

What do these ISPs do today for all the folks that run SMTP servers
over TLS?  Somehow the world has failed to come to an end.

> Is this facility only appropriate for protocols which should not need
> blocking? Will those decisions be haphazardly decided?

That seems like an argument against using end-to-end encryption in
general.  Whether you want to use end-to-end encryption is a different
problem from whether you want the two participants involved in the
communication to agree about which protocol they're speaking.

> Technical benefits aside, I believe that to the extent this proposal
> replaces the established port assignment mechanism it undermines some lon=
g
> established "interface contracts" of the net's design. If the goal is to
> some degree to usurp the admin's ability to control his traffic, the resu=
lt
> will probably benefit no one.

That's not the goal, as discussed above.

> As you guys know, I'm happy to be convinced, but think it could be a
> potentially significant change to some fundamental stuff which deserves d=
ue
> consideration.

I think you're overestimating the impact of this proposal.  We're not
intending to replace TCP ports, which work quite well for their
intended uses.  We're interested in solving a particular security
problem with WebSockets.  We could make a WebSocket-specific TLS
extension to address our narrow use case, but the mechanism seems
useful in general, hence the proposal for a more general mechanism.

On Mon, Aug 16, 2010 at 12:29 PM, Peter Sylvester
<peter.sylvester@edelweb.fr> wrote:
> If, according to Adam Barth "in some sense, this extension is to
> TLS what ports are to TCP: it allows multiplexing a number of protocols o=
ver
> a single
> listening endpoint (in the case of TLS, a TCP port, in the case of
> TCP, an IP address),"
>
> why not using the IANA protocol port registry and and the integers
> defined there?

As a wrote in my response to Marsh Ray, that doesn't solve the problem
of convincing the client that the server intends to speak WebSockets.
Just because a server is listening on a particular port does not mean
that it intends to speak the protocol assigned to that port by IANA.
Similar, from the server's perspective, just because a client connects
to a specific port, that doesn't mean the client intends to speak the
protocol registered to that port by IANA.

Continuing the earlier example (this time from the server's
perspective), suppose we register port 39426 for WebSockets.  Now,
suppose a client connects to port 39426 and sends some bytes.  Can
server assume the client intends to speak WebSockets?  Unfortunately,
no.  The client might well be sending an HTTP POST to port 39426, for
example.

> Or, more general, an option would be a URI/URN although
> combining several information into one textual representation
> might not be a nice choice.

Where would we put the URI/URN?  I don't understand your proposal.

> All assumed that these information can be transmitted in clear.

Whether the information is encrypted is not what's at issue here.
What's at issue is that the client and server effect a handshake
protocol and agree which protocol they'd like to speak next.

On Mon, Aug 16, 2010 at 12:37 PM, Nikos Mavrogiannopoulos
<nmav@gnutls.org> wrote:
> Without getting on the details, why do that on the TLS protocol? This
> looks like something to be done on the application protocol.

Honestly, because web browsers have been spamming TLS to every port on
the Internet for over a decade, so we have a reasonable confidence
that nothing will explode if we do that.

Put another way, suppose their was a cross-protocol attack using
WebSockets (with this TLS handshake).  By reduction, I can show that
it's overwhelmingly likely that that cross-protocol attack exists
already because browsers support HTTPS.

I'm aware that you don't usually discuss security issues with browser
vendors, so I'm more than willing to elaborate on these security
considerations.  I know they're not the usual sorts of things that
network security folks think about.


On Mon, Aug 16, 2010 at 1:07 PM, Brian Smith <brian@briansmith.org> wrote:
> Marsh Ray wrote:
>> On 08/16/2010 01:02 PM, Adam Langley wrote:
>> This means clients will be forced to install trusted root CA certs from
>> the inspecting firewall in order to make outbound connections.
>
> This is inevitable even without this extension, and it is in fact already
> happening.

Again, that's a question of whether using end-to-end encryption is a
good idea, not about whether it's a good idea for the folks
participating in the communication to agree about which protocol
they're speaking.

At a more general level, many security problems arise because one
party misunderstands the messages sent by another party.  The goal of
NPN is to make it easier for parties who complete a TLS handshake to
agree on the semantics of the bytes they send over the encrypted
tunnel.

>> What if SMTP is standardized over this mechanism? What will ISPs which n=
ow
>> block port 25 do to limit spam? Is this facility only appropriate for
> protocols
>> which should not need blocking? Will those decisions be haphazardly
> decided?
>
> You can already provide SMTP over TLS over port 443. I remember seeing em=
ail
> hosting providers providing this option when I was shopping for a host; t=
hey
> just didn't have a HTTPS server on port 443. In fact, it is only accident=
al
> that SMTP(S), IMAP(S), and HTTP(S) cannot be multiplexed over port 443 no=
w;
> if SMTP and IMAP were client-speaks-first protocols then it would be
> trivial.

Indeed.  NPN is a less hacky way of doing those things because you
don't need to "sniff" the protocol.  You get a descriptor of what
protocol you're going to speak next, which means fewer
misunderstandings and, therefore, fewer vulnerabilities.

>> Technical benefits aside, I believe that to the extent this proposal
> replaces the
>> established port assignment mechanism it undermines some long establishe=
d
>> "interface contracts" of the net's design. If the goal is to some degree
> to usurp
>> the admin's ability to control his traffic, the result will probably
> benefit no one.
>
> You can make the same argument against HTTPS-based email protocols. If th=
e
> network administrator needs to block email from computers it cannot contr=
ol,
> then it needs to decrypt and inspect all traffic, regardless of port or
> protocol.
>
> If network administrators effectively blocks SMTP and IMAP, HTTPS-based
> protocols will become the new way to send/receive email.

Indeed.

Kind regards,
Adam

From mrex@sap.com  Mon Aug 16 18:32:44 2010
Return-Path: <mrex@sap.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 165183A6876 for <tls@core3.amsl.com>; Mon, 16 Aug 2010 18:32:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.822
X-Spam-Level: 
X-Spam-Status: No, score=-9.822 tagged_above=-999 required=5 tests=[AWL=0.427,  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 yAnNw+GO6Hen for <tls@core3.amsl.com>; Mon, 16 Aug 2010 18:32:41 -0700 (PDT)
Received: from smtpde02.sap-ag.de (smtpde02.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id EE26C3A68C5 for <tls@ietf.org>; Mon, 16 Aug 2010 18:32:37 -0700 (PDT)
Received: from mail.sap.corp by smtpde02.sap-ag.de (26) with ESMTP id o7H1XC9d029472 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 17 Aug 2010 03:33:12 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201008170133.o7H1XBdR001436@fs4113.wdf.sap.corp>
To: mike-list@pobox.com (Michael D'Errico)
Date: Tue, 17 Aug 2010 03:33:11 +0200 (MEST)
In-Reply-To: <4C6978A3.1070404@pobox.com> from "Michael D'Errico" at Aug 16, 10 10:42:59 am
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal06
X-SAP: out
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 01:32:44 -0000

Michael D'Errico wrote:
> 
> One problem is that the server is not made aware of the next protocol
> until just before the Finished messages are exchanged.  By delaying
> this information, the server can not use the protocol as part of its
> certificate selection process.

Personally, I very much dislike the idea to send the new message type
_before_ rather than after the finished message.  In particular in
combination with the unusal behaviour specified for session resume.


> 
> I understand the desire to keep this information private, but it comes
> with a cost.  If the server is handling many protocols and desires to
> use different certificates for each because of different security
> requirements such as lists of supported cipher suites per protocol, or
> maybe they are hosting multiple virtual hosts and need to select the
> proper certificate from a particular customer.
> 
> If the response to this is "use SNI" then you just leaked the information
> you are trying to hide by delaying the next protocol until after CCS.

So far SNI is blind about TCP ports, it is only about hostnames.


I do remember serious concerns from the network operations people
when IPsec put the TCP port into the encapsulated payload because
they would no longer be able to accumulate meaningful per-protocol
statistics and discriminate against specific protocols between
two hosts.  In particular, they wanted a requirement that the TCP port
must remain visible on the outside and that implementations
would have to ensure that the TCP port on the outside would not get
simply ignored if the TCP port value inside the encapsulated payload
specified some other port.


Somehow it looks like this approach is going up two protocol layers
to escape the attention and influence of the network operations people. :)

-Martin

From mike-list@pobox.com  Mon Aug 16 20:20:32 2010
Return-Path: <mike-list@pobox.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 67CAE3A67F8 for <tls@core3.amsl.com>; Mon, 16 Aug 2010 20:20:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000,  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 mNPYYi5nEAUn for <tls@core3.amsl.com>; Mon, 16 Aug 2010 20:20:31 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 614FF3A67A1 for <tls@ietf.org>; Mon, 16 Aug 2010 20:20:31 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id B670DCCAA3; Mon, 16 Aug 2010 23:21:06 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=h51qwVI/mKFZ 8N8kCIcYThWgiGs=; b=J7f9YwY+6ghTZYMbkm3iCI4eWQ39OpExfB14y/QNWawh VejseS8VAsJ5l8gUexEruyeMzpf+knZAd4oqM5yAJXpRkyD0op3IUJW5UDe/T2dE 4tTIVQi7DbkSLk/nRBkI2HihZmFKjU0k37N4CBbj4upHJ7T5NUv6QIDSuJcj2mk=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=DpGK/8 ya2+p/qFUBuFODHngHPph0N3l7wZLHq4z50Jhw64NqxID0v1cgiQ7c2yeh0GhWDc IQZwPKXVF+pS0v1n/J64AthwlHRXPRYRk8SqbBQiVhyfIjNFsAmQNVzlNk4Xs95S 4/RSvibpbU+VVXMsCQzZkK0GLJJnF6jWgXt0s=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id A0CF4CCAA0; Mon, 16 Aug 2010 23:21:05 -0400 (EDT)
Received: from iMac.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 21C9FCCA9F; Mon, 16 Aug 2010 23:21:03 -0400 (EDT)
Message-ID: <4C6A001C.3080305@pobox.com>
Date: Mon, 16 Aug 2010 20:21:00 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
To: Adam Barth <ietf@adambarth.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C6978A3.1070404@pobox.com> <001301cb3d71$295b28f0$7c117ad0$@briansmith.org> <AANLkTi=h8extMyA-U42XNdvhV4S0gUJFpnM7Pn5bu35F@mail.gmail.com>
In-Reply-To: <AANLkTi=h8extMyA-U42XNdvhV4S0gUJFpnM7Pn5bu35F@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 788CF68E-A9AE-11DF-9B76-9056EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 03:20:32 -0000

Adam Barth wrote:
> 
> Why should the server's certificate vary depending on what the next
> protocol is?  Your colleague Brian Smith appears to hold the opposite
> belief.  Keep in mind that TLS extensions are cheap.  If that need
> arises in the future, we design another next-protocol negotiation
> extension to meet that need.

In the 7 years since RFC 3546, there have been only 17 TLS extensions
defined.  I don't know what gave you the idea that they are "cheap."
Each one needs to be carefully studied to determine how they interact
with each other.

So, no, we won't define one haphazardly.

But to answer your question, I'm not saying that a certificate "should"
depend on the protocol, but it "might" and you should accommodate that.

Once you start multiplexing many services all on a single port, it would
actually be surprising to find that they all have the exact same security
requirements and can all use the same certificates and keys.

Mike

From asteingruebl@paypal-inc.com  Mon Aug 16 20:41:17 2010
Return-Path: <asteingruebl@paypal-inc.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 08B7E3A6843 for <tls@core3.amsl.com>; Mon, 16 Aug 2010 20:41:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.117
X-Spam-Level: 
X-Spam-Status: No, score=-5.117 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, DNS_FROM_RFC_BOGUSMX=1.482, RCVD_IN_DNSWL_MED=-4]
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 96+1-7cbmotP for <tls@core3.amsl.com>; Mon, 16 Aug 2010 20:41:15 -0700 (PDT)
Received: from den-mipot-001.corp.ebay.com (den-mipot-001.corp.ebay.com [216.113.175.152]) by core3.amsl.com (Postfix) with ESMTP id CE8B33A6842 for <tls@ietf.org>; Mon, 16 Aug 2010 20:41:15 -0700 (PDT)
DomainKey-Signature: s=ppinc; d=paypal-inc.com; c=nofws; q=dns; h=X-EBay-Corp:X-IronPort-AV:Received:Received:From:To:Date: Subject:Thread-Topic:Thread-Index:References:In-Reply-To: Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:acceptlanguage:Content-Type: Content-Transfer-Encoding:MIME-Version:X-CFilter; b=lEpvvgFxYcha61xUqf+Oy322ZtBmhnodbrIFyZ/TxHH4dZtSl4p2OPKp u1EZ9t5kO2SCJ1DpkWO4GpxUA8jKUdUmFX6t1w7n/jjjSv551tQ2XFWol Yro86VyJE+xDyDB;
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=paypal-inc.com; i=asteingruebl@paypal-inc.com; q=dns/txt; s=ppinc; t=1282016512; x=1313552512; h=from:to:date:subject:message-id:references:in-reply-to: content-transfer-encoding:mime-version; z=From:=20"Steingruebl,=20Andy"=20<asteingruebl@paypal-inc .com>|To:=20Adam=20Barth=20<ietf@adambarth.com>,=20"tls@i etf.org"=20<tls@ietf.org>|Date:=20Mon,=2016=20Aug=202010 =2021:41:50=20-0600|Subject:=20RE:=20[TLS]=20Request=20fo r=20review:=20Next=20Protocol=20Negotiation=20Extension |Message-ID:=20<5EE049BA3C6538409BBE6F1760F328ABEAE446A43 D@DEN-MEXMS-001.corp.ebay.com>|References:=20<AANLkTi=3D5 H_0hGzxMmfNU0hLS=3D5psW6J3c2to756OT--7@mail.gmail.com>=0D =0A=09<4C6978A3.1070404@pobox.com>=0D=0A=09<001301cb3d71$ 295b28f0$7c117ad0$@briansmith.org>=0D=0A=20<AANLkTi=3Dh8e xtMyA-U42XNdvhV4S0gUJFpnM7Pn5bu35F@mail.gmail.com> |In-Reply-To:=20<AANLkTi=3Dh8extMyA-U42XNdvhV4S0gUJFpnM7P n5bu35F@mail.gmail.com>|Content-Transfer-Encoding:=20quot ed-printable|MIME-Version:=201.0; bh=nhsY+siCaBGfbOaKQ0oINxEuXm2yBSaPr4F4e89wJQA=; b=cKrnMr0MFQYfT755XkifU2GGnRwJfb+bI18lm9ujYIPp5Mt+Qvc6n3Pl SphSt7hSA91wOBdsQQPWFDVGW6Ew1yw7Yt0cBjoowtAZbuqTjU/rJeYfN Z1MYkh0K47y2EPc;
X-EBay-Corp: Yes
X-IronPort-AV: E=Sophos;i="4.55,380,1278313200"; d="scan'208";a="71784493"
Received: from den-vtenf-001.corp.ebay.com (HELO DEN-MEXHT-001.corp.ebay.com) ([10.101.112.212]) by den-mipot-001.corp.ebay.com with ESMTP; 16 Aug 2010 20:41:51 -0700
Received: from DEN-MEXMS-001.corp.ebay.com ([10.241.16.228]) by DEN-MEXHT-001.corp.ebay.com ([10.241.17.52]) with mapi; Mon, 16 Aug 2010 21:41:50 -0600
From: "Steingruebl, Andy" <asteingruebl@paypal-inc.com>
To: Adam Barth <ietf@adambarth.com>, "tls@ietf.org" <tls@ietf.org>
Date: Mon, 16 Aug 2010 21:41:50 -0600
Thread-Topic: [TLS] Request for review: Next Protocol Negotiation Extension
Thread-Index: Acs9o2I8xh10kn2yQvKZWAGVI+UphwAGlRvQ
Message-ID: <5EE049BA3C6538409BBE6F1760F328ABEAE446A43D@DEN-MEXMS-001.corp.ebay.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C6978A3.1070404@pobox.com> <001301cb3d71$295b28f0$7c117ad0$@briansmith.org> <AANLkTi=h8extMyA-U42XNdvhV4S0gUJFpnM7Pn5bu35F@mail.gmail.com>
In-Reply-To: <AANLkTi=h8extMyA-U42XNdvhV4S0gUJFpnM7Pn5bu35F@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-CFilter: Scanned
X-Mailman-Approved-At: Mon, 16 Aug 2010 21:46:31 -0700
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 03:41:17 -0000

> -----Original Message-----
> From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf Of Ada=
m Barth
> Sent: Monday, August 16, 2010 5:30 PM

> It's hard for me to address your non-technical concerns.  The use of NPN =
for
> WebSockets is not in any way a fist shaking reaction to anything.  It's a
> technical solution to the following technical
> problem:
>=20
> 1) The client needs to be convinced that the server wishes to speak the
> WebSocket protocol.
>=20
> 2) The server needs to be convinced that the client wishes to speak the
> WebSocket protocol.
>=20
> If either party cannot be convinced of that fact, then we leave ourselves
> open to cross-protocol attacks, which is unacceptable in the deployment
> scenarios for WebSockets.

Is there an alternate way to describe this situation?  Maybe that there is =
a problem with WebSockets?  Are WebSockets always going to use TLS?  If not=
, don't we have exactly this same security exposure in that case without an=
y cure?   I admit to not being current on my WebSockets reading but the ori=
ginal specs didn't require TLS, and simply did an HTTP-upgrade to WebSocket=
s if the server supported it. =20

- Andy

From ekr@rtfm.com  Mon Aug 16 21:52:17 2010
Return-Path: <ekr@rtfm.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 2D39B3A67E5 for <tls@core3.amsl.com>; Mon, 16 Aug 2010 21:52:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.18
X-Spam-Level: 
X-Spam-Status: No, score=-101.18 tagged_above=-999 required=5 tests=[AWL=0.796, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=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 VlAR+kLR+VU4 for <tls@core3.amsl.com>; Mon, 16 Aug 2010 21:52:16 -0700 (PDT)
Received: from mail-bw0-f44.google.com (mail-bw0-f44.google.com [209.85.214.44]) by core3.amsl.com (Postfix) with ESMTP id E76133A67A4 for <tls@ietf.org>; Mon, 16 Aug 2010 21:52:15 -0700 (PDT)
Received: by bwz9 with SMTP id 9so2527571bwz.31 for <tls@ietf.org>; Mon, 16 Aug 2010 21:52:51 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.204.177.79 with SMTP id bh15mr4024220bkb.121.1282020771088; Mon, 16 Aug 2010 21:52:51 -0700 (PDT)
Received: by 10.204.7.70 with HTTP; Mon, 16 Aug 2010 21:52:51 -0700 (PDT)
In-Reply-To: <4C6A001C.3080305@pobox.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C6978A3.1070404@pobox.com> <001301cb3d71$295b28f0$7c117ad0$@briansmith.org> <AANLkTi=h8extMyA-U42XNdvhV4S0gUJFpnM7Pn5bu35F@mail.gmail.com> <4C6A001C.3080305@pobox.com>
Date: Mon, 16 Aug 2010 21:52:51 -0700
Message-ID: <AANLkTi=x1uECZkAOSNjDU4P4MK-_AyT6LYsXB9=3pogz@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
To: "Michael D'Errico" <mike-list@pobox.com>
Content-Type: multipart/alternative; boundary=0016e6d7effba7c805048dfdb8f1
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 04:52:17 -0000

--0016e6d7effba7c805048dfdb8f1
Content-Type: text/plain; charset=ISO-8859-1

Without taking a position on whether extensions are cheap or not,
I would observe that certificates can contain [extended] key usage
extensions, precisely to avoid e.g., a Web certificate being
used for a SIP server. So, I don't think Michael's concern here is
totally unfounded.

-Ekr



On Mon, Aug 16, 2010 at 8:21 PM, Michael D'Errico <mike-list@pobox.com>wrote:

> Adam Barth wrote:
>
>>
>> Why should the server's certificate vary depending on what the next
>> protocol is?  Your colleague Brian Smith appears to hold the opposite
>> belief.  Keep in mind that TLS extensions are cheap.  If that need
>> arises in the future, we design another next-protocol negotiation
>> extension to meet that need.
>>
>
> In the 7 years since RFC 3546, there have been only 17 TLS extensions
> defined.  I don't know what gave you the idea that they are "cheap."
> Each one needs to be carefully studied to determine how they interact
> with each other.
>
> So, no, we won't define one haphazardly.
>
> But to answer your question, I'm not saying that a certificate "should"
> depend on the protocol, but it "might" and you should accommodate that.
>
> Once you start multiplexing many services all on a single port, it would
> actually be surprising to find that they all have the exact same security
> requirements and can all use the same certificates and keys.
>
> Mike
>
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>

--0016e6d7effba7c805048dfdb8f1
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Without taking a position on whether extensions are cheap or not,=A0<div>I =
would observe that certificates can contain [extended] key usage</div><div>=
extensions, precisely to avoid e.g., a Web certificate being</div><div>used=
 for a SIP server. So, I don&#39;t think Michael&#39;s concern here is</div=
>
<div>totally unfounded.</div><div><br></div><div>-Ekr</div><div><br></div><=
div><br></div><div><br></div><div><div class=3D"gmail_quote">On Mon, Aug 16=
, 2010 at 8:21 PM, Michael D&#39;Errico <span dir=3D"ltr">&lt;<a href=3D"ma=
ilto:mike-list@pobox.com">mike-list@pobox.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;"><div class=3D"im">Adam Barth wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
<br>
Why should the server&#39;s certificate vary depending on what the next<br>
protocol is? =A0Your colleague Brian Smith appears to hold the opposite<br>
belief. =A0Keep in mind that TLS extensions are cheap. =A0If that need<br>
arises in the future, we design another next-protocol negotiation<br>
extension to meet that need.<br>
</blockquote>
<br></div>
In the 7 years since RFC 3546, there have been only 17 TLS extensions<br>
defined. =A0I don&#39;t know what gave you the idea that they are &quot;che=
ap.&quot;<br>
Each one needs to be carefully studied to determine how they interact<br>
with each other.<br>
<br>
So, no, we won&#39;t define one haphazardly.<br>
<br>
But to answer your question, I&#39;m not saying that a certificate &quot;sh=
ould&quot;<br>
depend on the protocol, but it &quot;might&quot; and you should accommodate=
 that.<br>
<br>
Once you start multiplexing many services all on a single port, it would<br=
>
actually be surprising to find that they all have the exact same security<b=
r>
requirements and can all use the same certificates and keys.<br>
<br>
Mike<div><div></div><div class=3D"h5"><br>
_______________________________________________<br>
TLS mailing list<br>
<a href=3D"mailto:TLS@ietf.org" target=3D"_blank">TLS@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/tls" target=3D"_blank">htt=
ps://www.ietf.org/mailman/listinfo/tls</a><br>
</div></div></blockquote></div><br></div>

--0016e6d7effba7c805048dfdb8f1--

From mike-list@pobox.com  Mon Aug 16 22:28:18 2010
Return-Path: <mike-list@pobox.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C666C3A6924 for <tls@core3.amsl.com>; Mon, 16 Aug 2010 22:28:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000,  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 xuuMugQDfj5N for <tls@core3.amsl.com>; Mon, 16 Aug 2010 22:28:17 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 1270E3A67E1 for <tls@ietf.org>; Mon, 16 Aug 2010 22:28:15 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 12B9ECD8DC; Tue, 17 Aug 2010 01:28:51 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=dZ+soaWYTpZJ 46B1hVcUChvAl8I=; b=Qbco1myV+usEyIl4yIr4b+JLFfCYYGLQcqvYIQPDcV45 7NaNYT4XgaK1gyhMReIcJsZFNlxn50rvgg3lvK7zM6cwBsOGU35B6noxeRADgB03 NdCbBogs03ecgQVl8iCbIav4QixHYzv4RyVqcNMPPcxbiGjPijsecUibUAx/wj8=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=yeMM87 loVO+HjG8DEiOKt3+IOnvrwMavjZxOZCo88XMiYT6u8TqEvDrExxM6w93XxCHklT 8/xoAyCJHeOhoZOQzAWe6OzWwU3RKCNUvLqQk0VVeFecu4rlXNbNCDLtbGUXkpxJ hwj40UvqAAEiQoNohqO6OvvOXYgfoTnjj0MAM=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id E486FCD8DB; Tue, 17 Aug 2010 01:28:48 -0400 (EDT)
Received: from iMac.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 29DA3CD8DA; Tue, 17 Aug 2010 01:28:46 -0400 (EDT)
Message-ID: <4C6A1E0C.9000006@pobox.com>
Date: Mon, 16 Aug 2010 22:28:44 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
To: Eric Rescorla <ekr@rtfm.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C6978A3.1070404@pobox.com> <001301cb3d71$295b28f0$7c117ad0$@briansmith.org> <AANLkTi=h8extMyA-U42XNdvhV4S0gUJFpnM7Pn5bu35F@mail.gmail.com> <4C6A001C.3080305@pobox.com> <AANLkTi=x1uECZkAOSNjDU4P4MK-_AyT6LYsXB9=3pogz@mail.gmail.com>
In-Reply-To: <AANLkTi=x1uECZkAOSNjDU4P4MK-_AyT6LYsXB9=3pogz@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 5037FB7C-A9C0-11DF-92FD-9056EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 05:28:19 -0000

In addition, we mustn't forget about those cipher suites that don't
use certificates.  There are TLS-PSK (pre-shared keys RFC 4279 and
RFC 5487) and TLS-SRP (secure remote password RFC 5054).

It is likely that each service would have its own database of user
names and passwords (I hope!), so you would have to tell the server
which service you want to use before it can negotiate with you.

Mike



Eric Rescorla wrote:
> Without taking a position on whether extensions are cheap or not, 
> I would observe that certificates can contain [extended] key usage
> extensions, precisely to avoid e.g., a Web certificate being
> used for a SIP server. So, I don't think Michael's concern here is
> totally unfounded.
> 
> -Ekr
> 
> 
> 
> On Mon, Aug 16, 2010 at 8:21 PM, Michael D'Errico <mike-list@pobox.com 
> <mailto:mike-list@pobox.com>> wrote:
> 
>     Adam Barth wrote:
> 
> 
>         Why should the server's certificate vary depending on what the next
>         protocol is?  Your colleague Brian Smith appears to hold the
>         opposite
>         belief.  Keep in mind that TLS extensions are cheap.  If that need
>         arises in the future, we design another next-protocol negotiation
>         extension to meet that need.
> 
> 
>     In the 7 years since RFC 3546, there have been only 17 TLS extensions
>     defined.  I don't know what gave you the idea that they are "cheap."
>     Each one needs to be carefully studied to determine how they interact
>     with each other.
> 
>     So, no, we won't define one haphazardly.
> 
>     But to answer your question, I'm not saying that a certificate "should"
>     depend on the protocol, but it "might" and you should accommodate that.
> 
>     Once you start multiplexing many services all on a single port, it would
>     actually be surprising to find that they all have the exact same
>     security
>     requirements and can all use the same certificates and keys.
> 
>     Mike

From geoffk@geoffk.org  Tue Aug 17 02:58:13 2010
Return-Path: <geoffk@geoffk.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D2E0B3A691B for <tls@core3.amsl.com>; Tue, 17 Aug 2010 02:58:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 ruznPQ2hQ2u3 for <tls@core3.amsl.com>; Tue, 17 Aug 2010 02:58:13 -0700 (PDT)
Received: from dragaera.releasedominatrix.com (dragaera.releasedominatrix.com [216.129.118.138]) by core3.amsl.com (Postfix) with ESMTP id 5D50E3A68ED for <tls@ietf.org>; Tue, 17 Aug 2010 02:58:11 -0700 (PDT)
Received: by dragaera.releasedominatrix.com (Postfix, from userid 501) id 9790533D16C; Tue, 17 Aug 2010 09:58:45 +0000 (UTC)
Sender: geoffk@localhost.localdomain
To: Adam Barth <ietf@adambarth.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C6978A3.1070404@pobox.com> <001301cb3d71$295b28f0$7c117ad0$@briansmith.org> <AANLkTi=h8extMyA-U42XNdvhV4S0gUJFpnM7Pn5bu35F@mail.gmail.com>
From: Geoffrey Keating <geoffk@geoffk.org>
Date: 17 Aug 2010 02:58:45 -0700
In-Reply-To: <AANLkTi=h8extMyA-U42XNdvhV4S0gUJFpnM7Pn5bu35F@mail.gmail.com>
Message-ID: <m2fwydlfvu.fsf@localhost.localdomain>
Lines: 6
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 09:58:13 -0000

This discussion would be much simpler if WebSockets had a port
assigned to it that was not 443.  We could then focus on the questions
of how to verify that a MITM is not switching ports, and how (and
whether) to protect servers on ports that are reserved for another
purpose, rather than the questions involved in multiplexing existing
and new protocols on the same port.

From mrex@sap.com  Tue Aug 17 07:00:35 2010
Return-Path: <mrex@sap.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 4F15A3A69E1 for <tls@core3.amsl.com>; Tue, 17 Aug 2010 07:00:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.83
X-Spam-Level: 
X-Spam-Status: No, score=-9.83 tagged_above=-999 required=5 tests=[AWL=0.419,  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 RtN+VIFeXPwk for <tls@core3.amsl.com>; Tue, 17 Aug 2010 07:00:34 -0700 (PDT)
Received: from smtpde02.sap-ag.de (smtpde02.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id 70C863A69E4 for <tls@ietf.org>; Tue, 17 Aug 2010 07:00:33 -0700 (PDT)
Received: from mail.sap.corp by smtpde02.sap-ag.de (26) with ESMTP id o7HE12UN022551 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 17 Aug 2010 16:01:02 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201008171401.o7HE11xx012856@fs4113.wdf.sap.corp>
To: geoffk@geoffk.org (Geoffrey Keating)
Date: Tue, 17 Aug 2010 16:01:01 +0200 (MEST)
In-Reply-To: <m2fwydlfvu.fsf@localhost.localdomain> from "Geoffrey Keating" at Aug 17, 10 02:58:45 am
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal07
X-SAP: out
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 14:00:35 -0000

Geoffrey Keating wrote:
> 
> This discussion would be much simpler if WebSockets had a port
> assigned to it that was not 443.  We could then focus on the questions
> of how to verify that a MITM is not switching ports, and how (and
> whether) to protect servers on ports that are reserved for another
> purpose, rather than the questions involved in multiplexing existing
> and new protocols on the same port.

Motivations for choice of port 443 appear to be:

 - the ability to sneak by existing firewalls that block everything
   besides 80/443 and deep-inspect 80.

 - the ability to use an existing onion-router setup (Tor) for more
   than just HTTPS traffic.

and I think they're both quite attractive.

I don't know where you see an MITM here.  Unless the client
goofs the server authentication there is no possibility for an MITM.
(at least after plugging the TLS renegotiation flaw, where a
server could decide to force a client into renegotiation and patch
the client's renegotiation handshake through to a completely
different server.)

-Martin




From n.mavrogiannopoulos@gmail.com  Tue Aug 17 07:36:23 2010
Return-Path: <n.mavrogiannopoulos@gmail.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 64ABC3A68C6 for <tls@core3.amsl.com>; Tue, 17 Aug 2010 07:36:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
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 6-qJujV4+ntp for <tls@core3.amsl.com>; Tue, 17 Aug 2010 07:36:22 -0700 (PDT)
Received: from mail-qy0-f172.google.com (mail-qy0-f172.google.com [209.85.216.172]) by core3.amsl.com (Postfix) with ESMTP id 82ED43A688F for <tls@ietf.org>; Tue, 17 Aug 2010 07:36:22 -0700 (PDT)
Received: by qyk1 with SMTP id 1so711086qyk.10 for <tls@ietf.org>; Tue, 17 Aug 2010 07:36:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=vN0FbB7C5Fcvyk0CnscpsMC9n5xSwOhCqY7ZpNpx9lg=; b=xoC1nVi1tONhPytYMiVI9pHihXDgJBMiWoiEEMygVwWssj3J4jma7Mx8uiaAke1vZN FYUyMWSZmF2gvgP2EAeCRjbxT4/5gyfVxB+FzR0XjPY7dJdKChcmgBEGX5vB185MABCC YqZd8Zddu7agrFvDsEnHU5khPxv6iAIZGey7k=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=LGb8AlecmJfCDeAimUvri7SSxtG0AAlmmVN8leFtMGg+OoxP4F3oOKsrjtNVPPdgSf U0U6cfui03rDQiY3Vat3UEAOnWWlXVCvdrbfzBdlVAKwf/jJwFqUnvwbkn/GYrUZhyYB KQQhArX70j9hqXIc18/uj1BcOCenvivscAFE8=
MIME-Version: 1.0
Received: by 10.229.233.76 with SMTP id jx12mr4862342qcb.210.1282055817763; Tue, 17 Aug 2010 07:36:57 -0700 (PDT)
Sender: n.mavrogiannopoulos@gmail.com
Received: by 10.229.31.205 with HTTP; Tue, 17 Aug 2010 07:36:57 -0700 (PDT)
In-Reply-To: <AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C69938A.9080808@gnutls.org> <AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com>
Date: Tue, 17 Aug 2010 16:36:57 +0200
X-Google-Sender-Auth: RBL7twerZ4oJeB1xM6MT0WI2f8A
Message-ID: <AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com>
From: Nikos Mavrogiannopoulos <nmav@gnutls.org>
To: Adam Langley <agl@google.com>
Content-Type: text/plain; charset=UTF-8
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 14:36:23 -0000

On Mon, Aug 16, 2010 at 9:47 PM, Adam Langley <agl@google.com> wrote:

>> Without getting on the details, why do that on the TLS protocol? This
>> looks like something to be done on the application protocol.
> Our main reason is latency: we cannot afford a round trip.

If latency is the issue then what if the extra information is sent
together with but prepended to the client hello? Generally talking I
think that TLS is the security provider layer and should remain like
that. Extensions to it should be relevant to TLS and not to some
application protocol on top of it.  For the same reason you don't
extend the IP protocol for what you want to achieve here, you
shouldn't want to extend TLS as well. Layering might not save you a
round-trip but will keep the TLS protocol simple to understand and
extend. There are of course exceptions that the impact of crossing
layers is too good to ignore... but is this such a case?

regards,
Nikos

From marsh@extendedsubset.com  Tue Aug 17 09:30:13 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C65C53A6898 for <tls@core3.amsl.com>; Tue, 17 Aug 2010 09:30:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[AWL=0.622,  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 Es11W-xbvygC for <tls@core3.amsl.com>; Tue, 17 Aug 2010 09:30:13 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id E4C553A6844 for <tls@ietf.org>; Tue, 17 Aug 2010 09:30:12 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OlP3o-000B45-2A for tls@ietf.org; Tue, 17 Aug 2010 16:30:48 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 3D1DC6091 for <tls@ietf.org>; Tue, 17 Aug 2010 16:30:47 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX19EUYTwN571whTBgZuqZ+5EbVRwzjM4YDY=
Message-ID: <4C6AB936.1070801@extendedsubset.com>
Date: Tue, 17 Aug 2010 11:30:46 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: tls@ietf.org
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>	<4C69938A.9080808@gnutls.org>	<AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com> <AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com>
In-Reply-To: <AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 16:30:13 -0000

On 08/17/2010 09:36 AM, Nikos Mavrogiannopoulos wrote:
>  Layering might not save you a
> round-trip but will keep the TLS protocol simple to understand and
> extend. There are of course exceptions that the impact of crossing
> layers is too good to ignore... but is this such a case?

It also sounds like one could get 90% there just by doing session 
resumption. The examples given for WebSockets don't seem particularly 
latency-sensitive, at least not on the initial connection (e.g., like a 
chat client). For stuff running in a browser, isn't it reasonable to 
expect that the initial page load has already set up a resumable TLS 
session?

I'm all for experimenting with new and improved protocols, but do it on 
another port, and call it something else if it's not intended to be 
reasonably conformant and interoperable. (Why does WebSockets send 
garbage after a GET request?)

- Marsh

From ietf@adambarth.com  Tue Aug 17 09:49:43 2010
Return-Path: <ietf@adambarth.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 715663A680D for <tls@core3.amsl.com>; Tue, 17 Aug 2010 09:49:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.745
X-Spam-Level: 
X-Spam-Status: No, score=-1.745 tagged_above=-999 required=5 tests=[AWL=0.231,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, WEIRD_PORT=0.001]
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 9WvCymVuxNWn for <tls@core3.amsl.com>; Tue, 17 Aug 2010 09:49:41 -0700 (PDT)
Received: from mail-ww0-f44.google.com (mail-ww0-f44.google.com [74.125.82.44]) by core3.amsl.com (Postfix) with ESMTP id 6E3F03A67FE for <tls@ietf.org>; Tue, 17 Aug 2010 09:49:41 -0700 (PDT)
Received: by wwi17 with SMTP id 17so1084359wwi.13 for <tls@ietf.org>; Tue, 17 Aug 2010 09:50:16 -0700 (PDT)
Received: by 10.227.157.4 with SMTP id z4mr5902739wbw.43.1282063816187; Tue, 17 Aug 2010 09:50:16 -0700 (PDT)
Received: from mail-pw0-f44.google.com (mail-pw0-f44.google.com [209.85.160.44]) by mx.google.com with ESMTPS id a1sm6655224wbb.2.2010.08.17.09.50.14 (version=SSLv3 cipher=RC4-MD5); Tue, 17 Aug 2010 09:50:15 -0700 (PDT)
Received: by pwi1 with SMTP id 1so8432pwi.31 for <tls@ietf.org>; Tue, 17 Aug 2010 09:50:13 -0700 (PDT)
Received: by 10.142.214.16 with SMTP id m16mr6072117wfg.5.1282063813575; Tue, 17 Aug 2010 09:50:13 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.60.18 with HTTP; Tue, 17 Aug 2010 09:49:52 -0700 (PDT)
In-Reply-To: <4C6AB936.1070801@extendedsubset.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C69938A.9080808@gnutls.org> <AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com> <AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com> <4C6AB936.1070801@extendedsubset.com>
From: Adam Barth <ietf@adambarth.com>
Date: Tue, 17 Aug 2010 09:49:52 -0700
Message-ID: <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com>
To: tls@ietf.org
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 16:49:43 -0000

On Mon, Aug 16, 2010 at 6:33 PM, Martin Rex <mrex@sap.com> wrote:
> Michael D'Errico wrote:
>> One problem is that the server is not made aware of the next protocol
>> until just before the Finished messages are exchanged. =A0By delaying
>> this information, the server can not use the protocol as part of its
>> certificate selection process.
>
> Personally, I very much dislike the idea to send the new message type
> _before_ rather than after the finished message. =A0In particular in
> combination with the unusal behaviour specified for session resume.

Please read the thread before replying.  Adam Langley has said that he
plans to change the session resume behavior in the next draft.  As for
whether the information is before or after the finish message, I'm not
sure it makes too much of a difference w.r.t. security.  I think the
considerations are mostly performance (i.e., not adding a round-trip).

>> If the response to this is "use SNI" then you just leaked the informatio=
n
>> you are trying to hide by delaying the next protocol until after CCS.
>
> So far SNI is blind about TCP ports, it is only about hostnames.
>
> I do remember serious concerns from the network operations people
> when IPsec put the TCP port into the encapsulated payload because
> they would no longer be able to accumulate meaningful per-protocol
> statistics and discriminate against specific protocols between
> two hosts. =A0In particular, they wanted a requirement that the TCP port
> must remain visible on the outside and that implementations
> would have to ensure that the TCP port on the outside would not get
> simply ignored if the TCP port value inside the encapsulated payload
> specified some other port.
>
> Somehow it looks like this approach is going up two protocol layers
> to escape the attention and influence of the network operations people. :=
)

The ability to multiplex WebSockets and HTTPS on the same port is a
requirement in the HyBi working group.  If you don't think that's a
good idea, you should raise those concerns in the HyBi working group.
As things stand, that issue is independent of this TLS extension.

On Mon, Aug 16, 2010 at 8:21 PM, Michael D'Errico <mike-list@pobox.com> wro=
te:
> Adam Barth wrote:
>> Why should the server's certificate vary depending on what the next
>> protocol is? =A0Your colleague Brian Smith appears to hold the opposite
>> belief. =A0Keep in mind that TLS extensions are cheap. =A0If that need
>> arises in the future, we design another next-protocol negotiation
>> extension to meet that need.
>
> In the 7 years since RFC 3546, there have been only 17 TLS extensions
> defined. =A0I don't know what gave you the idea that they are "cheap."
> Each one needs to be carefully studied to determine how they interact
> with each other.
>
> So, no, we won't define one haphazardly.

I think you misunderstand my message.  I wasn't suggesting that we
define TLS extensions haphazardly.  Rather, I was saying we're be
better off designing a set or relatively independent extensions that
each solve a particular problem well rather than an "all-sing,
all-dance" extension that attempts to address the kitchen sink.

> But to answer your question, I'm not saying that a certificate "should"
> depend on the protocol, but it "might" and you should accommodate that.
>
> Once you start multiplexing many services all on a single port, it would
> actually be surprising to find that they all have the exact same security
> requirements and can all use the same certificates and keys.

The key problem we're trying to solve with this extension is for the
client and server to agree on the semantics of the bytes traveling
over the encrypted tunnel.  In particular, they each want the other to
confirm that those bytes are to be interpreted according to a
particular protocol.  This is an important security property (e.g.,
for WebSockets) to avoid cross-protocol vulnerabilities.

One can certainly imagine designing a TLS extension to solve the
problem of a server not knowing which certificate it should use (in
fact, SNI is one step in that direction).  However, that problem not
the problem we're trying to solve with this extension.  If we later
find that we're having that problem, a more aesthetic solution would
be to design a TLS extension to solve that problem, which would have
value both in conjunction with NPN and independently.

On Mon, Aug 16, 2010 at 9:52 PM, Eric Rescorla <ekr@rtfm.com> wrote:
> Without taking a position on whether extensions are cheap or not,
> I would observe that certificates can contain [extended] key usage
> extensions, precisely to avoid e.g., a Web certificate being
> used for a SIP server. So, I don't think Michael's concern here is
> totally unfounded.

Indeed.  However, it's a separable concern from the problem of the
client and server agreeing on the semantics of bytes exchanged over
the encrypted tunnel.  If we wish to solve that problem, we should do
so in a separate extension.

On Mon, Aug 16, 2010 at 10:28 PM, Michael D'Errico <mike-list@pobox.com> wr=
ote:
> In addition, we mustn't forget about those cipher suites that don't
> use certificates. =A0There are TLS-PSK (pre-shared keys RFC 4279 and
> RFC 5487) and TLS-SRP (secure remote password RFC 5054).
>
> It is likely that each service would have its own database of user
> names and passwords (I hope!), so you would have to tell the server
> which service you want to use before it can negotiate with you.

See above.

On Tue, Aug 17, 2010 at 7:01 AM, Martin Rex <mrex@sap.com> wrote:
> Geoffrey Keating wrote:
>> This discussion would be much simpler if WebSockets had a port
>> assigned to it that was not 443. =A0We could then focus on the questions
>> of how to verify that a MITM is not switching ports, and how (and
>> whether) to protect servers on ports that are reserved for another
>> purpose, rather than the questions involved in multiplexing existing
>> and new protocols on the same port.
>
> Motivations for choice of port 443 appear to be:
>
> =A0- the ability to sneak by existing firewalls that block everything
> =A0 besides 80/443 and deep-inspect 80.
>
> =A0- the ability to use an existing onion-router setup (Tor) for more
> =A0 than just HTTPS traffic.
>
> and I think they're both quite attractive.

Assigning a port to WebSockets does not solve the security problem we
need to solve, as discussed in my previous email.

> I don't know where you see an MITM here. =A0Unless the client
> goofs the server authentication there is no possibility for an MITM.
> (at least after plugging the TLS renegotiation flaw, where a
> server could decide to force a client into renegotiation and patch
> the client's renegotiation handshake through to a completely
> different server.)

Cross-protocol vulnerabilities are not related to man-in-the-middle
vulnerabilities.  I know they're not a class of vulnerabilities that
this group routinely thinks about, so I'll elaborate a bit.

Here's an example of an HTTP -> SMTP cross-protocol vulnerability.
Eve is going to abuse Alice's browser to send spam via Bob's server.

1) Suppose Alice visit's Eve's web site with a web browser.
2) Suppose Bob operates an SMTP server on bob.com on port 25.
3) Eve's web site returns to Alice's browser an HTML document
containing a <form> element that points to http://bob.com:25/.
4) Script from Eve's web site instructs Alice's browser to submit the form.
5) Alice's browser sends an HTTP POST request to bob.com on port 25.
6) Bob misinterprets the HTTP POST request as an SMTP session and
finds instructions in the payload of the request to send spam to
Charlie.

Notice that Alice and Bob believe they are speaking different
protocols over the same socket.  Alice believes they are speaking HTTP
whereas Bob believes they are speaking SMTP.  Notice that assigning a
specific port to SMTP (in this case port 25) did not prevent the
attack.

Q) Why doesn't Eve connect directly to bob.com on port 25?  What's the
point of using Alice's browser?
A) SMTP servers commonly use IP-based reputation as part of their spam
filtering algorithms.  By sending the request via Alice's browser, Eve
uses Alice's IP reputation, which is likely to be better than her own.

Q) Isn't this some strange interaction between HTTP and SMTP?  I don't
think any other protocols will have this issue.
A) Over the decade that browsers have been widely deployed, we've seen
a rather large variety of these sorts of cross-protocol attacks.  (I
can give you some more pointers if you want to see them.)  When adding
a new protocol to the browser (e.g., WebSockets), we want to be sure
we're not adding more attack surface for cross-protocol attacks.
Avoiding cross-protocol attacks is a requirement in the HyBi working
group.

Q) Why aren't attackers using this trick all the time to spend tons of spam=
?
A) The browser defends against these attacks by blacklisting ports.
If you try to submit a form to port 25, you'll get an error telling
you that port is forbidden.  This is a pretty crappy solution, and
certainly not a road we want to go down for new protocols.  For
example, every few years, we find another one of these vulnerabilities
and have to blacklist another port.  :(

On Tue, Aug 17, 2010 at 7:36 AM, Nikos Mavrogiannopoulos
<nmav@gnutls.org> wrote:
> On Mon, Aug 16, 2010 at 9:47 PM, Adam Langley <agl@google.com> wrote:
>>> Without getting on the details, why do that on the TLS protocol? This
>>> looks like something to be done on the application protocol.
>> Our main reason is latency: we cannot afford a round trip.
>
> If latency is the issue then what if the extra information is sent
> together with but prepended to the client hello?

I'm not sure how that would improve latency.  We still need to
complete the TLS handshake before sending data over the encrypted
tunnel.  As currently designed, the extension doesn't add any
additional latency to the handshake.

> Generally talking I
> think that TLS is the security provider layer and should remain like
> that. Extensions to it should be relevant to TLS and not to some
> application protocol on top of it.

That's a pretty narrow view of TLS.  Certainly not everyone will want
to use this extension.  In fact, I suspect it will only be used by the
narrow subset of folks who are interested in defending against
cross-protocol vulnerabilities.  However, that's one of the great
benefits of modularity in protocol design: you can pick and choose the
extensions that are appropriate for your use of the protocol.

> For the same reason you don't
> extend the IP protocol for what you want to achieve here, you
> shouldn't want to extend TLS as well.

The TCP protocol already has a similar extension point (i.e., ports).
However, ports were not designed with cross-protocol vulnerabilities
in mind and, unfortunately, are not sufficient security primitives.
Believe me, I would much rather use TCP ports if they worked.

> Layering might not save you a
> round-trip but will keep the TLS protocol simple to understand and
> extend. There are of course exceptions that the impact of crossing
> layers is too good to ignore... but is this such a case?

We have an approach to defending against cross-protocol attacks at a
higher layer of the stack, but it's extremely hacky.  Basically, you
make the server do some esoteric calculation based on some nonces sent
by the client.  The hope is that no existing server would do that
esoteric calculation and, therefore, if the server gets the right
answer, it must be speaking WebSockets.

It's hard to make a convincing security argument why that approach
works.  It's more like a wing and a prayer.  NPN is the best approach
I've seen for defending against cross-protocol attacks.  I believe
using a TLS extension to solve this security problem is too good a
design to ignore.

On Tue, Aug 17, 2010 at 9:30 AM, Marsh Ray <marsh@extendedsubset.com> wrote=
:
> It also sounds like one could get 90% there just by doing session
> resumption. The examples given for WebSockets don't seem particularly
> latency-sensitive, at least not on the initial connection (e.g., like a c=
hat
> client).

Latency is an important considerations for WebSockets.  There's been a
lot of discussion about how to optimize latency in the HyBi working
group.

> For stuff running in a browser, isn't it reasonable to expect that
> the initial page load has already set up a resumable TLS session?

We expect it to be very common for a web page to make a WebSocket
connection to a different host.  For example, one important use case
for WebSockets is chat-like functionality on a web page.  Facebook
chat, as an example, operates on a separate host name than the main
Facebook web site.  In those cases, we won't have a TLS session to
resume.

> I'm all for experimenting with new and improved protocols, but do it on
> another port, and call it something else if it's not intended to be
> reasonably conformant and interoperable.

These are issues for the HyBi working group.  I can tell you that
browser vendors which to implement an interoperable WebSocket
protocol.  I suspect you'll find it difficult to convince the HyBi
working group on these points.

> (Why does WebSockets send garbage after a GET request?)

That's part of the hacky non-TLS defense against cross-protocol
attacks.  The version that uses a TLS-based handshake doesn't have any
of that garbage (to use your term).

Adam

From brian@briansmith.org  Tue Aug 17 10:12:25 2010
Return-Path: <brian@briansmith.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D9B2D3A6988 for <tls@core3.amsl.com>; Tue, 17 Aug 2010 10:12:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.889
X-Spam-Level: 
X-Spam-Status: No, score=-1.889 tagged_above=-999 required=5 tests=[AWL=0.710,  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 LmPqbfngu3Hd for <tls@core3.amsl.com>; Tue, 17 Aug 2010 10:12:24 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 72E1C3A6AD8 for <tls@ietf.org>; Tue, 17 Aug 2010 10:12:24 -0700 (PDT)
Received: from T60 (unknown [98.200.150.199]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 76F58509DD; Tue, 17 Aug 2010 13:12:53 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: "'Adam Barth'" <ietf@adambarth.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <AANLkTinpTAvT=btYzc=eufXgGDQQv=K8_8FNOG5y+3aJ@mail.gmail.com>
In-Reply-To: <AANLkTinpTAvT=btYzc=eufXgGDQQv=K8_8FNOG5y+3aJ@mail.gmail.com>
Date: Tue, 17 Aug 2010 12:12:53 -0500
Message-ID: <000901cb3e2f$70d9d460$528d7d20$@briansmith.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQGWKjOVVsWlkADqERmWe4yahRG/kwJB5RywAv5h3+4=
Content-Language: en-us
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 17:12:26 -0000

Eric Rescorla wrote:
> The TLS standard (RFC 5246) defines the rules for the assignment of
> code points in these ranges. Extension types may be defined by
> "IETF Consensus" (this requires an IETF LC). Handshake types must be
> defined by "Standards Action" (this means a standards track RFC). 
> This means that as a practical matter NGN as currently constituted will
> need to go through the TLS WG in order to reserve the code point
> through the IETF process. (To state the obvious, vendors can obviously
> grab a code point and say "that's NPN", but I'm assuming the intent is
> to actually follow the IETF standards process here.)

RFC 4680 is an example of an eisting standards-track extension that was
explicitly designed to pass application-level data in the handshake. So, NPN
would not be breaking any new ground.

NPN can be reformulated using RFC 4680 if it doesn't make it onto the
standards track. If it is desirable (as I believe it is) to move the
SupplementalData messages to after the ChangeCipherSpec or Finished messages
for NPN then another TLS extension can be used to negotiate that, and that
extension doesn't need to be on the standards track either.  I am hoping to
submit a draft soon which allows the client to ask for many (most?)
handshake messages to be sent after the Finished messages anyway.

Regards,
Brian


From jsalowey@cisco.com  Tue Aug 17 10:42:07 2010
Return-Path: <jsalowey@cisco.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 62E5D3A6B2B for <tls@core3.amsl.com>; Tue, 17 Aug 2010 10:42:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -110.076
X-Spam-Level: 
X-Spam-Status: No, score=-110.076 tagged_above=-999 required=5 tests=[AWL=0.523, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, 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 MHVYMXeqyOBx for <tls@core3.amsl.com>; Tue, 17 Aug 2010 10:42:06 -0700 (PDT)
Received: from sj-iport-5.cisco.com (sj-iport-5.cisco.com [171.68.10.87]) by core3.amsl.com (Postfix) with ESMTP id 5B11A3A6B14 for <tls@ietf.org>; Tue, 17 Aug 2010 10:41:33 -0700 (PDT)
Authentication-Results: sj-iport-5.cisco.com; dkim=neutral (message not signed) header.i=none
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AgUFAE9makyrR7H+/2dsb2JhbACTJ40XcaVJnAmFNwSEMYgf
X-IronPort-AV: E=Sophos;i="4.55,384,1278288000"; d="scan'208";a="241506129"
Received: from sj-core-2.cisco.com ([171.71.177.254]) by sj-iport-5.cisco.com with ESMTP; 17 Aug 2010 17:41:24 +0000
Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-2.cisco.com (8.13.8/8.14.3) with ESMTP id o7HHfOE3027770 for <tls@ietf.org>; Tue, 17 Aug 2010 17:41:24 GMT
Received: from xmb-sjc-225.amer.cisco.com ([128.107.191.38]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.4675);  Tue, 17 Aug 2010 10:41:25 -0700
X-Mimeole: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Tue, 17 Aug 2010 10:41:21 -0700
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE50B3B5F88@xmb-sjc-225.amer.cisco.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: DISCUSS on Client Certificate URLs Section of 4366-bis
Thread-Index: Acs+M2fPgHxKiw1UQuqKhSewmPf0lA==
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: <tls@ietf.org>
X-OriginalArrivalTime: 17 Aug 2010 17:41:25.0026 (UTC) FILETIME=[69D8C820:01CB3E33]
Subject: [TLS] DISCUSS on Client Certificate URLs Section of 4366-bis
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 17:42:07 -0000

Alexey logged some DISCUSS comments on section 5 of
draft-ietf-tls-rfc4366-bis-10 during IESG review.  Below are the
comments and the proposed resolutions.  Please review and send comments
to the list.=20

Thanks,

Joe=20

1) Comment 1

"  The TLS server is not required to follow HTTP redirects when
   retrieving the certificates or certificate chain.

This is not strong enough for interoperability. Either redirects MUST be
followed, or they MUST NOT be followed. Alternatively there need to be
some
explanation of why SHOULD (or even MAY) is appropriate here.

   The URLs used in
   this extension SHOULD therefore be chosen not to depend on such
   redirects."

It seems that since we recommend not depending upon redirects so I
propose:

"The TLS server MUST NOT follow HTTP redirects when retrieving the
certificates or certificate chain. The URLs used in this extension MUST
NOT be chosen to depend on such redirects."

If we want to leave the possibility for redirects then we need to text
to describe when redirects are allowed. =20

2) "If a server encounters an unreasonable delay in obtaining

This is not very specific. Can a minimal value be recommended here?

   certificates in a given CertificateURL, it SHOULD time out and signal
   a certificate_unobtainable(111) error alert.

What are possible alternatives to the SHOULD?

   This alert MAY be fatal;
   for example, if client authentication is required by the server for
   the handshake to continue. "

I propose the following text to resolve this:

"If a server is unable to obtain certificates in a given CertificateURL,
it MUST send a fatal unrecognized_name(112) alert if it requires the
certificates to complete the handshake.  If the server does not require
the certificates then the server continues the handshake.  The server
MAY send a warning level alert in this case.  Clients receiving such an
alert SHOULD log the alert and continue with the handshake if possible."

From jsalowey@cisco.com  Tue Aug 17 10:58:03 2010
Return-Path: <jsalowey@cisco.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 40FCF3A67EB for <tls@core3.amsl.com>; Tue, 17 Aug 2010 10:58:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -110.12
X-Spam-Level: 
X-Spam-Status: No, score=-110.12 tagged_above=-999 required=5 tests=[AWL=0.479, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, 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 FnhkCquWPmvD for <tls@core3.amsl.com>; Tue, 17 Aug 2010 10:58:02 -0700 (PDT)
Received: from sj-iport-5.cisco.com (sj-iport-5.cisco.com [171.68.10.87]) by core3.amsl.com (Postfix) with ESMTP id 591813A659C for <tls@ietf.org>; Tue, 17 Aug 2010 10:58:02 -0700 (PDT)
Authentication-Results: sj-iport-5.cisco.com; dkim=neutral (message not signed) header.i=none
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AgUFAP5qakyrR7H+/2dsb2JhbACTKI0XcaUynAuFNwSEMYgf
X-IronPort-AV: E=Sophos;i="4.56,223,1280707200"; d="scan'208";a="241515975"
Received: from sj-core-2.cisco.com ([171.71.177.254]) by sj-iport-5.cisco.com with ESMTP; 17 Aug 2010 17:58:38 +0000
Received: from xbh-sjc-231.amer.cisco.com (xbh-sjc-231.cisco.com [128.107.191.100]) by sj-core-2.cisco.com (8.13.8/8.14.3) with ESMTP id o7HHwcBw014118 for <tls@ietf.org>; Tue, 17 Aug 2010 17:58:38 GMT
Received: from xmb-sjc-225.amer.cisco.com ([128.107.191.38]) by xbh-sjc-231.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.4675);  Tue, 17 Aug 2010 10:58:38 -0700
X-Mimeole: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Tue, 17 Aug 2010 10:58:35 -0700
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE50B3B5FCC@xmb-sjc-225.amer.cisco.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: DISCUSS on Server Name Indication of 4366-bis
Thread-Index: Acs+NdAQLp71OU3wQKSJ+MThBI7xXg==
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: <tls@ietf.org>
X-OriginalArrivalTime: 17 Aug 2010 17:58:38.0131 (UTC) FILETIME=[D1A01830:01CB3E35]
Subject: [TLS] DISCUSS on Server Name Indication of 4366-bis
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 17:58:03 -0000

Alexey and Peter logged some DISCUSS comments on section 3 of
draft-ietf-tls-rfc4366-bis-10 during IESG review.  Below are the
comments and the proposed resolutions.  Please review and send comments
to the list.=20

Thanks,

Joe

1) From Peter
" The "HostName" type seems to be underspecified. Is this limited to a
"traditional domain name", i.e., a fully qualified domain name all of
whose
labels are "LDH labels" (as defined in RFC 5890)? Or can the HostName
type be an
"internationalized domain name", i.e., a DNS domain name at least one of
whose
labels is a "U-label" or "A-label" (as defined in RFC 5890)? As far as I
can
see, the description "represented as a byte string using ASCII encoding
without
a trailing dot" does not exclude IDNs containing A-labels. If the intent
is to
support IDNs, then it would be good to note that fact, because otherwise
eliminating the UTF-8 representation of the HostName type might be
considered a
step backward (unless there are plans to define a new i18nHostName
type)."

Proposed resolution: add the following to the end of the paragraph along
with a normative reference to RFC 5890:
=20
"This allows the support of internationalized domain names through the
use of A-labels defined in [RFC 5890]."

2) From Alexey

"3. Server Name Indication

      struct {
          NameType name_type;
          select (name_type) {
              case host_name: HostName;
          } name;
      } ServerName;

      enum {
          host_name(0), (255)
      } NameType;

      opaque HostName<1..2^16-1>;

      struct {
          ServerName server_name_list<1..2^16-1>
      } ServerNameList;

 [...]

   However, for backward compatibility, all future NameTypes
   MUST begin with a 16-bit length field.

Can you please clarify what this means?
I am looking at both ServerName and
NameType definitions and I don't see what you are talking about."

Proposed resolution: replace  " However, for backward compatibility, all
future NameTypes MUST begin with a 16-bit length field." With:

"The data structure associated with the host_name NameType is a
variable-length vector that begins with a 16-bit length. For backward
compatibility, all future data structures associated with new NameTypes
MUST begin with a 16-bit length field."



From mike-list@pobox.com  Tue Aug 17 11:00:51 2010
Return-Path: <mike-list@pobox.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 6EAB23A6880 for <tls@core3.amsl.com>; Tue, 17 Aug 2010 11:00:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000,  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 m8Iyaf+gjCxv for <tls@core3.amsl.com>; Tue, 17 Aug 2010 11:00:49 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 696F53A67EB for <tls@ietf.org>; Tue, 17 Aug 2010 11:00:49 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 17E50CEAF3; Tue, 17 Aug 2010 14:01:24 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=sli/izAPDopa jY3RIB1Bt2durq8=; b=oTaW5lxRkswNNDvonmBe+RypedQ3BOFe1xT//NzReOZE 6TK4+hGYCdyFsbaYI4BnzRMJlLhCBssq4N3JgiiSNp5Br4rrxwnHNvSmyVFqcfhi /E2vPhpJdMo7+veZ7H2Q+9gFVxmfXHTrKp1dv4iRYBy411OAyWF2kBPteg70CLE=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=XLCP4C YXtf9fukGLYQsRLU97nqVuykXAnD9gQsBFNTsPYlE29FURds1SkDpziLnnoQdB5c INFjX2j4klLqcqbxno5xfeRUvAHdrBoyoDMG0UCEgBgj+WPhvNfKYVEC9p5Mg2A+ pcoGxW+sSWM12ds1wme182LhyBhHGf+lCkZYE=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 03B7ACEAF2; Tue, 17 Aug 2010 14:01:22 -0400 (EDT)
Received: from iMac.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 88A56CEAF1; Tue, 17 Aug 2010 14:01:21 -0400 (EDT)
Message-ID: <4C6ACE70.6000000@pobox.com>
Date: Tue, 17 Aug 2010 11:01:20 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50B3B5F88@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50B3B5F88@xmb-sjc-225.amer.cisco.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 7225C7B4-AA29-11DF-9890-9056EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] DISCUSS on Client Certificate URLs Section of 4366-bis
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 18:00:51 -0000

Joseph Salowey (jsalowey) wrote:
> 
> "If a server is unable to obtain certificates in a given CertificateURL,
> it MUST send a fatal unrecognized_name(112) alert....

Shouldn't that be certificate_unobtainable(111) ?

Mike

From jsalowey@cisco.com  Tue Aug 17 11:04:30 2010
Return-Path: <jsalowey@cisco.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 54F463A68F2 for <tls@core3.amsl.com>; Tue, 17 Aug 2010 11:04:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -110.157
X-Spam-Level: 
X-Spam-Status: No, score=-110.157 tagged_above=-999 required=5 tests=[AWL=0.442, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, 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 a0s6JvJ50Wzq for <tls@core3.amsl.com>; Tue, 17 Aug 2010 11:04:21 -0700 (PDT)
Received: from sj-iport-6.cisco.com (sj-iport-6.cisco.com [171.71.176.117]) by core3.amsl.com (Postfix) with ESMTP id 47F1B3A68C7 for <tls@ietf.org>; Tue, 17 Aug 2010 11:04:16 -0700 (PDT)
Authentication-Results: sj-iport-6.cisco.com; dkim=neutral (message not signed) header.i=none
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvsEAHdrakyrR7Ht/2dsb2JhbACgP3GlLJwLhTcEhDGIHw
X-IronPort-AV: E=Sophos;i="4.56,223,1280707200"; d="scan'208";a="574827905"
Received: from sj-core-1.cisco.com ([171.71.177.237]) by sj-iport-6.cisco.com with ESMTP; 17 Aug 2010 18:04:51 +0000
Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-1.cisco.com (8.13.8/8.14.3) with ESMTP id o7HI4plA019579; Tue, 17 Aug 2010 18:04:52 GMT
Received: from xmb-sjc-225.amer.cisco.com ([128.107.191.38]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.4675);  Tue, 17 Aug 2010 11:04:46 -0700
X-Mimeole: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Tue, 17 Aug 2010 11:04:44 -0700
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE50B3B5FE8@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <4C6ACE70.6000000@pobox.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [TLS] DISCUSS on Client Certificate URLs Section of 4366-bis
Thread-Index: Acs+Nkfsm9MNNM9fRqKe0es3DjFItAAAC6aw
References: <AC1CFD94F59A264488DC2BEC3E890DE50B3B5F88@xmb-sjc-225.amer.cisco.com> <4C6ACE70.6000000@pobox.com>
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: "Michael D'Errico" <mike-list@pobox.com>
X-OriginalArrivalTime: 17 Aug 2010 18:04:46.0689 (UTC) FILETIME=[AD4D9510:01CB3E36]
Cc: tls@ietf.org
Subject: Re: [TLS] DISCUSS on Client Certificate URLs Section of 4366-bis
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 18:04:30 -0000

Yes.

Thanks,

Joe

> -----Original Message-----
> From: Michael D'Errico [mailto:mike-list@pobox.com]
> Sent: Tuesday, August 17, 2010 11:01 AM
> To: Joseph Salowey (jsalowey)
> Cc: tls@ietf.org
> Subject: Re: [TLS] DISCUSS on Client Certificate URLs Section of
4366-bis
>=20
> Joseph Salowey (jsalowey) wrote:
> >
> > "If a server is unable to obtain certificates in a given
CertificateURL,
> > it MUST send a fatal unrecognized_name(112) alert....
>=20
> Shouldn't that be certificate_unobtainable(111) ?
>=20
> Mike

From mike-list@pobox.com  Tue Aug 17 11:04:38 2010
Return-Path: <mike-list@pobox.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B4B163A68F2 for <tls@core3.amsl.com>; Tue, 17 Aug 2010 11:04:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 ybPWK9UvStVO for <tls@core3.amsl.com>; Tue, 17 Aug 2010 11:04:35 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 949583A698D for <tls@ietf.org>; Tue, 17 Aug 2010 11:04:34 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 1CC5ECEB87; Tue, 17 Aug 2010 14:05:10 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=gRPQBThBZw9d MoJUsJsxIvGcKuA=; b=GH8ld7DtXw5DRL9GkfXLpH5ErUW5+KHueiiNrKnf6m57 gCQlN2J7EJUw4jj3OW4vG2AGPdtww4ybid8IxqohtzQW7FJEmGDQqIQ4Zpvcv5lx HCeERDgXlcwzSAqGr/sUOBQSyLJtIdDQVL7StIBC4SoScyh7yZfT4/ZrGDs2POM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=rcXAMm xwT/RjZNJLWCv7eJkpu4Se26nX2GFKSq9dU7KXrDaPZ5vX5MpIULZNFAZf4KyA5x kXir9LszOVI61FwWkFVAxmLrxwS4sbcwGx7Q3DM1SVcX4ynA8XEt5CXv6tEW/Uww Y6ZMKDRWDK2+5/8LHAaRK+swaz7ut3vjpP8/w=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id D7660CEB86; Tue, 17 Aug 2010 14:05:08 -0400 (EDT)
Received: from iMac.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 72254CEB84; Tue, 17 Aug 2010 14:05:07 -0400 (EDT)
Message-ID: <4C6ACF52.5040604@pobox.com>
Date: Tue, 17 Aug 2010 11:05:06 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
References: <AC1CFD94F59A264488DC2BEC3E890DE50B3B5FCC@xmb-sjc-225.amer.cisco.com>
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50B3B5FCC@xmb-sjc-225.amer.cisco.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: F8C69FA0-AA29-11DF-BF6F-9056EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] DISCUSS on Server Name Indication of 4366-bis
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 18:04:38 -0000

Joseph Salowey (jsalowey) wrote:
> "3. Server Name Indication
> 
>       struct {
>           NameType name_type;
>           select (name_type) {
>               case host_name: HostName;
>           } name;
>       } ServerName;
> 
>       enum {
>           host_name(0), (255)
>       } NameType;
> 
>       opaque HostName<1..2^16-1>;
> 
>       struct {
>           ServerName server_name_list<1..2^16-1>
>       } ServerNameList;
> 
>  [...]
> 
>    However, for backward compatibility, all future NameTypes
>    MUST begin with a 16-bit length field.
> 
> Can you please clarify what this means?
> I am looking at both ServerName and
> NameType definitions and I don't see what you are talking about."
> 
> Proposed resolution: replace  " However, for backward compatibility, all
> future NameTypes MUST begin with a 16-bit length field." With:
> 
> "The data structure associated with the host_name NameType is a
> variable-length vector that begins with a 16-bit length. For backward
> compatibility, all future data structures associated with new NameTypes
> MUST begin with a 16-bit length field."

This is actually for "forward compatibility" so that new name types
can be skipped by old software that doesn't know about them.

Mike

From marsh@extendedsubset.com  Tue Aug 17 11:41:16 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id F07823A659C for <tls@core3.amsl.com>; Tue, 17 Aug 2010 11:41:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.993
X-Spam-Level: 
X-Spam-Status: No, score=-1.993 tagged_above=-999 required=5 tests=[AWL=0.606,  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 aLzhdAwX-YsS for <tls@core3.amsl.com>; Tue, 17 Aug 2010 11:41:14 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id 784503A6807 for <tls@ietf.org>; Tue, 17 Aug 2010 11:41:14 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OlR6b-0001ST-Pn; Tue, 17 Aug 2010 18:41:49 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 3DF456096; Tue, 17 Aug 2010 18:41:47 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX19f2LbgOqIYs3OnBufDG3SNr30BdYHXBjs=
Message-ID: <4C6AD7EA.4040307@extendedsubset.com>
Date: Tue, 17 Aug 2010 13:41:46 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: Adam Barth <ietf@adambarth.com>, "tls@ietf.org" <tls@ietf.org>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>	<4C69938A.9080808@gnutls.org>	<AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com>	<AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com>	<4C6AB936.1070801@extendedsubset.com> <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com>
In-Reply-To: <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 18:41:16 -0000

On 08/17/2010 11:49 AM, Adam Barth wrote:
>
> That's a pretty narrow view of TLS.  Certainly not everyone will want
> to use this extension.  In fact, I suspect it will only be used by the
> narrow subset of folks who are interested in defending against
> cross-protocol vulnerabilities.  However, that's one of the great
> benefits of modularity in protocol design: you can pick and choose the
> extensions that are appropriate for your use of the protocol.

Let's not forget that this proposal creates a new handshake message as well.

> The TCP protocol already has a similar extension point (i.e., ports).
> However, ports were not designed with cross-protocol vulnerabilities
> in mind and, unfortunately, are not sufficient security primitives.

Run protocols on their designated port. Don't overload port numbers. 
Don't allow unauthenticated connections to do anything significant (like 
send mail) on any port (source IP does not count as authentication). 
Don't allow web pages to initiate arbitrary connections.

> Believe me, I would much rather use TCP ports if they worked.

It's almost that they work too well to be trusted to a browser.

> We have an approach to defending against cross-protocol attacks at a
> higher layer of the stack, but it's extremely hacky.  Basically, you
> make the server do some esoteric calculation based on some nonces sent
> by the client.  The hope is that no existing server would do that
> esoteric calculation and, therefore, if the server gets the right
> answer, it must be speaking WebSockets.

I dunno, doesn't seem all that different from any other kind of handshake.

> It's hard to make a convincing security argument why that approach
> works.  It's more like a wing and a prayer.  NPN is the best approach
> I've seen for defending against cross-protocol attacks.  I believe
> using a TLS extension to solve this security problem is too good a
> design to ignore.

This is not without good precedent, SSH seems to do a fine job of 
multiplexing various services over its single port.

I liked the argument about "extending the origin model to do plain 
socket connections securely".

> On Tue, Aug 17, 2010 at 9:30 AM, Marsh Ray<marsh@extendedsubset.com>  wrote:
>> It also sounds like one could get 90% there just by doing session
>> resumption.

> We expect it to be very common for a web page to make a WebSocket
> connection to a different host.  For example, one important use case
> for WebSockets is chat-like functionality on a web page.  Facebook
> chat, as an example, operates on a separate host name than the main
> Facebook web site.  In those cases, we won't have a TLS session to
> resume.

Is it of consequence for the Facebook chat widget to take 150 ms to 
begin chatting?

So much so that it justifies additional complexity (i.e. attack surface) 
at the TLS layer?

Is there an example of a use for this protocol which is, in fact, highly 
latency-sensitive on the very first connection to the app server of the 
session?

Sorry if I'm sounding negative, that is not my intent. The answers may 
very well be 'yes' but I think the questions should be asked.

> These are issues for the HyBi working group.  I can tell you that
> browser vendors which to implement an interoperable WebSocket
> protocol.  I suspect you'll find it difficult to convince the HyBi
> working group on these points.

I'm not sure the IETF is the one to do the convincing for a TLS 
handshake modification, particularly if it could harm interoperability 
without a darn good reason.

To a large extent it seems the motivation here is to overlay another 
namespace of type opaque <0..255> for negotiating app layer protocols 
separate from the well-known port assignments thus bypassing the IANA 
and the control of firewalls and site admins.

>> (Why does WebSockets send garbage after a GET request?)
>
> That's part of the hacky non-TLS defense against cross-protocol
> attacks.

Just out of curiosity, why couldn't they send it in one of the custom 
headers? Or a POST?  I was under the impression that GET prohibited the 
inclusion of a document body.

Did the IANA understand the plan was to send gratuitously invalid HTTP 
when they recommended this be overloaded on TCP port 80?

For a group so concerned about protocol attacks, it sounds like they're 
intending to ship a fuzzer! (And one that can be pointed at your 
internal servers at that.)

I know WebSockets isn't on trial here, but it seems like one of the main 
justifications for NPN.

> The version that uses a TLS-based handshake doesn't have any
> of that garbage (to use your term).

Adam et al. let me say I really admire you guys' work.

It's really cool to have proposals to extend the web in new and 
interesting ways, addressing security from the beginning, and to squeeze 
out every last round trip and millisecond of latency.

But you guys are so prolific! I know I'm not the only one who feels a 
little overwhelmed at the three or four semi-overlapping proposals we've 
seen recently to extend TLS in minor and major ways. Some of these seem 
targeted at a relatively narrow deployment scenario (e.g., phones with 
GPS time) yet they suggest fundamental changes to the protocol from a 
security perspective.

Usually, the goal seems to be cutting down on latency at the cost of 
complexity (sometimes involving even TLS API layer changes). If a 
protocol change only helps in a relatively specific case, doesn't have 
multiple vendors jumping to implement it, and you could get 80% there 
with what we have already (e.g. session resumption) then it may not be a 
good bargain for the protocol as a whole.

Even if all these proposals were shown to be secure individually, and 
were all accepted, it could easily result an overall system which is not 
secure in combination. "Security is not composable" -Sergey Bratus

IMHO, the WG needs to be quite conservative about accepting extensions 
or other modifications to the handshake with potential security 
implications, however well-designed they may be. We could easily end up 
in a situation where nobody's ever tested certain combinations of 
extensions and endpoints interpret an ambiguous situation differently, 
with disastrous results. We could also end up in a state which is stable 
and secure, but we're unable to evolve the protocol much going forward 
because of some combinatorial explosion of interdependencies.

So forgive me if I sound negative, again, I really like the overall 
direction of this work. But I keep getting the feeling that at some 
point this much innovation is better off with a fresh design, rather 
than extending TLS far outside its original design envelope. I know new 
port numbers can limit acceptance, but maybe you could use a 
TLS-compatible client hello?

Alternatively, perhaps it would be possible to consolidate some of these 
ideas into fewer, more coherent, proposals?

Just a thought.

- Marsh

From agl@google.com  Tue Aug 17 12:04:12 2010
Return-Path: <agl@google.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id DBD463A69EE for <tls@core3.amsl.com>; Tue, 17 Aug 2010 12:04:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.652
X-Spam-Level: 
X-Spam-Status: No, score=-105.652 tagged_above=-999 required=5 tests=[AWL=0.325, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_MED=-4, 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 FcqBbqHNM63F for <tls@core3.amsl.com>; Tue, 17 Aug 2010 12:04:12 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id B14E13A698D for <tls@ietf.org>; Tue, 17 Aug 2010 12:04:11 -0700 (PDT)
Received: from kpbe16.cbf.corp.google.com (kpbe16.cbf.corp.google.com [172.25.105.80]) by smtp-out.google.com with ESMTP id o7HJ4k7b014615 for <tls@ietf.org>; Tue, 17 Aug 2010 12:04:46 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1282071886; bh=8JnjNtvqIOu/hyKV8dp97qejzSM=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=Jsbj73s+4LO+nWpXr4HF07J9w92hD7QJti4YgCkfASbm7/9ZZrhkcmkCdrZ+PkHJT dB3aaahZkd+kAE/Sxn0pw==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=Q4XUbKKqGn6ln1kWqqulXt7Q6p1Dy5YdjyfunrWDkgNAEi2KAKIWTYubLJKomS+Jp EGRgXH/EU+g2MyapU+HgA==
Received: from gye5 (gye5.prod.google.com [10.243.50.5]) by kpbe16.cbf.corp.google.com with ESMTP id o7HJ4jbf032729 for <tls@ietf.org>; Tue, 17 Aug 2010 12:04:45 -0700
Received: by gye5 with SMTP id 5so3133082gye.25 for <tls@ietf.org>; Tue, 17 Aug 2010 12:04:44 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.90.93.15 with SMTP id q15mr4722308agb.144.1282071884764; Tue, 17 Aug 2010 12:04:44 -0700 (PDT)
Received: by 10.231.142.32 with HTTP; Tue, 17 Aug 2010 12:04:44 -0700 (PDT)
In-Reply-To: <4C6AD7EA.4040307@extendedsubset.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C69938A.9080808@gnutls.org> <AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com> <AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com> <4C6AB936.1070801@extendedsubset.com> <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com> <4C6AD7EA.4040307@extendedsubset.com>
Date: Tue, 17 Aug 2010 15:04:44 -0400
Message-ID: <AANLkTingQgTT9q7umj0aSE+My9J7of5a8hE2q_Mef09u@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: Marsh Ray <marsh@extendedsubset.com>
Content-Type: text/plain; charset=UTF-8
X-System-Of-Record: true
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 19:04:13 -0000

On Tue, Aug 17, 2010 at 2:41 PM, Marsh Ray <marsh@extendedsubset.com> wrote:
> vendors jumping to implement it, and you could get 80% there with what we
> have already (e.g. session resumption) then it may not be a good bargain for
> the protocol as a whole.

I think I might be misunderstanding you. How does session resumption
help here? (If you were thinking about removing a round trip with
session resumption, we've already claimed that with False Start.
Chrome, Android and Firefox (4) are already using False Start so TLS
handshakes are 1 RTT with or without session resumption in our
calculations.)



AGL

From marsh@extendedsubset.com  Tue Aug 17 12:44:19 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 33F0F3A6868 for <tls@core3.amsl.com>; Tue, 17 Aug 2010 12:44:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.009
X-Spam-Level: 
X-Spam-Status: No, score=-2.009 tagged_above=-999 required=5 tests=[AWL=0.590,  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 c7mOxiCz5YJy for <tls@core3.amsl.com>; Tue, 17 Aug 2010 12:44:14 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id 4645C3A685C for <tls@ietf.org>; Tue, 17 Aug 2010 12:44:14 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OlS5Y-000HjM-Ry; Tue, 17 Aug 2010 19:44:48 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 26290608E; Tue, 17 Aug 2010 19:44:47 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX19foxkkoM9ye1coIuEmpznvxFloF02tQpc=
Message-ID: <4C6AE6AD.6080402@extendedsubset.com>
Date: Tue, 17 Aug 2010 14:44:45 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: Adam Langley <agl@google.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>	<4C69938A.9080808@gnutls.org>	<AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com>	<AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com>	<4C6AB936.1070801@extendedsubset.com>	<AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com>	<4C6AD7EA.4040307@extendedsubset.com> <AANLkTingQgTT9q7umj0aSE+My9J7of5a8hE2q_Mef09u@mail.gmail.com>
In-Reply-To: <AANLkTingQgTT9q7umj0aSE+My9J7of5a8hE2q_Mef09u@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 19:44:19 -0000

On 08/17/2010 02:04 PM, Adam Langley wrote:
>
> I think I might be misunderstanding you.

No, I'm sure it is I who am not fully understanding. :-)

> How does session resumption
> help here?

It was just an example of an existing facility with similar goals that 
was often underutilized.

> (If you were thinking about removing a round trip with
> session resumption, we've already claimed that with False Start.
> Chrome, Android and Firefox (4) are already using False Start so TLS
> handshakes are 1 RTT with or without session resumption in our
> calculations.)

Doh!

- Marsh

From brian@briansmith.org  Tue Aug 17 14:00:17 2010
Return-Path: <brian@briansmith.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id ECCEE3A6A28 for <tls@core3.amsl.com>; Tue, 17 Aug 2010 14:00:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.917
X-Spam-Level: 
X-Spam-Status: No, score=-1.917 tagged_above=-999 required=5 tests=[AWL=0.682,  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 eIWQWTaMVyGt for <tls@core3.amsl.com>; Tue, 17 Aug 2010 14:00:16 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id A70553A6A27 for <tls@ietf.org>; Tue, 17 Aug 2010 14:00:16 -0700 (PDT)
Received: from T60 (unknown [98.200.150.199]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id F332A509DD for <tls@ietf.org>; Tue, 17 Aug 2010 17:00:44 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: <tls@ietf.org>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>	<4C69938A.9080808@gnutls.org>	<AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com>	<AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com>	<4C6AB936.1070801@extendedsubset.com>	<AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com> <4C6AD7EA.4040307@extendedsubset.com>
In-Reply-To: <4C6AD7EA.4040307@extendedsubset.com>
Date: Tue, 17 Aug 2010 16:00:44 -0500
Message-ID: <000401cb3e4f$456f6d60$d04e4820$@briansmith.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQGWKjOVVsWlkADqERmWe4yahRG/kwH2Dft9AmJ6878B5ufhUAHf9aKTAfVlzHUCrgr6SwHvYtPE
Content-Language: en-us
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 21:00:18 -0000

Marsh Ray wrote:
> On 08/17/2010 11:49 AM, Adam Barth wrote:
> Run protocols on their designated port. Don't overload port numbers.
> Don't allow unauthenticated connections to do anything significant (like
send
> mail) on any port (source IP does not count as authentication).
> Don't allow web pages to initiate arbitrary connections.

Following these guidelines would subject the client and server to very
simple and effective DoS attacks, which are already so common that we accept
them as part of the status quo. Relying on these guidelines would subject
the client and server to cross-protocol attacks unless everybody else in the
world follows them.

> Is there an example of a use for this protocol which is, in fact, highly
latency-
> sensitive on the very first connection to the app server of the session?

Google, Amazon.com, and others claim significant decreases in revenue that
correlate with increases in latency of 100ms or even less. 

> To a large extent it seems the motivation here is to overlay another
namespace
> of type opaque <0..255> for negotiating app layer protocols separate from
the
> well-known port assignments thus bypassing the IANA and the control of
> firewalls and site admins.

Firewall and HTTP proxy administrators are the attackers in the scenarios
that are being defended against. Not every Firewall or proxy is benevolent,
and even many that aren't intentionally malicious are harmful due to poor
implementation or configuration.

> I know WebSockets isn't on trial here, but it seems like one of the main
> justifications for NPN.

I think it would be better for this discussion to focus on the actual
security improvements that this extension enables for all protocols.
Otherwise, too much discussion will be about alternatives that work for
WebSockets but don't solve the same problems for other protocols. Here are
the attacks that this extension helps mitigate:

1. Denial of service caused by a MitM that selectively allows traffic based
on the port number; i.e. the firewall attack. This extension allows the
client and server to work around the firewall attack if the attacker has
left any opening, which they almost always do.

2. Traffic analysis that allows a MitM to determine the user's actions even
when the communication is taking place over TLS, using the port number
and/or plaintext information sent in the TLS handshake (SNI extension,
certificates, etc.). For example, currently it isn't possible to build a
system that uses SMTP and IMAP but which hides the user's action (sending or
receiving) from a MitM; this extension (or a similar one) would enable
implementations to make such traffic analysis significantly more difficult
and hopefully prohibitively expensive, especially if used in conjunction
with  a careful padding scheme.

3. Cross-protocol attacks as described by Adam. This extension allows the
client and server to explicitly specify what protocol they expect to be used
on the connection. This is a useful feature even for applications that don't
want to support overloading ports with multiple protocols. It is difficult
to extend application layer protocols with these cross-protocol attack
protections, because those extensions themselves may be exploitable with
cross-protocol attacks.

It is hard to believe that a significant number of attacks can be prevented
simply by using port 443 for everything. But, it would really work a lot of
the time; it is difficult for the attacker to counteract this defense,
because often the attacker has a business or political need to avoid
disrupting HTTPS on port 443; otherwise they would have disabled that
already. The amazing ability of Skype to punch through firewalls is partly
due to such port 443 tunneling.

One thing I will say about this extension in conjunction with WebSockets: I
think that it is unrealistic to expect many service providers to enable or
require TLS simply for the privacy benefits of their users. Many service
providers do not care about their users' privacy enough to spend any extra
money to protect it. If this extension becomes the standard way to enable
interoperable WebSockets support, then even service providers that are
apathetic about MitM protection might having a compelling reason to use TLS.
Then their end-users can enjoy improved privacy and better authentication of
servers when otherwise it may never be made available for them. I think this
could result in a snowball effect that would make encrypted and
server-authenticated communication much more common or even eventually
ubiquitous. I think the chance that this happening is reason enough to
integrate this mechanism into TLS.

Cheers,
Brian



From paul.hoffman@vpnc.org  Tue Aug 17 14:08:31 2010
Return-Path: <paul.hoffman@vpnc.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 55B3D3A69EE for <tls@core3.amsl.com>; Tue, 17 Aug 2010 14:08:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.069
X-Spam-Level: 
X-Spam-Status: No, score=-101.069 tagged_above=-999 required=5 tests=[AWL=0.977, BAYES_00=-2.599, HELO_MISMATCH_COM=0.553, 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 hWhy-ytEYv8F for <tls@core3.amsl.com>; Tue, 17 Aug 2010 14:08:26 -0700 (PDT)
Received: from hoffman.proper.com (Hoffman.Proper.COM [207.182.41.81]) by core3.amsl.com (Postfix) with ESMTP id BD3D73A684B for <tls@ietf.org>; Tue, 17 Aug 2010 14:08:17 -0700 (PDT)
Received: from [10.20.30.158] (sn87.proper.com [75.101.18.87]) (authenticated bits=0) by hoffman.proper.com (8.14.4/8.14.3) with ESMTP id o7HL8pEO041337 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 17 Aug 2010 14:08:52 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
Mime-Version: 1.0
Message-Id: <p06240844c890aaa90c8a@[10.20.30.158]>
Date: Tue, 17 Aug 2010 14:08:50 -0700
To: namedroppers@ops.ietf.org, tls@ietf.org
From: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: text/plain; charset="us-ascii"
Subject: [TLS] Of interest to this WG
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 21:08:31 -0000

At 11:36 AM -0700 8/17/10, IETF Secretariat wrote:
>From: IETF Secretariat <ietf-secretariat@ietf.org>
>To: IETF Announcement list <ietf-announce@ietf.org>
>Subject: New Non-WG Mailing List: keyassure -- Key Assurance With DNSSEC
>Date: Tue, 17 Aug 2010 11:36:02 -0700 (PDT)
>
>A new IETF non-working group email list has been created.
>
>List address: keyassure@ietf.org
>Archive:
>http://www.ietf.org/mail-archive/web/keyassure/current/maillist.html
>To subscribe: https://www.ietf.org/mailman/listinfo/keyassure
>
>Description: This list is for discussion relating to using
>DNSSEC-protected DNS queries to get greater assurance for keys and
>certificates that are passed in existing IETF protocols. The main idea is
>that a relying party can get additional information about a domain name to
>eliminate the need for using a certificate in a protocol, to eliminate the
>need for sending certificates in the protocol if they are optional, and/or
>to assure that the certificate given in a protocol is associated with the
>domain name used by the application. In all three cases, the
>application associates the key or key fingerprint securely retrieved from
>the DNS with the domain name that was used in the DNS query.

From mike-list@pobox.com  Tue Aug 17 16:30:21 2010
Return-Path: <mike-list@pobox.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E36903A684C for <tls@core3.amsl.com>; Tue, 17 Aug 2010 16:30:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000,  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 fItTAYafOjtV for <tls@core3.amsl.com>; Tue, 17 Aug 2010 16:30:20 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 611803A6765 for <tls@ietf.org>; Tue, 17 Aug 2010 16:30:19 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id BB0CFCE82B for <tls@ietf.org>; Tue, 17 Aug 2010 19:30:51 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=b0tqRgfe59BG gJK3kk9+6v5rZcQ=; b=hkS0nLSx479NGMpR/kMNPO/LVSo6UlBeETREA5SgGkYo iV7UyvpFmbBwUoQ3jEkBTiqd7u+htmMZQoaYHAE1YoAfHzpcOL8qufZQh+ZM6XHj +T1UI339Pclh9BiHWKxA8kG3Scgm5LqJx2AHHoz/mlPcttZvJqiRuWkZNeLd4t0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=QL3PGe 0zCWegjRgPtFENRZw/e1e/PEbF1nEXThf5bVWvkBmnety3glu9nuJg53RyzWNA6g ftqD9dOj2VWGH0cgBqFPb9TYYf0MHoyyKTZdGciDSJ/4SFTJ7j1SW4whFXCBrGxB lnKrunaRTvQmjvUlHNibMZM8QdAVNJDFyA5rU=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 7CE08CE82A for <tls@ietf.org>; Tue, 17 Aug 2010 19:30:51 -0400 (EDT)
Received: from iMac.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 04677CE828 for <tls@ietf.org>; Tue, 17 Aug 2010 19:30:50 -0400 (EDT)
Message-ID: <4C6B1BAA.5060303@pobox.com>
Date: Tue, 17 Aug 2010 16:30:50 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
To: tls@ietf.org
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C69938A.9080808@gnutls.org> <AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com> <AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com> <4C6AB936.1070801@extendedsubset.com> <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com> <4C6AD7EA.4040307@extendedsubset.com> <000401cb3e4f$456f6d60$d04e4820$@briansmith.org>
In-Reply-To: <000401cb3e4f$456f6d60$d04e4820$@briansmith.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 7916D206-AA57-11DF-A2FC-9056EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 23:30:22 -0000

Last night at about midnight I awoke with a revelation
that this whole WebSockets protocol could be a hoax.
But assuming that it is real, here are some things that
concern me:

   - You have managed to take a binary-capable
     transport (HTTP) and turn it into a text-only
     non-binary capable transport.

   - The "framing" used to delineate messages sent
     over the protocol is sentinel-based similar to
     the C programming language string handling that
     uses NULL, but WebSockets uses 0xFF since it is
     invalid in UTF-8.  That means both the sender
     and receiver need to scan every byte of every
     message for the sentinel, which takes time and
     therefore increases latency.

   - Any text data that is in a different character
     set (e.g. ISO-8859-1) has to be converted to
     UTF-8 in order to be sent which adds latency to
     the protocol.

   - Am I missing something, or why didn't you use
     the "chunked" transfer coding of HTTP?  It gives
     you binary transfer (and therefore you can send
     UTF-8 over it too) and eliminates the need to
     inspect every byte sent and received.  If just
     the length was not enough for your framing needs,
     I'll point out that you can add chunk extensions
     and even send headers after the last chunk, all
     without changing HTTP.

   - The sentinel-based framing is a problem because
     it can be trivially broken by sending FF 00 and
     then any payload you want.  (This is why the
     sender also needs to scan all outbound traffic).

Collectively you are trying to "fix" TLS to solve your
latency problems, but as noted above you have some
things you can do to improve your own protocol first.

As they say, "get your own house in order."  Apologies
if that sounds harsh.

Mike

P.S. I hope that this is not the network protocol
version of getting rickrolled.

From marsh@extendedsubset.com  Tue Aug 17 17:14:28 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 9EA723A685B for <tls@core3.amsl.com>; Tue, 17 Aug 2010 17:14:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.817
X-Spam-Level: 
X-Spam-Status: No, score=-0.817 tagged_above=-999 required=5 tests=[AWL=-0.632, BAYES_40=-0.185]
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 Goo2BHvj6hc9 for <tls@core3.amsl.com>; Tue, 17 Aug 2010 17:14:17 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id 66A1D3A684A for <tls@ietf.org>; Tue, 17 Aug 2010 17:14:15 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OlWIo-0005tg-Io for tls@ietf.org; Wed, 18 Aug 2010 00:14:46 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 7A2AF687E for <tls@ietf.org>; Wed, 18 Aug 2010 00:14:44 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX195/8RlnKk/xPHbgXkCxVaE7HnmGxODxQE=
Message-ID: <4C6B25F2.1030408@extendedsubset.com>
Date: Tue, 17 Aug 2010 19:14:42 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: tls@ietf.org
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>	<4C69938A.9080808@gnutls.org>	<AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com>	<AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com>	<4C6AB936.1070801@extendedsubset.com>	<AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com>	<4C6AD7EA.4040307@extendedsubset.com> <000401cb3e4f$456f6d60$d04e4820$@briansmith.org>
In-Reply-To: <000401cb3e4f$456f6d60$d04e4820$@briansmith.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 00:14:29 -0000

On 08/17/2010 04:00 PM, Brian Smith wrote:
> Marsh Ray wrote:
>> On 08/17/2010 11:49 AM, Adam Barth wrote:
>> Run protocols on their designated port. Don't overload port numbers.
>> Don't allow unauthenticated connections to do anything significant (like
> send
>> mail) on any port (source IP does not count as authentication).
>> Don't allow web pages to initiate arbitrary connections.
>
> Following these guidelines would subject the client and server to very
> simple and effective DoS attacks, which are already so common that we accept
> them as part of the status quo. Relying on these guidelines would subject
> the client and server to cross-protocol attacks unless everybody else in the
> world follows them.

I don't get it, it's basic stuff. What part of those recommendations 
"subject the client and server to simple and effective DoS attacks" in a 
way that they weren't already?

Port 443 isn't magic. It's just as DoS-able as others, if not more so. 
Multiplexing multiple protocols on top of port 443 might even limit your 
options in the event of an actual DoS (possibly inadvertent).

Oh and I forgot: disable NTLM (my latest crusade).
http://extendedsubset.com/?p=36

>> Is there an example of a use for this protocol which is, in fact, highly
> latency-
>> sensitive on the very first connection to the app server of the session?
>
> Google, Amazon.com, and others claim significant decreases in revenue that
> correlate with increases in latency of 100ms or even less.

Interesting, I had heard of that. Link?

I like a snappy web site as much as anybody, but this WebSocket thing 
seems somewhat ancillary. Possibly some of these app-heavy pages would 
improve the perceived responsiveness if they would just load the HTML 
and size the rectangles fully before starting with a zillion background 
requests.

> Firewall and HTTP proxy administrators are the attackers in the scenarios
> that are being defended against. Not every Firewall or proxy is benevolent,
> and even many that aren't intentionally malicious are harmful due to poor
> implementation or configuration.

Never pick a fight with the guy who's holding your power cord.
He wins every time.

> 1. Denial of service caused by a MitM that selectively allows traffic based
> on the port number; i.e. the firewall attack. This extension allows the
> client and server to work around the firewall attack if the attacker has
> left any opening, which they almost always do.

By definition, it cannot be an attack if it's by the equipment's 
rightful owner. You seem to be of the opinion that you or some other 
entity have some kind of right of transit over private networks. I 
believe one should acting like a respectful invited guest on another's 
network. Displaying that arrogant attitude is a large part of why admins 
are distrustful of new network software and have resorted to blocking 
everything by default.

If you are actually in some kind a repressive political environment you 
might be better served with a special purpose VPN solution designed for 
strong anonymity.

> 2. Traffic analysis that allows a MitM to determine the user's actions even
> when the communication is taking place over TLS, using the port number
> and/or plaintext information sent in the TLS handshake (SNI extension,
> certificates, etc.). For example, currently it isn't possible to build a
> system that uses SMTP and IMAP but which hides the user's action (sending or
> receiving) from a MitM; this extension (or a similar one) would enable
> implementations to make such traffic analysis significantly more difficult
> and hopefully prohibitively expensive, especially if used in conjunction
> with  a careful padding scheme.

This is expected to make it hard for TA to distingush between HTTP, 
SMTP, and IMAP? Really?

> 3. Cross-protocol attacks as described by Adam. This extension allows the
> client and server to explicitly specify what protocol they expect to be used
> on the connection. This is a useful feature even for applications that don't
> want to support overloading ports with multiple protocols. It is difficult
> to extend application layer protocols with these cross-protocol attack
> protections, because those extensions themselves may be exploitable with
> cross-protocol attacks.

I can see how this could be an improvement.

Consider the status quo, I open an url into a browser: 
https://www.example.com/

https:           = specifies HTTP over TLS
www.             = a convention associated with HTTP
example.com      = the only useful part
DNS lookup 'example.com'
DNS lookup 'www' = resolve servers for HTTP
TCP port 443     = assigned port for HTTP over TLS
Baked into server's cert: "Ext key usage = TLS Web Server Auth" = HTTP
Client request 1: "GET / HTTP/1.1"         HTTP
Client request 2: "Host: www.example.com"  www -> HTTP again
Server response: "HTTP/1.1 200 OK"         HTTP

In this simple example we already have the protocol "HTTP" stated 
explicitly or associated by convention ten times!

One might think this would be good enough to indicate what the intended 
protocol is, but as you say there are apparently people with 
unauthenticated SMTP and IMAP servers listening on port 443.

My question is this: What's going to be different this time?

If we really need another protocol identifier because the ones we have 
don't hold up under attack, let's do it right this time! It needs to be 
treated just as security-critical as checking the name on a server 
certificate.

Rather than opaque<0..255> we need defined encoded values. If not, as 
someone suggested, using existing port assignments, then perhaps a 
string. These values should be assigned by IANA. There should be a 
convention for private-use and experimental identifiers. The valid 
characters, whitespace rules, and the exact method of string comparison 
must be defined.

Use with underlying transports other than TCP should be defined i.e., do 
the rules still apply if you run TLS over raw serial or stdin/stdout?
What about DTLS?

Is there ever a case for more than one instance of a protocol on an 
address? If you want to start another http server, say for app 
development, is there an equivalent to "port 8080"? If so, wouldn't 
browsers and other client apps need a way to specify it in the url?

Are any security properties associated with some names and not others? 
Is there an equivalent to privileged "low numbered ports"? Should OS 
permissions be involved in who can start a new server?

How is client cert auth to be performed? Is it a problem that it's not 
configurable per-protocol?

Note that MS Windows has had, for many years now, an in-kernel https 
server which by default takes port 443. They support multiple protocols 
for RPC, remote access, and of course web serving all on the same port. 
I believe they support PPTP VPNs on 443 with a similar mechanism. What 
can we learn from that experience which might help in this design?
(did I mention that everyone should disable NTLM?)

Insecure (without RFC 5746) renegotiation can now easily be a 
cross-protocol attack. Should this spec forbid it?

Could it be made an option to get the server's list of protocols while 
under a basic encrypted session, providing that confidentiality like for 
client certificates?

Should the client's SNI be allowed to or prohibited from influencing the 
server's list of supported protocols?

Would it be advantageous for the client-selected protocol to be allowed 
to influence the cert presented by the server? It's not unusual to need 
different certs for different protocols after all. Can this be 
accomplished through renegotiation? Wouldn't that leak information about 
what protocol was chosen?

Will this have implications for protocols that need to poke holes for 
incoming connections  E.g., STUN, UPnP?

> It is hard to believe that a significant number of attacks can be prevented
> simply by using port 443 for everything. But, it would really work a lot of
> the time; it is difficult for the attacker to counteract this defense,
> because often the attacker has a business or political need to avoid
> disrupting HTTPS on port 443; otherwise they would have disabled that
> already. The amazing ability of Skype to punch through firewalls is partly
> due to such port 443 tunneling.

I used to work for a VPN company. We prided ourself on our client 
software being able to find a way back to the datacenter with minimal 
user intervention in nearly all circumstances. But we were also not 
going to go around boasting "Ha ha we can exfiltrate through anything 
you leave open I dare you to block [method X] Mr. Admin we pwn ur netz".

There's no way an IETF protocol can "lie low" in this respect. If the 
proposed scheme gains widespread adoption, firewalls will of necessity 
evolve to manage it (regardless of whether that can be done correctly).

http://www.google.com/search?q="Data+Loss+Prevention"+ssl

It's one thing for a P2P app to disregard the admin's preferences, they 
are budgeting ongoing development time to continually evolve their 
connection smuggling techniques in a cat-and-mouse arms race. But an 
IETF protocol is a different matter. It's published, it gets used, 
vendors sell boxes to accelerate and manage it, admins deploy the boxes 
as well as other tools.

My concern is that at the end of the day we end up with no great victory 
in transport neutrality. Instead we get might just get another layer of 
redundant indirection, more protocol complexity, and worst of all, 
TLS-intercepting MitM proxies sprouting all over the net like dandelions.

> One thing I will say about this extension in conjunction with WebSockets: I
> think that it is unrealistic to expect many service providers to enable or
> require TLS simply for the privacy benefits of their users.

Agreed.

> Many service
> providers do not care about their users' privacy enough to spend any extra
> money to protect it. If this extension becomes the standard way to enable
> interoperable WebSockets support, then even service providers that are
> apathetic about MitM protection might having a compelling reason to use TLS.

But if it requires a software (if not hardware) upgrade to support the 
extension, wouldn't that just encourage deployments to use plain HTTP?

> Then their end-users can enjoy improved privacy and better authentication of
> servers when otherwise it may never be made available for them. I think this
> could result in a snowball effect that would make encrypted and
> server-authenticated communication much more common or even eventually
> ubiquitous. I think the chance that this happening is reason enough to
> integrate this mechanism into TLS.

That would be nice, but it doesn't seem likely. For example, I use two 
"social networking" sites, Twitter and LinkedIn. They both appear to 
support https urls, but fail in several ways. The sites regularly load 
resources (even script) from plain http urls. Clicking on links 
sometimes drops back to http. When they send emails or alerts from other 
apps, the links are all http. Twitter actually looks like it's gotten a 
bit better, but LinkedIn seems to just redirect me away from https 
completely. The point being that making a secure site requires a 
commitment to a significant development project.

As appealing as the idea sounds to me, "encouraging" a transition before 
people would choose it on their own is likely to lead to a lot more 
self-signed certs out on the web.

- Marsh

From ietf@adambarth.com  Tue Aug 17 21:21:32 2010
Return-Path: <ietf@adambarth.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 1BD133A6894 for <tls@core3.amsl.com>; Tue, 17 Aug 2010 21:21:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.752
X-Spam-Level: 
X-Spam-Status: No, score=-1.752 tagged_above=-999 required=5 tests=[AWL=0.225,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
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 zcGkMcXq3VmQ for <tls@core3.amsl.com>; Tue, 17 Aug 2010 21:21:30 -0700 (PDT)
Received: from mail-yw0-f44.google.com (mail-yw0-f44.google.com [209.85.213.44]) by core3.amsl.com (Postfix) with ESMTP id A13EE3A6805 for <tls@ietf.org>; Tue, 17 Aug 2010 21:21:29 -0700 (PDT)
Received: by ywa8 with SMTP id 8so75107ywa.31 for <tls@ietf.org>; Tue, 17 Aug 2010 21:22:04 -0700 (PDT)
Received: by 10.151.62.16 with SMTP id p16mr8343293ybk.206.1282105324782; Tue, 17 Aug 2010 21:22:04 -0700 (PDT)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by mx.google.com with ESMTPS id q17sm840294ybk.17.2010.08.17.21.22.03 (version=SSLv3 cipher=RC4-MD5); Tue, 17 Aug 2010 21:22:03 -0700 (PDT)
Received: by iwn3 with SMTP id 3so216871iwn.31 for <tls@ietf.org>; Tue, 17 Aug 2010 21:22:02 -0700 (PDT)
Received: by 10.231.12.136 with SMTP id x8mr8446459ibx.54.1282105322399; Tue, 17 Aug 2010 21:22:02 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.60.18 with HTTP; Tue, 17 Aug 2010 21:21:41 -0700 (PDT)
In-Reply-To: <4C6B1BAA.5060303@pobox.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C69938A.9080808@gnutls.org> <AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com> <AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com> <4C6AB936.1070801@extendedsubset.com> <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com> <4C6AD7EA.4040307@extendedsubset.com> <000401cb3e4f$456f6d60$d04e4820$@briansmith.org> <4C6B1BAA.5060303@pobox.com>
From: Adam Barth <ietf@adambarth.com>
Date: Tue, 17 Aug 2010 21:21:41 -0700
Message-ID: <AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com>
To: tls@ietf.org
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 04:21:32 -0000

On Tue, Aug 17, 2010 at 4:30 PM, Michael D'Errico <mike-list@pobox.com> wro=
te:
> Last night at about midnight I awoke with a revelation
> that this whole WebSockets protocol could be a hoax.

I assume you that WebSockets is not a hoax.

Your opinion appears to be based on an older version of the protocol.
Many of your complaints below have been addressed in more recent
versions of the protocol.  If you're interested in this work, I
encourage you to participate in the HyBi working group.

On Tue, Aug 17, 2010 at 5:14 PM, Marsh Ray <marsh@extendedsubset.com> wrote=
:
> On 08/17/2010 04:00 PM, Brian Smith wrote:
>> Following these guidelines would subject the client and server to very
>> simple and effective DoS attacks, which are already so common that we
>> accept
>> them as part of the status quo. Relying on these guidelines would subjec=
t
>> the client and server to cross-protocol attacks unless everybody else in
>> the world follows them.
>
> I don't get it, it's basic stuff. What part of those recommendations
> "subject the client and server to simple and effective DoS attacks" in a =
way
> that they weren't already?

I'm sorry, but I don't understand your question.  Cross-protocol
vulnerabilities need not be related to DoS.  In particular, the
example I gave earlier in the thread was about spam.

> Port 443 isn't magic. It's just as DoS-able as others, if not more so.
> Multiplexing multiple protocols on top of port 443 might even limit your
> options in the event of an actual DoS (possibly inadvertent).

Indeed.  We're not talking about DoS protection.

> Oh and I forgot: disable NTLM (my latest crusade).
> http://extendedsubset.com/?p=3D36

I don't understand how this relates to the topic at hand.

>> Google, Amazon.com, and others claim significant decreases in revenue th=
at
>> correlate with increases in latency of 100ms or even less.
>
> Interesting, I had heard of that. Link?

This is a well-established fact.

> I like a snappy web site as much as anybody, but this WebSocket thing see=
ms
> somewhat ancillary. Possibly some of these app-heavy pages would improve =
the
> perceived responsiveness if they would just load the HTML and size the
> rectangles fully before starting with a zillion background requests.

I don't think this is the proper forum to debate the performance
requirements of the WebSocket protocol.  Suffice it to say that the
folks who want to use the protocol want it to be fast.  That doesn't
sound unreasonable to me.

>> 1. Denial of service caused by a MitM that selectively allows traffic
>> based
>> on the port number; i.e. the firewall attack. This extension allows the
>> client and server to work around the firewall attack if the attacker has
>> left any opening, which they almost always do.
>
> By definition, it cannot be an attack if it's by the equipment's rightful
> owner. You seem to be of the opinion that you or some other entity have s=
ome
> kind of right of transit over private networks. I believe one should acti=
ng
> like a respectful invited guest on another's network. Displaying that
> arrogant attitude is a large part of why admins are distrustful of new
> network software and have resorted to blocking everything by default.
>
> If you are actually in some kind a repressive political environment you
> might be better served with a special purpose VPN solution designed for
> strong anonymity.

With or without this extension, the current plan in the HyBi working
group is to multiplex WebSockets with HTTPS over port 443.  If you
think that's a bad idea, you'll need take that up with the HyBi
working group.  The purpose of this TLS extension is to improve the
security of the protocol, not to enable multiplexing.

>> 2. Traffic analysis that allows a MitM to determine the user's actions
>> even
>> when the communication is taking place over TLS, using the port number
>> and/or plaintext information sent in the TLS handshake (SNI extension,
>> certificates, etc.). For example, currently it isn't possible to build a
>> system that uses SMTP and IMAP but which hides the user's action (sendin=
g
>> or
>> receiving) from a MitM; this extension (or a similar one) would enable
>> implementations to make such traffic analysis significantly more difficu=
lt
>> and hopefully prohibitively expensive, especially if used in conjunction
>> with =A0a careful padding scheme.
>
> This is expected to make it hard for TA to distingush between HTTP, SMTP,
> and IMAP? Really?

That's not the goal.  Please refer to my earlier emails for a
description of the security properties we seek to obtain with this
extension.

>> 3. Cross-protocol attacks as described by Adam. This extension allows th=
e
>> client and server to explicitly specify what protocol they expect to be
>> used
>> on the connection. This is a useful feature even for applications that
>> don't
>> want to support overloading ports with multiple protocols. It is difficu=
lt
>> to extend application layer protocols with these cross-protocol attack
>> protections, because those extensions themselves may be exploitable with
>> cross-protocol attacks.
>
> I can see how this could be an improvement.

Indeed.  That's because this is the problem we seek to solve with this
extension.

[Snip example]

> In this simple example we already have the protocol "HTTP" stated explici=
tly
> or associated by convention ten times!
>
> One might think this would be good enough to indicate what the intended
> protocol is, but as you say there are apparently people with unauthentica=
ted
> SMTP and IMAP servers listening on port 443.

Folks can run whatever services they like on whatever port they like.
It's our job not to introduce vulnerabilities into their deployments.

> My question is this: What's going to be different this time?

The difference is that it's a prior reasonable for a web page to
generate an HTTP POST request to port 25 on smtp.example.com.  It's
only after we learn of HTTP -> SMTP cross protocol attacks that we
need to look for a heuristic to block the attack.  In the protocol
we're proposing, it's unreasonable (read: a violation of the
specification) to try to talk SMTP over a TLS tunnel after agreeing
that the next protocol is WebSockets.  The extension adds the
semantics that are present only heuristically currently, letting us
gain a strong security property.

> If we really need another protocol identifier because the ones we have do=
n't
> hold up under attack, let's do it right this time! It needs to be treated
> just as security-critical as checking the name on a server certificate.

Indeed.  I believe NPN is the right way to do it.  It is treated as a
security-critical component by the WebSocket protocol.

> Rather than opaque<0..255> we need defined encoded values. If not, as
> someone suggested, using existing port assignments, then perhaps a string=
.
> These values should be assigned by IANA. There should be a convention for
> private-use and experimental identifiers. The valid characters, whitespac=
e
> rules, and the exact method of string comparison must be defined.

I believe that's how the extension works.

> Use with underlying transports other than TCP should be defined i.e., do =
the
> rules still apply if you run TLS over raw serial or stdin/stdout?
> What about DTLS?

Marsh, you seem confused.  Are you reading the same document I am?
Where's the dependence on TCP?

> Is there ever a case for more than one instance of a protocol on an addre=
ss?
> If you want to start another http server, say for app development, is the=
re
> an equivalent to "port 8080"? If so, wouldn't browsers and other client a=
pps
> need a way to specify it in the url?

This is present in WebSockets.  It is, in fact, carried in the URL, as
you suggest.  I feel like you and I are in violent agreement.  All the
things you're asking for are already the case.

> Are any security properties associated with some names and not others? Is
> there an equivalent to privileged "low numbered ports"? Should OS
> permissions be involved in who can start a new server?

No.  The semantics of the protocol are defined by the protocols themselves.

> How is client cert auth to be performed?

There's no interaction between NPN and client auth.  It's performed in
precisely the way it is today.

> Is it a problem that it's not configurable per-protocol?

Not that I'm aware of.

> Note that MS Windows has had, for many years now, an in-kernel https serv=
er
> which by default takes port 443. They support multiple protocols for RPC,
> remote access, and of course web serving all on the same port. I believe
> they support PPTP VPNs on 443 with a similar mechanism. What can we learn
> from that experience which might help in this design?
> (did I mention that everyone should disable NTLM?)

I'm not familiar with this design.  You're seem unduly concerned with
multiplexing.  That's not the essential feature here.  The essential
feature is agreement about what protocol we're going to speak over the
encrypted tunnel.  WebSockets would want NPN even if it were always
run on a dedicated port.

> Insecure (without RFC 5746) renegotiation can now easily be a cross-proto=
col
> attack. Should this spec forbid it?

Perhaps.  I haven't studied this question in detail.  Note that the
answer is non-obvious because the attacks that RFC 5746 is meant to
address occur in a different threat model than the one we're concerned
with here.

> Could it be made an option to get the server's list of protocols while un=
der
> a basic encrypted session, providing that confidentiality like for client
> certificates?

In the scenarios we're interested in, the client is initiating a
particular protocol.  There's no need to discover what other protocols
the server might speak.

> Should the client's SNI be allowed to or prohibited from influencing the
> server's list of supported protocols?

The server is permitted to refuse any connection it doesn't like for
any reason.  The phase of the moon can influence whether the server
opts to complete the handshake.

> Would it be advantageous for the client-selected protocol to be allowed t=
o
> influence the cert presented by the server? It's not unusual to need
> different certs for different protocols after all. Can this be accomplish=
ed
> through renegotiation? Wouldn't that leak information about what protocol
> was chosen?

This issue has been discussed previously on this thread.  Please read
my prior responses for the answer to your question.

> Will this have implications for protocols that need to poke holes for
> incoming connections =A0E.g., STUN, UPnP?

No.

> I used to work for a VPN company. We prided ourself on our client softwar=
e
> being able to find a way back to the datacenter with minimal user
> intervention in nearly all circumstances. But we were also not going to g=
o
> around boasting "Ha ha we can exfiltrate through anything you leave open =
I
> dare you to block [method X] Mr. Admin we pwn ur netz".

This paragraph seems like a non-sequitur.

> There's no way an IETF protocol can "lie low" in this respect. If the
> proposed scheme gains widespread adoption, firewalls will of necessity
> evolve to manage it (regardless of whether that can be done correctly).
>
> http://www.google.com/search?q=3D"Data+Loss+Prevention"+ssl
>
> It's one thing for a P2P app to disregard the admin's preferences, they a=
re
> budgeting ongoing development time to continually evolve their connection
> smuggling techniques in a cat-and-mouse arms race. But an IETF protocol i=
s a
> different matter. It's published, it gets used, vendors sell boxes to
> accelerate and manage it, admins deploy the boxes as well as other tools.
>
> My concern is that at the end of the day we end up with no great victory =
in
> transport neutrality. Instead we get might just get another layer of
> redundant indirection, more protocol complexity, and worst of all,
> TLS-intercepting MitM proxies sprouting all over the net like dandelions.

I'd encourage you to bring this point of view to the HyBi working
group.  It, however, is unrelated to whether we use the NPN extension.
 Currently, that working group takes the opposite viewpoint as a
requirement of the protocol, regardless of whether the protocol
involves NPN.

>> Many service
>> providers do not care about their users' privacy enough to spend any ext=
ra
>> money to protect it. If this extension becomes the standard way to enabl=
e
>> interoperable WebSockets support, then even service providers that are
>> apathetic about MitM protection might having a compelling reason to use
>> TLS.
>
> But if it requires a software (if not hardware) upgrade to support the
> extension, wouldn't that just encourage deployments to use plain HTTP?

Plain HTTP does not support the use cases WebSockets supports.  If it
did, there would be no need to invest in WebSockets.

>> Then their end-users can enjoy improved privacy and better authenticatio=
n
>> of servers when otherwise it may never be made available for them. I thi=
nk
>> this
>> could result in a snowball effect that would make encrypted and
>> server-authenticated communication much more common or even eventually
>> ubiquitous. I think the chance that this happening is reason enough to
>> integrate this mechanism into TLS.
>
> That would be nice, but it doesn't seem likely. For example, I use two
> "social networking" sites, Twitter and LinkedIn. They both appear to supp=
ort
> https urls, but fail in several ways. The sites regularly load resources
> (even script) from plain http urls. Clicking on links sometimes drops bac=
k
> to http. When they send emails or alerts from other apps, the links are a=
ll
> http. Twitter actually looks like it's gotten a bit better, but LinkedIn
> seems to just redirect me away from https completely. The point being tha=
t
> making a secure site requires a commitment to a significant development
> project.
>
> As appealing as the idea sounds to me, "encouraging" a transition before
> people would choose it on their own is likely to lead to a lot more
> self-signed certs out on the web.

Be that as it may, it's irrelevant to topic currently under discussion.

Adam

From mike-list@pobox.com  Tue Aug 17 21:27:19 2010
Return-Path: <mike-list@pobox.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id AEB323A6896 for <tls@core3.amsl.com>; Tue, 17 Aug 2010 21:27:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 PAFvuMyC3r7i for <tls@core3.amsl.com>; Tue, 17 Aug 2010 21:27:18 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 8C6D03A6897 for <tls@ietf.org>; Tue, 17 Aug 2010 21:27:17 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 336F6CE97B; Wed, 18 Aug 2010 00:27:52 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=7u4srmBg8sQH F0ViSZ/+XzAmnPE=; b=hS4pEtF5vuJhvzyqtvRbC0aP0RyjKVchrIHWboFxg/hb LbCdAAEa8XlNnhl7pUKsrqsZWIqfn7QiAtYARWKl+ylvdgpQlFlHbheElAs/X/90 PyK0RfkHd+7e2dM2eqqxpVlVpQQzzT0+tMqR6VgwnwYN+MFbg1mconMs/pAD7tc=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=XAthem FGWh9FDyizNK9/hYMS55UYyn90ozDr+ib76sGkug/Ye+OXkFe03YP5yp9wSwR1uu bd8QM/Dwu2dy/0nbJaUYUNVpjmMB4HM38Rg6InndMUbrOisHj9ZSBARjoorgsQ/p igDBA+JfghnwpRad3x/wY07t10HCQRhdGq6wk=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 19B71CE979; Wed, 18 Aug 2010 00:27:51 -0400 (EDT)
Received: from iMac.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id A041ACE978; Wed, 18 Aug 2010 00:27:49 -0400 (EDT)
Message-ID: <4C6B6144.5000200@pobox.com>
Date: Tue, 17 Aug 2010 21:27:48 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
To: Adam Barth <ietf@adambarth.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C69938A.9080808@gnutls.org> <AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com> <AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com> <4C6AB936.1070801@extendedsubset.com> <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com> <4C6AD7EA.4040307@extendedsubset.com> <000401cb3e4f$456f6d60$d04e4820$@briansmith.org> <4C6B1BAA.5060303@pobox.com> <AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com>
In-Reply-To: <AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: F6636A52-AA80-11DF-A014-9056EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 04:27:19 -0000

Adam Barth wrote:
> 
> Your opinion appears to be based on an older version of the protocol.
> Many of your complaints below have been addressed in more recent
> versions of the protocol.

Well I skimmed through the 76th (!!!) revision of the internet draft
which was the most recent available....

Mike

From ietf@adambarth.com  Tue Aug 17 21:46:09 2010
Return-Path: <ietf@adambarth.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 418C43A6894 for <tls@core3.amsl.com>; Tue, 17 Aug 2010 21:46:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.755
X-Spam-Level: 
X-Spam-Status: No, score=-1.755 tagged_above=-999 required=5 tests=[AWL=0.222,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
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 kX9GyfJrP44d for <tls@core3.amsl.com>; Tue, 17 Aug 2010 21:46:08 -0700 (PDT)
Received: from mail-yw0-f44.google.com (mail-yw0-f44.google.com [209.85.213.44]) by core3.amsl.com (Postfix) with ESMTP id ED9E23A6896 for <tls@ietf.org>; Tue, 17 Aug 2010 21:46:07 -0700 (PDT)
Received: by ywa8 with SMTP id 8so82034ywa.31 for <tls@ietf.org>; Tue, 17 Aug 2010 21:46:43 -0700 (PDT)
Received: by 10.150.69.11 with SMTP id r11mr7993469yba.446.1282106803243; Tue, 17 Aug 2010 21:46:43 -0700 (PDT)
Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx.google.com with ESMTPS id e7sm1682031ybe.4.2010.08.17.21.46.41 (version=SSLv3 cipher=RC4-MD5); Tue, 17 Aug 2010 21:46:41 -0700 (PDT)
Received: by iwn36 with SMTP id 36so281410iwn.27 for <tls@ietf.org>; Tue, 17 Aug 2010 21:46:40 -0700 (PDT)
Received: by 10.231.39.134 with SMTP id g6mr8501500ibe.151.1282106800183; Tue, 17 Aug 2010 21:46:40 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.60.18 with HTTP; Tue, 17 Aug 2010 21:46:20 -0700 (PDT)
In-Reply-To: <4C6B6144.5000200@pobox.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C69938A.9080808@gnutls.org> <AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com> <AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com> <4C6AB936.1070801@extendedsubset.com> <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com> <4C6AD7EA.4040307@extendedsubset.com> <000401cb3e4f$456f6d60$d04e4820$@briansmith.org> <4C6B1BAA.5060303@pobox.com> <AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com> <4C6B6144.5000200@pobox.com>
From: Adam Barth <ietf@adambarth.com>
Date: Tue, 17 Aug 2010 21:46:20 -0700
Message-ID: <AANLkTim+2VOgYLUS2A_EwN2MrwjnYM_jR7QU=ddmuT5x@mail.gmail.com>
To: "Michael D'Errico" <mike-list@pobox.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 04:46:09 -0000

On Tue, Aug 17, 2010 at 9:27 PM, Michael D'Errico <mike-list@pobox.com> wrote:
> Adam Barth wrote:
>> Your opinion appears to be based on an older version of the protocol.
>> Many of your complaints below have been addressed in more recent
>> versions of the protocol.
>
> Well I skimmed through the 76th (!!!) revision of the internet draft
> which was the most recent available....

As, that's before the draft was adopted as a WG item.  The working
group is in the midst of changing editors.  The most recent version of
the protocol can be found here:

http://www.whatwg.org/specs/web-socket-protocol/

I expect we'll see a -01 version of
draft-ietf-hybi-thewebsocketprotocol shortly once the new editor gets
up to speed.

Adam

From marsh@extendedsubset.com  Tue Aug 17 23:44:59 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 88D0B3A690A for <tls@core3.amsl.com>; Tue, 17 Aug 2010 23:44:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.008
X-Spam-Level: 
X-Spam-Status: No, score=-2.008 tagged_above=-999 required=5 tests=[AWL=0.591,  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 u-9DGczC59LD for <tls@core3.amsl.com>; Tue, 17 Aug 2010 23:44:57 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id 4297D3A6A09 for <tls@ietf.org>; Tue, 17 Aug 2010 23:44:57 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OlcOy-000M31-Cp; Wed, 18 Aug 2010 06:45:32 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id E8F40608D; Wed, 18 Aug 2010 06:45:27 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1/tnTz1ua9blKyO6YIMJTRKztAr8DPmWxU=
Message-ID: <4C6B8189.5080406@extendedsubset.com>
Date: Wed, 18 Aug 2010 01:45:29 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: Adam Barth <ietf@adambarth.com>, "tls@ietf.org" <tls@ietf.org>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>	<4C69938A.9080808@gnutls.org>	<AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com>	<AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com>	<4C6AB936.1070801@extendedsubset.com>	<AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com>	<4C6AD7EA.4040307@extendedsubset.com>	<000401cb3e4f$456f6d60$d04e4820$@briansmith.org>	<4C6B1BAA.5060303@pobox.com> <AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com>
In-Reply-To: <AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 06:44:59 -0000

On 08/17/2010 11:21 PM, Adam Barth wrote:

> On Tue, Aug 17, 2010 at 5:14 PM, Marsh Ray<marsh@extendedsubset.com>  wrote:

>> Port 443 isn't magic. It's just as DoS-able as others, if not more so.
>> Multiplexing multiple protocols on top of port 443 might even limit your
>> options in the event of an actual DoS (possibly inadvertent).
>
> Indeed.  We're not talking about DoS protection.

I wasn't the one who brought it up.

>> Oh and I forgot: disable NTLM (my latest crusade).
>> http://extendedsubset.com/?p=36
>
> I don't understand how this relates to the topic at hand.

Cross protocol attack.

>> Interesting, I had heard of that. Link?
>
> This is a well-established fact.

Nice, I'll have to use that one sometime. :-)

> I don't think this is the proper forum to debate the performance
> requirements of the WebSocket protocol.  Suffice it to say that the
> folks who want to use the protocol want it to be fast.  That doesn't
> sound unreasonable to me.

So, is NPN about WebSockets or not? Is the WebSocket use case an 
important driver for the requirements of NPN?

Are there other protocols that would benefit from this functionality?

If not, why is there so much discussion about WebSockets?

> With or without this extension, the current plan in the HyBi working
> group is to multiplex WebSockets with HTTPS over port 443.  If you
> think that's a bad idea, you'll need take that up with the HyBi
> working group.

Whatever.

I'm just trying to find out what
draft-agl-tls-nextprotoneg-00 is acutally proposing.

> The purpose of this TLS extension is to improve the
> security of the protocol, not to enable multiplexing.

So the purpose of NPN is to improve security of "the protocol". Which 
protocol is that again?

It's not a purpose of NPN to enable multiplexing?

 From http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-00#page-5
> Rather than forcing systems
>    administrators to use different IP addresses for every service,
>    negotiation allows multiple services to exist with the same IP
>    address.

> That's not the goal.  Please refer to my earlier emails for a
> description of the security properties we seek to obtain with this
> extension.

OK, resisting traffic analysis is not a goal of NPN.

> Indeed.  That's because this is the problem we seek to solve with this
> extension.

OK, the NPN proposal attempts to mitigate cross protocol attacks.

But draft-agl-tls-nextprotoneg-00 doesn't seem to say anything about 
cross-protocol attacks, it doesn't mention attacks of any sort.

It says:
> Abstract
>
>    This document describes a Transport Layer Security (TLS) extension
>    for application layer protocol negotiation.  This allows the
>    application layer to negotiate which protocol should be performed
>    over the secure connection in a manner which avoids additional round
>    trips and which is independent of the application layer protocols.

Sounds to me like the I-D is saying it's a protocol-agnostic 
multiplexing scheme which can avoid round trips.

> In the protocol
> we're proposing, it's unreasonable (read: a violation of the
> specification) to try to talk SMTP over a TLS tunnel after agreeing
> that the next protocol is WebSockets.

I'm sure it's a violation of many specifications to use an HTTP POST to 
send spam.

At what layer of the stack do you envision this being enforced? Is the 
TLS library expected to detect and prevent this condition? Is 
application layer code expected to supply and check for the correct 
protocol identifier with every handshake? Where is this process described?

Are you proposing updating every piece of application software 
functioning as a TLS server or client? Or is it done somehow automagially?

>  The extension adds the
> semantics that are present only heuristically currently, letting us
> gain a strong security property.

I see something (but what?) being stated explicitly in the protocol, 
which could be useful. But I don't see the mechanism which is going to 
guarantee this as a strong property.

> Indeed.  I believe NPN is the right way to do it.  It is treated as a
> security-critical component by the WebSocket protocol.

Oh. Is it intended then to simply pass these opaque elements (like 
selected_protocol) to WebSockets to check it for validity?

What about or the other higher-level protocols that supposedly beenfit 
from this? Again, must they be updated to check it too?

>> Rather than opaque<0..255>  we need defined encoded values. If not, as
>> someone suggested, using existing port assignments, then perhaps a string.
>> These values should be assigned by IANA. There should be a convention for
>> private-use and experimental identifiers. The valid characters, whitespace
>> rules, and the exact method of string comparison must be defined.
>
> I believe that's how the extension works.

I believe in the I-D, and it says:

 >    struct {
 >      opaque selected_protocol<0..255>;
 >      opaque padding<0..255>;
 >    } NextProtocol;

There's no description of the contents of the selected_protocol and 
padding elements!

http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-00
> 5.  IANA Considerations
>
>    This document requires IANA to update its registry of TLS extensions
>    to assign an entry, referred herein as "next_protocol_negotiation".
>
>    This document also requires IANA to update its registry of TLS
>    handshake types to assign an entry, referred herein as
>    "next_protocol".

I don't see anything describing how the valid protocol identifiers are 
to be assigned.

>> Use with underlying transports other than TCP should be defined i.e., do the
>> rules still apply if you run TLS over raw serial or stdin/stdout?
>> What about DTLS?
>
> Marsh, you seem confused.

No kidding!

> Are you reading the same document I am?

Is this right?
http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-00

> Where's the dependence on TCP?

http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-00
>    Firstly, for various reasons, different application layer protocols
>    are increasingly being carried over TLS using a small set of TCP port
>    numbers, most often port 443.

It's not a protocol dependence on TCP per se, but any systematic 
protocol naming scheme is likely to run into the TCP vs UDP name 
overloading.

Perhaps I was jumping the gun to assume there was a systematic protocol 
naming scheme being discussed here.

>> Is there ever a case for more than one instance of a protocol on an address?
>> If you want to start another http server, say for app development, is there
>> an equivalent to "port 8080"? If so, wouldn't browsers and other client apps
>> need a way to specify it in the url?
>
> This is present in WebSockets.  It is, in fact, carried in the URL, as
> you suggest.  I feel like you and I are in violent agreement.  All the
> things you're asking for are already the case.

I feel like I'm violently confused. Assume that I haven't looked into 
WebSockets beyond skimming the Wikipedia artice.

Just what are we talking about: the proposed NPN TLS extension, or 
WebSockets?

Does NPN have significant utility beyond WebSockets? The subject line 
says NPN and that I-D doesn't mention WebSockets.

>> Are any security properties associated with some names and not others? Is
>> there an equivalent to privileged "low numbered ports"? Should OS
>> permissions be involved in who can start a new server?
>
> No.  The semantics of the protocol are defined by the protocols themselves.

By cramming everything onto port 443 I expect people will bring a lot of 
expectations from OS-land about how such a resource should be shared and 
access authorized.

>> How is client cert auth to be performed?
>
> There's no interaction between NPN and client auth.  It's performed in
> precisely the way it is today.
>> Is it a problem that it's not configurable per-protocol?
>
> Not that I'm aware of.

You're saying it's not reasonable for someone to negotiate the use of 
client certs (or not) on a per-protocol basis?

Let me guess: that capability is not needed for WebSockets.

>> Note that MS Windows has had, for many years now, an in-kernel https server
>> which by default takes port 443. They support multiple protocols for RPC,
>> remote access, and of course web serving all on the same port. I believe
>> they support PPTP VPNs on 443 with a similar mechanism. What can we learn
>> from that experience which might help in this design?
>> (did I mention that everyone should disable NTLM?)
>
> I'm not familiar with this design.

It works pretty seamlessly.

Here's a VPN using it:
http://technet.microsoft.com/en-us/magazine/2007.06.cableguy.aspx

Search for "443" on this page:
http://support.microsoft.com/kb/832017

> You're seem unduly concerned with
> multiplexing.  That's not the essential feature here.

Again, quoting from
http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-00#page-5
"negotiation allows multiple services to exist with the same IP address."

Regardless, if it does negotiation, it seems like a pretty important 
thing to get right. It's probably what most admins are going to 
associate with configuring support for this extension.

> The essential
> feature is agreement about what protocol we're going to speak over the
> encrypted tunnel.  WebSockets would want NPN even if it were always
> run on a dedicated port.

Why?

Established methods exist to find a service on an assigned port, make a 
handshake to confirm what protocol is being spoken, and perform a decent 
authentication (unless anonymous connections are truly desired.)

Why does this now need a new TLS extension and even a new handshake 
message? Is it just that you're expecting to be using TLS anyway and can 
maybe save a round trip that way?

If an attacker can point to a vulnerable server port with any handshake, 
he can blast it with a TLS client hello handshake, too.

>> Insecure (without RFC 5746) renegotiation can now easily be a cross-protocol
>> attack. Should this spec forbid it?
>
> Perhaps.  I haven't studied this question in detail.  Note that the
> answer is non-obvious because the attacks that RFC 5746 is meant to
> address occur in a different threat model than the one we're concerned
> with here.

I see.

>> Could it be made an option to get the server's list of protocols while under
>> a basic encrypted session, providing that confidentiality like for client
>> certificates?
>
> In the scenarios we're interested in, the client is initiating a
> particular protocol.  There's no need to discover what other protocols
> the server might speak.

Then why does the doc say:
>    The "extension_data" field in a "ServerHello" and the "NextProtocol"
>    message contain opaque bytes to be used by the application layer to
>    negotiate the application layer protocol.  The format of this data is
>    not specified in this draft.

And yet:
> 4.  Security considerations
>
>    The server's list of supported protocols is still advertised in the
>    clear with this extension.  This may be undesirable for certain

So is the server defined to send a list of its supported protocols in 
the server hello extension, or not? If so, shouldn't it be done in at 
least a defined way? If not, just what the heck is it sending?

>> Should the client's SNI be allowed to or prohibited from influencing the
>> server's list of supported protocols?
>
> The server is permitted to refuse any connection it doesn't like for
> any reason.  The phase of the moon can influence whether the server
> opts to complete the handshake.

OK.

> This paragraph seems like a non-sequitur.

You cut out the part I was replying to.

>> My concern is that at the end of the day we end up with no great victory in
>> transport neutrality. Instead we get might just get another layer of
>> redundant indirection, more protocol complexity, and worst of all,
>> TLS-intercepting MitM proxies sprouting all over the net like dandelions.
>
> I'd encourage you to bring this point of view to the HyBi working
> group.  It, however, is unrelated to whether we use the NPN extension.

I think I have a valid concern here which relates directly to the 
evolution of TLS.

But I still don't get it. Was this extension to TLS proposed just for 
the benefit of this HyBi working group?

Who is this "we" you are referring to?

This is starting to feel a little creepy.

>   Currently, that working group takes the opposite viewpoint as a
> requirement of the protocol, regardless of whether the protocol
> involves NPN.

I don't understand.

>> But if it requires a software (if not hardware) upgrade to support the
>> extension, wouldn't that just encourage deployments to use plain HTTP?
>
> Plain HTTP does not support the use cases WebSockets supports.  If it
> did, there would be no need to invest in WebSockets.

I thought WebSockets could begin a handshake looking sorta like plain HTTP?

>>> Then their end-users can enjoy improved privacy and better authentication
>>> of servers when otherwise it may never be made available for them. I think
>>> this
>>> could result in a snowball effect that would make encrypted and
>>> server-authenticated communication much more common or even eventually
>>> ubiquitous. I think the chance that this happening is reason enough to
>>> integrate this mechanism into TLS.
>>
>> As appealing as the idea sounds to me, "encouraging" a transition before
>> people would choose it on their own is likely to lead to a lot more
>> self-signed certs out on the web.
>
> Be that as it may, it's irrelevant to topic currently under discussion.

Last I checked the Subject line was:

    Re: [TLS] Request for review: Next Protocol Negotiation Extension

I think the question of what this thing is and whether or not it adds 
general utility to TLS (or is part of some unspecified grand plan) is 
entirely relevant.

I feel like I'm totally getting the runaround here.

On person says "it is this" another says "it is not that, it is this".

The I-D talks about a round trip, protocol multiplexing, and something 
about HTTP pipelining. It says there will be a new extension and a new 
handshake message, yet every single octet they carry are opaque and the 
document claims they are out of scope.

Come on, what's going on here?

- Marsh

From ondrej.sury@nic.cz  Wed Aug 18 00:43:12 2010
Return-Path: <ondrej.sury@nic.cz>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 9EFF13A6849; Wed, 18 Aug 2010 00:43:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.7
X-Spam-Level: 
X-Spam-Status: No, score=-1.7 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_23=0.6, MIME_8BIT_HEADER=0.3, NO_RELAYS=-0.001]
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 2MJTabt5gVsV; Wed, 18 Aug 2010 00:43:11 -0700 (PDT)
Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) by core3.amsl.com (Postfix) with ESMTP id CB06D3A6A28; Wed, 18 Aug 2010 00:43:10 -0700 (PDT)
Received: from [IPv6:2001:1488:ac14:1400:224:e8ff:fea9:f617] (unknown [IPv6:2001:1488:ac14:1400:224:e8ff:fea9:f617]) by mail.nic.cz (Postfix) with ESMTPSA id 5307D73440F; Wed, 18 Aug 2010 09:43:45 +0200 (CEST)
Message-ID: <4C6B8F30.6050101@nic.cz>
Date: Wed, 18 Aug 2010 09:43:44 +0200
From: =?UTF-8?B?T25kxZllaiBTdXLDvQ==?= <ondrej.sury@nic.cz>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2
MIME-Version: 1.0
To: dnsop@ietf.org, tls@ietf.org, pkix@ietf.org, saag@ietf.org
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Subject: [TLS] FYI: New Non-WG Mailing List: keyassure -- Key Assurance With DNSSEC
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 07:43:12 -0000

Hi,

this is the mailing list for discussing and proposing new ways how to 
use the fact that we have a DNSSEC @ root zone.

You may want to read:

The problem statement I and Warren wrote:
http://www.ietf.org/mail-archive/web/keyassure/current/msg00000.html

New I-D by Jakob, Paul, Warren and Adam:
http://www.ietf.org/internet-drafts/draft-hoffman-keys-linkage-from-dns-00.txt

Slightly older CERT RR (which we already have):
http://tools.ietf.org/html/rfc4398

And various older proposals which didn't make it:

(Jakob's)
http://stupid.domain.name/ietf/draft-schlyter-pkix-dns-02.txt

(RR TYPE request I did)
http://www.ops.ietf.org/lists/namedroppers/namedroppers.2009/msg00421.html

This is just to summarize the ideas which were floating around for some 
time.  The basis on our work will be in the most recent I-D.

Ondrej

-------- Original Message --------
Subject: New Non-WG Mailing List: keyassure -- Key Assurance With DNSSEC
Date: Tue, 17 Aug 2010 11:36:02 -0700 (PDT)
From: IETF Secretariat <ietf-secretariat@ietf.org>
To: IETF Announcement list <ietf-announce@ietf.org>
CC: keyassure@ietf.org, ondrej.sury@nic.cz, warren@kumari.net

A new IETF non-working group email list has been created.

List address: keyassure@ietf.org
Archive:
http://www.ietf.org/mail-archive/web/keyassure/current/maillist.html
To subscribe: https://www.ietf.org/mailman/listinfo/keyassure

Description: This list is for discussion relating to using
DNSSEC-protected DNS queries to get greater assurance for keys and
certificates that are passed in existing IETF protocols. The main idea 
is that a relying party can get additional information about a domain 
name to eliminate the need for using a certificate in a protocol, to 
eliminate the need for sending certificates in the protocol if they are 
optional, and/or to assure that the certificate given in a protocol is 
associated with the domain name used by the application. In all three 
cases, the application associates the key or key fingerprint securely 
retrieved from the DNS with the domain name that was used in the DNS query.

For additional information, please contact the list administrators.


-- 
  OndÅ™ej SurÃ½
  vedoucÃ­ vÃ½zkumu/Head of R&D department
  -------------------------------------------
  CZ.NIC, z.s.p.o.    --    LaboratoÅ™e CZ.NIC
  Americka 23, 120 00 Praha 2, Czech Republic
  mailto:ondrej.sury@nic.cz    http://nic.cz/
  tel:+420.222745110       fax:+420.222745112
  -------------------------------------------

From ietf@adambarth.com  Wed Aug 18 01:42:30 2010
Return-Path: <ietf@adambarth.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 045763A6A59 for <tls@core3.amsl.com>; Wed, 18 Aug 2010 01:42:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.459
X-Spam-Level: 
X-Spam-Status: No, score=-1.459 tagged_above=-999 required=5 tests=[AWL=-0.082, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, J_CHICKENPOX_33=0.6]
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 TcgSGqwLRx4b for <tls@core3.amsl.com>; Wed, 18 Aug 2010 01:42:24 -0700 (PDT)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by core3.amsl.com (Postfix) with ESMTP id 70CA03A6A2E for <tls@ietf.org>; Wed, 18 Aug 2010 01:42:24 -0700 (PDT)
Received: by iwn3 with SMTP id 3so457570iwn.31 for <tls@ietf.org>; Wed, 18 Aug 2010 01:42:59 -0700 (PDT)
Received: by 10.231.183.134 with SMTP id cg6mr8807996ibb.197.1282120979695; Wed, 18 Aug 2010 01:42:59 -0700 (PDT)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by mx.google.com with ESMTPS id r3sm26008ibk.1.2010.08.18.01.42.57 (version=SSLv3 cipher=RC4-MD5); Wed, 18 Aug 2010 01:42:58 -0700 (PDT)
Received: by iwn3 with SMTP id 3so457518iwn.31 for <tls@ietf.org>; Wed, 18 Aug 2010 01:42:57 -0700 (PDT)
Received: by 10.231.32.69 with SMTP id b5mr8802961ibd.153.1282120977148; Wed, 18 Aug 2010 01:42:57 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.60.18 with HTTP; Wed, 18 Aug 2010 01:42:35 -0700 (PDT)
In-Reply-To: <4C6B8189.5080406@extendedsubset.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C69938A.9080808@gnutls.org> <AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com> <AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com> <4C6AB936.1070801@extendedsubset.com> <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com> <4C6AD7EA.4040307@extendedsubset.com> <000401cb3e4f$456f6d60$d04e4820$@briansmith.org> <4C6B1BAA.5060303@pobox.com> <AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com> <4C6B8189.5080406@extendedsubset.com>
From: Adam Barth <ietf@adambarth.com>
Date: Wed, 18 Aug 2010 01:42:35 -0700
Message-ID: <AANLkTi=9TLG4f5eZ6h6duYKvcVueT53H26WNZpWV6TKS@mail.gmail.com>
To: "tls@ietf.org" <tls@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 08:42:30 -0000

On Tue, Aug 17, 2010 at 11:45 PM, Marsh Ray <marsh@extendedsubset.com> wrot=
e:
> On 08/17/2010 11:21 PM, Adam Barth wrote:
>> Indeed. =A0We're not talking about DoS protection.
>
> I wasn't the one who brought it up.

Yeah, I should have pointed out earlier that it was off-topic.  You
replied before I got a chance to.

>> I don't think this is the proper forum to debate the performance
>> requirements of the WebSocket protocol. =A0Suffice it to say that the
>> folks who want to use the protocol want it to be fast. =A0That doesn't
>> sound unreasonable to me.
>
> So, is NPN about WebSockets or not? Is the WebSocket use case an importan=
t
> driver for the requirements of NPN?

>From my perspective, WebSockets are the primary driver for NPN.
However, it's likely that not everyone agrees with me.  However,
complaining about WebSockets isn't appropriate for this forum.  Those
issues should be brought up in the HyBi working group.  In particular,
you seem to disagree with some of the basic design decisions as
captured in draft-ietf-hybi-websocket-requirements.  That working
group is going to design a protocol with those properties by one
mechanism or another.  If you'd rather that didn't happen, you should
really bring up those concerns in the proper forum.

> Are there other protocols that would benefit from this functionality?

Hopefully.  :)

> If not, why is there so much discussion about WebSockets?

I believe a TLS+NPN handshake is the best design for WebSockets.  As
that design involves a TLS extension, I've been asked to bring the
pieces that touch TLS to this working group for feedback about how
they interact with TLS as a whole.

> I'm just trying to find out what
> draft-agl-tls-nextprotoneg-00 is acutally proposing.

Feel free to read the draft.

>> The purpose of this TLS extension is to improve the
>> security of the protocol, not to enable multiplexing.
>
> So the purpose of NPN is to improve security of "the protocol". Which
> protocol is that again?

WebSockets.

> It's not a purpose of NPN to enable multiplexing?

I think your confusion might be stemming from confusing me with Adam
Langley.  Although we're both named Adam, we're are, in fact,
different people with different interests.  Adam Langley originally
design NPN for another use case.  However, the mechanism he design is
deliciously elegant and turns out to be exactly what WebSockets needs
to avoid cross-protocol attacks.  In fact, when he wrote
draft-agl-tls-nextprotoneg-00, no one had yet realized that NPN was
useful for WebSockets.  We only figured that out later.  I'll ask Adam
to update the draft with our current thinking on the topic.

> OK, resisting traffic analysis is not a goal of NPN.

No.  As you and others have pointed out, that's a fools errand.

>> Indeed. =A0That's because this is the problem we seek to solve with this
>> extension.
>
> OK, the NPN proposal attempts to mitigate cross protocol attacks.

Precisely.

> But draft-agl-tls-nextprotoneg-00 doesn't seem to say anything about
> cross-protocol attacks, it doesn't mention attacks of any sort.

Indeed.  That's because Adam didn't know it was useful for that when
he wrote the document.  Turns out, NPN sits at a very nice point in
the design space.  I suspect it will be useful for many things that we
currently are not aware of as well.

> Sounds to me like the I-D is saying it's a protocol-agnostic multiplexing
> scheme which can avoid round trips.

That might have been Adam's original motivation, much like HTTP's
original motivation was the transport of HTML document but we've
discovered that HTTP is useful for a great many other things, some of
which might be more important than transporting scientific papers
around CERN.

>> In the protocol
>> we're proposing, it's unreasonable (read: a violation of the
>> specification) to try to talk SMTP over a TLS tunnel after agreeing
>> that the next protocol is WebSockets.
>
> I'm sure it's a violation of many specifications to use an HTTP POST to s=
end
> spam.

The only participant in that scenario that's breaking any rules is the
attacker.  I don't know about you, but I usually imagine that
attackers are willing to break whatever rules they choose.

> At what layer of the stack do you envision this being enforced?

By the browser, of course.

> Is the TLS library expected to detect and prevent this condition?

No.

> Is application layer
> code expected to supply and check for the correct protocol identifier wit=
h
> every handshake?

Yes.

> Where is this process described?

In the WebSocket specification.

> Are you proposing updating every piece of application software functionin=
g
> as a TLS server or client?

No.  Don't be ridiculous.

> Or is it done somehow automagially?

Folks who don't wish to identify which protocol they intend to speak
after the TLS handshake can safely not use the extension.  Folks, such
as WebSockets, for which this information is critical to their
security model, will be required to use the extension by the
definition of the protocol.

>> The extension adds the
>> semantics that are present only heuristically currently, letting us
>> gain a strong security property.
>
> I see something (but what?) being stated explicitly in the protocol, whic=
h
> could be useful. But I don't see the mechanism which is going to guarante=
e
> this as a strong property.

This is how browser security works.  The browser sets the ground rules
for what the attacker can do by exposing or not exposing various APIs
to web sites.  In this case, the browser will expose the WebSocket
API, which permits the attacker (a malicious web site) to engage in
the WebSocket protocol via the user's browser.  I believe the piece
you're missing is the browser as the enforcer of security rules.
While I appreciate that you might not be used to thinking about
security in these terms, I can assure you that this design is quite
pedestrian in the browser world.

>> Indeed. =A0I believe NPN is the right way to do it. =A0It is treated as =
a
>> security-critical component by the WebSocket protocol.
>
> Oh. Is it intended then to simply pass these opaque elements (like
> selected_protocol) to WebSockets to check it for validity?

I didn't understand your question.

> What about or the other higher-level protocols that supposedly beenfit fr=
om
> this?

I haven't mentioned any other high-level protocols.

> Again, must they be updated to check it too?

No.  Because they don't participate in NPN, the counter party (either
the client or the server, depending on who we're worried about at the
moment) will notice that they're not using NPN and hence must not be
speaking WebSockets (as all the folks who speak WebSockets use NPN).
They can then safely terminate the connection without risk of
accidentally speaking WebSockets to a counter party who is not
speaking WebSockets.

>>> Rather than opaque<0..255> =A0we need defined encoded values. If not, a=
s
>>> someone suggested, using existing port assignments, then perhaps a
>>> string.
>>> These values should be assigned by IANA. There should be a convention f=
or
>>> private-use and experimental identifiers. The valid characters,
>>> whitespace
>>> rules, and the exact method of string comparison must be defined.
>>
>> I believe that's how the extension works.
>
> I believe in the I-D, and it says:
>
>> =A0 =A0struct {
>> =A0 =A0 =A0opaque selected_protocol<0..255>;
>> =A0 =A0 =A0opaque padding<0..255>;
>> =A0 =A0} NextProtocol;
>
> There's no description of the contents of the selected_protocol and paddi=
ng
> elements!

Thanks for your feedback.  This looks to be an area in which we can
improve the extension.

> http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-00
>>
>> 5. =A0IANA Considerations
>>
>> =A0 This document requires IANA to update its registry of TLS extensions
>> =A0 to assign an entry, referred herein as "next_protocol_negotiation".
>>
>> =A0 This document also requires IANA to update its registry of TLS
>> =A0 handshake types to assign an entry, referred herein as
>> =A0 "next_protocol".
>
> I don't see anything describing how the valid protocol identifiers are to=
 be
> assigned.

Thanks for your feedback.  This looks to be an area in which we can
improve the extension.

>> Are you reading the same document I am?
>
> Is this right?
> http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-00

Perhaps the problem is that our thinking has evolved a bit since
January.  I'll ask Adam to update the draft with our current thinking.

>> Where's the dependence on TCP?
>
> http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-00
>>
>> =A0 Firstly, for various reasons, different application layer protocols
>> =A0 are increasingly being carried over TLS using a small set of TCP por=
t
>> =A0 numbers, most often port 443.
>
> It's not a protocol dependence on TCP per se, but any systematic protocol
> naming scheme is likely to run into the TCP vs UDP name overloading.
>
> Perhaps I was jumping the gun to assume there was a systematic protocol
> naming scheme being discussed here.

My apologies.  That text that reflects eight month old thinking.

>> This is present in WebSockets. =A0It is, in fact, carried in the URL, as
>> you suggest. =A0I feel like you and I are in violent agreement. =A0All t=
he
>> things you're asking for are already the case.
>
> I feel like I'm violently confused. Assume that I haven't looked into
> WebSockets beyond skimming the Wikipedia artice.

Perhaps it's worth examining in more depth before forming an opinion about.

> Just what are we talking about: the proposed NPN TLS extension, or
> WebSockets?

>From this working group, I'm interested in feedback about NPN.  To
understand what properties we'd like out of NPN, it's helpful to
understand WebSockets as context.  If you'd like to provide feedback
about WebSockets, kindly direct that feedback to the HyBi working
group.

> Does NPN have significant utility beyond WebSockets?

At the moment, I'm most interested in using NPN for WebSockets.  I
suspect we will find that it has utility beyond WebSockets in the
future, but I'm not interested in loading NPN up with lots of
complexity to address every imaginable use case.

> The subject line says NPN and that I-D doesn't mention WebSockets.

That's because WebSockets didn't exist in their current form when the
draft was written.

>>> Are any security properties associated with some names and not others? =
Is
>>> there an equivalent to privileged "low numbered ports"? Should OS
>>> permissions be involved in who can start a new server?
>>
>> No. =A0The semantics of the protocol are defined by the protocols
>> themselves.
>
> By cramming everything onto port 443 I expect people will bring a lot of
> expectations from OS-land about how such a resource should be shared and
> access authorized.

I think by now you can predict my answer to this comment.  :)

>>> How is client cert auth to be performed?
>>
>> There's no interaction between NPN and client auth. =A0It's performed in
>> precisely the way it is today.
>>>
>>> Is it a problem that it's not configurable per-protocol?
>>
>> Not that I'm aware of.
>
> You're saying it's not reasonable for someone to negotiate the use of cli=
ent
> certs (or not) on a per-protocol basis?

I'm saying that's a separate issue.  If you have a pressing need to
solve that problem, I'm sure we can design a very nice solution for
you.  Currently, that's not the problem I face.

> Let me guess: that capability is not needed for WebSockets.

Indeed.

[Snip a bunch of redundant text about multiplexing.]

>> The essential
>> feature is agreement about what protocol we're going to speak over the
>> encrypted tunnel. =A0WebSockets would want NPN even if it were always
>> run on a dedicated port.
>
> Why?

As I've said before, to prevent cross-protocol vulnerabilities.

> Established methods exist to find a service on an assigned port, make a
> handshake to confirm what protocol is being spoken, and perform a decent
> authentication (unless anonymous connections are truly desired.)

Currently there does not exist a mechanism to perform a handshake to
confirm what protocol is being spoken.  That is precisely the missing
piece that we need to achieve the security properties we want for
WebSockets.  What mechanism did you have in mind?  As far as I know,
NPN is the best.

> Why does this now need a new TLS extension and even a new handshake messa=
ge?
> Is it just that you're expecting to be using TLS anyway and can maybe sav=
e a
> round trip that way?

No.  I know of no other way to do it.  Do you have something else in
mind?  The best the HyBi working group can come up with (as from NPN)
is some extremely hacky protocol involving the MD5 of three different
nonces.

> If an attacker can point to a vulnerable server port with any handshake, =
he
> can blast it with a TLS client hello handshake, too.

You're forgetting that the attacker, in this scenario, is a malicious
web site and so is limited to the network facilities provided by the
browser.  (Of course, we care about other sorts of attackers too, but
we have other security mechanisms to prevent them from causing harm.)

> Then why does the doc say:

See above.  The motivation in the draft is outdated.

>>> My concern is that at the end of the day we end up with no great victor=
y
>>> in transport neutrality. Instead we get might just get another layer of
>>> redundant indirection, more protocol complexity, and worst of all,
>>> TLS-intercepting MitM proxies sprouting all over the net like dandelion=
s.
>>
>> I'd encourage you to bring this point of view to the HyBi working
>> group. =A0It, however, is unrelated to whether we use the NPN extension.
>
> I think I have a valid concern here which relates directly to the evoluti=
on
> of TLS.

You might well.  However, the HyBi working group is going to continue
on the path of multiplexing WebSockets and HTTPS over port 443 without
or without NPN.  If you find that objectionable (which you appear to),
you should bring your objection to the HyBi working group.  In any
case, it's quite independent of NPN.

> But I still don't get it. Was this extension to TLS proposed just for the
> benefit of this HyBi working group?

Yes.

> Who is this "we" you are referring to?

The HyBi working group.

> This is starting to feel a little creepy.

Why?  To solve a particular design problem, one IETF working group is
considering a design that makes use of technology designed by another
IETF working group.  It seems quite appropriate for that working group
to ask for advice from the experts in the other working group.

>>> But if it requires a software (if not hardware) upgrade to support the
>>> extension, wouldn't that just encourage deployments to use plain HTTP?
>>
>> Plain HTTP does not support the use cases WebSockets supports. =A0If it
>> did, there would be no need to invest in WebSockets.
>
> I thought WebSockets could begin a handshake looking sorta like plain HTT=
P?

In my opinion, that handshake is garbage (to use your term).  More
seriously, I believe we can achieve better security by using TLS+NPN
instead of the hacky nonce/MD5 handshake that "sorta" looks like plain
HTTP.

>>> As appealing as the idea sounds to me, "encouraging" a transition befor=
e
>>> people would choose it on their own is likely to lead to a lot more
>>> self-signed certs out on the web.
>>
>> Be that as it may, it's irrelevant to topic currently under discussion.
>
> Last I checked the Subject line was:
>
> =A0 Re: [TLS] Request for review: Next Protocol Negotiation Extension
>
> I think the question of what this thing is and whether or not it adds
> general utility to TLS (or is part of some unspecified grand plan) is
> entirely relevant.

Yes, but that's not what you were talking about.  I'm not interested
in discussing whether using TLS for some obscure feature of the web
platform will start a great movement to encrypting every byte on the
Internet.  If you're interested in discussing that topic, please start
a new thread.

> I feel like I'm totally getting the runaround here.
>
> On person says "it is this" another says "it is not that, it is this".

Brian Smith does not speak for me.  I speak for me.  Just because some
random person thinks NPN really useful for chopping vegetables doesn't
mean I'm giving you the run around when I say I'd rather use this
device to chop vegetables:

http://www.youtube.com/watch?v=3DrUbWjIKxrrs

> The I-D talks about a round trip, protocol multiplexing, and something ab=
out
> HTTP pipelining. It says there will be a new extension and a new handshak=
e
> message, yet every single octet they carry are opaque and the document
> claims they are out of scope.

I apologize that the draft is out of date.  I should have asked Adam
to update the document before I emailed the list.

> Come on, what's going on here?

What's going on is precisely what I've been saying from the beginning.
 In particular, I'm interested in resolving this ticket in the HyBi
working group:

http://trac.tools.ietf.org/wg/hybi/trac/ticket/14

As requested by various folks, I'm bringing the NPN extension to this
working group to gather feedback on how the extension interacts with
TLS.

Kind regards,
Adam

From juhovh@iki.fi  Wed Aug 18 02:36:43 2010
Return-Path: <juhovh@iki.fi>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 911A13A68E1 for <tls@core3.amsl.com>; Wed, 18 Aug 2010 02:36:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.699
X-Spam-Level: 
X-Spam-Status: No, score=-1.699 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_33=0.6, 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 PFR3dl4Jxke3 for <tls@core3.amsl.com>; Wed, 18 Aug 2010 02:36:41 -0700 (PDT)
Received: from smtp03.tky.fi (smtp03.tky.fi [82.130.63.73]) by core3.amsl.com (Postfix) with SMTP id 0F9933A6872 for <tls@ietf.org>; Wed, 18 Aug 2010 02:36:40 -0700 (PDT)
Received: from smtp.vaha-herttua.fi ([82.130.46.36]) by smtp03.tky.fi (SMSSMTP 4.1.9.35) with SMTP id M2010081812371111277 ; Wed, 18 Aug 2010 12:37:11 +0300
Received: from [192.168.1.121] (N243-60.surffi.net [80.247.243.60]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.vaha-herttua.fi (Postfix) with ESMTPSA id 516751FC71; Wed, 18 Aug 2010 12:37:18 +0300 (EEST)
Mime-Version: 1.0 (Apple Message framework v1081)
Content-Type: multipart/signed; boundary=Apple-Mail-1-1021833375; protocol="application/pkcs7-signature"; micalg=sha1
From: =?iso-8859-1?Q?Juho_V=E4h=E4-Herttua?= <juhovh@iki.fi>
In-Reply-To: <AANLkTi=9TLG4f5eZ6h6duYKvcVueT53H26WNZpWV6TKS@mail.gmail.com>
Date: Wed, 18 Aug 2010 12:37:07 +0300
Message-Id: <F91CB64B-E0F6-42B7-B91B-F9F7464709E1@iki.fi>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C69938A.9080808@gnutls.org> <AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com> <AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com> <4C6AB936.1070801@extendedsubset.com> <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com> <4C6AD7EA.4040307@extendedsubset.com> <000401cb3e4f$456f6d60$d04e4820$@briansmith.org> <4C6B1BAA.5060303@pobox.com> <AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com> <4C6B8189.5080406@extendedsubset.com> <AANLkTi=9TLG4f5eZ6h6duYKvcVueT53H26WNZpWV6TKS@mail.gmail.com>
To: Adam Barth <ietf@adambarth.com>
X-Mailer: Apple Mail (2.1081)
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 09:36:43 -0000

--Apple-Mail-1-1021833375
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 18.8.2010, at 11.42, Adam Barth wrote:
>>>> Rather than opaque<0..255>  we need defined encoded values. If not, =
as
>>>> someone suggested, using existing port assignments, then perhaps a
>>>> string.
>>>> These values should be assigned by IANA. There should be a =
convention for
>>>> private-use and experimental identifiers. The valid characters,
>>>> whitespace
>>>> rules, and the exact method of string comparison must be defined.
>>>=20
>>> I believe that's how the extension works.
>>=20
>> I believe in the I-D, and it says:
>>=20
>>>    struct {
>>>      opaque selected_protocol<0..255>;
>>>      opaque padding<0..255>;
>>>    } NextProtocol;
>>=20
>> There's no description of the contents of the selected_protocol and =
padding
>> elements!
>=20
> Thanks for your feedback.  This looks to be an area in which we can
> improve the extension.

This is a serious concern so far, since if the selected_protocol is not =
very well defined, two different users of the NPN extension might be =
conflicting. I don't know if using the port assignments is a good idea, =
since there are many undocumented and conflicting port uses as well. On =
the other hand a string identifier just feels a bit dirty...

>>>> But if it requires a software (if not hardware) upgrade to support =
the
>>>> extension, wouldn't that just encourage deployments to use plain =
HTTP?
>>>=20
>>> Plain HTTP does not support the use cases WebSockets supports.  If =
it
>>> did, there would be no need to invest in WebSockets.
>>=20
>> I thought WebSockets could begin a handshake looking sorta like plain =
HTTP?
>=20
> In my opinion, that handshake is garbage (to use your term).  More
> seriously, I believe we can achieve better security by using TLS+NPN
> instead of the hacky nonce/MD5 handshake that "sorta" looks like plain
> HTTP.

If that handshake is garbage, are there similar plans to "fix" the plain =
HTTP version of WebSockets, or is the plan that NPN would be used with =
TLS and the old handshake is used with HTTP? This sounds like it makes =
the life of WebSockets implementors a much harder, since they have to =
consider two completely different schemes, wouldn't it?

Since the plan of NPN is to improve the security of WebSockets, what =
kind of attacks it protects against, compared to simply having the HTTP =
style handshake negotiation inside a secure TLS connection? I understand =
that the protocol is much "cleaner" in a way with NPN, but in case it is =
to be used the earlier concerns about selecting a correct certificate =
based on the protocol type are valid as well. I think having the =
NextProtocol handshake message before the ChangeCipherSpec and using =
renegotiation in case the contents need to be protected could be =
considered.

Sorry if some questions are already answered, this is a long thread and =
I haven't read all the messages that carefully. I'm just trying to sum =
up here what I've seen so far.



Juho


--Apple-Mail-1-1021833375
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIMyjCCBjQw
ggQcoAMCAQICAR4wDQYJKoZIhvcNAQEFBQAwfTELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0
Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNpZ25pbmcxKTAn
BgNVBAMTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA3MTAyNDIxMDE1NVoX
DTE3MTAyNDIxMDE1NVowgYwxCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1TdGFydENvbSBMdGQuMSsw
KQYDVQQLEyJTZWN1cmUgRGlnaXRhbCBDZXJ0aWZpY2F0ZSBTaWduaW5nMTgwNgYDVQQDEy9TdGFy
dENvbSBDbGFzcyAxIFByaW1hcnkgSW50ZXJtZWRpYXRlIENsaWVudCBDQTCCASIwDQYJKoZIhvcN
AQEBBQADggEPADCCAQoCggEBAMcJg8zOLdgasSmkLhOrlr6KMoOMpohBllVHrdRvEg/q6r8jR+EK
75xCGhR8ToREoqe7zM9/UnC6TS2y9UKTpT1v7RSMzR0t6ndl0TWBuUr/UXBhPk+Kmy7bI4yW4urC
+y7P3/1/X7U8ocb8VpH/Clt+4iq7nirMcNh6qJR+xjOhV+VHzQMALuGYn5KZmc1NbJQYclsGkDxD
z2UbFqE2+6vIZoL+jb9x4Pa5gNf1TwS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dGUgQ2xpZW50IENBAgMB
aQQwgacGCyqGSIb3DQEJEAILMYGXoIGUMIGMMQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRD
b20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwgQ2VydGlmaWNhdGUgU2lnbmluZzE4MDYG
A1UEAxMvU3RhcnRDb20gQ2xhc3MgMSBQcmltYXJ5IEludGVybWVkaWF0ZSBDbGllbnQgQ0ECAwFp
BDANBgkqhkiG9w0BAQEFAASCAQBMXiuqjI3Nc0JEypOxhcfQmOD0hzO1kXghLfdtUMPXuvL671Mv
Utkt+J5Pk21p79nBCepYtO6Yq4JbN8qr0tlYtMXI2wfUfa0yc6QuyM8KOAXwMyqAytANnU1IpnyR
8YOBClqyC8vgoWFrZWdtSFdEqWH1ab6Jdc2WutWlsmR9hO5h1t4MLE3Uc8fezexwTMH4zVFnalDS
9eFnB6B4VjNWa+guaoSi53rA+CvC71Whs4rymE5Xdc/+V0xE4av6Wql7f427RTNf+dRKyEOwG+cS
riOWZQOzOg0xuKzi8fcANF0HDWbkR+4Gx5G6xEk3duOGKbpYvyz7QBY6q/qwwQ6FAAAAAAAA

--Apple-Mail-1-1021833375--

From brian@briansmith.org  Wed Aug 18 08:37:13 2010
Return-Path: <brian@briansmith.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 20ED63A6991 for <tls@core3.amsl.com>; Wed, 18 Aug 2010 08:37:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.926
X-Spam-Level: 
X-Spam-Status: No, score=-1.926 tagged_above=-999 required=5 tests=[AWL=0.673,  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 YpSLy5US3bRR for <tls@core3.amsl.com>; Wed, 18 Aug 2010 08:36:28 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 3ED8A3A6980 for <tls@ietf.org>; Wed, 18 Aug 2010 08:36:05 -0700 (PDT)
Received: from T60 (unknown [98.200.150.199]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id F0C6C509DA; Wed, 18 Aug 2010 11:36:21 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: "'Marsh Ray'" <marsh@extendedsubset.com>, <tls@ietf.org>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>	<4C69938A.9080808@gnutls.org>	<AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com>	<AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com>	<4C6AB936.1070801@extendedsubset.com>	<AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com>	<4C6AD7EA.4040307@extendedsubset.com>	<000401cb3e4f$456f6d60$d04e4820$@briansmith.org> <4C6B25F2.1030408@extendedsubset.com>
In-Reply-To: <4C6B25F2.1030408@extendedsubset.com>
Date: Wed, 18 Aug 2010 10:36:21 -0500
Message-ID: <003001cb3eeb$1f1f1b00$5d5d5100$@briansmith.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQGWKjOVVsWlkADqERmWe4yahRG/kwH2Dft9AmJ6878B5ufhUAHf9aKTAfVlzHUCrgr6SwHvYtPEAs9fqzoBE7sOJQ==
Content-Language: en-us
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 15:37:14 -0000

Marsh Ray wrote:
> On 08/17/2010 04:00 PM, Brian Smith wrote:
> > Following these guidelines would subject the client and server to very
> > simple and effective DoS attacks, which are already so common that we
> > accept them as part of the status quo. Relying on these guidelines
> > would subject the client and server to cross-protocol attacks unless
> > everybody else in the world follows them.
> 
> I don't get it, it's basic stuff. What part of those recommendations
"subject the
> client and server to simple and effective DoS attacks" in a way that they
weren't
> already?

TLS is used to protect the end entities from MitM's. If a MitM is filtering
the endpoints' traffic based on the port number or any other criteria, then
that is a denial of service. Whether the end entities are the good guys or
the MitM is the good guy, or whether the end entities are abusing the MitM's
network isn't relevant. 

> Port 443 isn't magic. It's just as DoS-able as others, if not more so.

> Never pick a fight with the guy who's holding your power cord.
> He wins every time.

It isn't practical to disable port 443 for most ISPs for a variety of
business and political reasons.

> By definition, it cannot be an attack if it's by the equipment's rightful
owner. 

The rights of the participants are outside the scope of the discussion. TLS
protects the end entities from everybody else, even if the end entities are
actively, criminally, attacking the network they are using or worse, and
even if the network administrator is the cutest puppy in the world.

> > For example, currently it isn't
> > possible to build a system that uses SMTP and IMAP but which hides the
> > user's action (sending or
> > receiving) from a MitM; this extension (or a similar one) would enable
> > implementations to make such traffic analysis significantly more
> > difficult and hopefully prohibitively expensive, especially if used in
> > conjunction with  a careful padding scheme.
> 
> This is expected to make it hard for TA to distingush between HTTP, SMTP,
and
> IMAP? Really?

Yes, I think it is easy to make it prohibitively expensive for a MitM to use
TA to recognize what application protocol is in use with actionable
certainty for many use cases.

> In this simple example we already have the protocol "HTTP" stated
explicitly or
> associated by convention ten times!
> 
> One might think this would be good enough to indicate what the intended
> protocol is, but as you say there are apparently people with
unauthenticated
> SMTP and IMAP servers listening on port 443.
> 
> My question is this: What's going to be different this time?
> 
> If we really need another protocol identifier because the ones we have
don't
> hold up under attack, let's do it right this time! It needs to be treated
just as
> security-critical as checking the name on a server certificate.

Yes, This is definitely something that needs work in the NPN draft.

> How is client cert auth to be performed? Is it a problem that it's not
configurable
> per-protocol?

I would say the server shouldn't ask for a client certificate until after
the first handshake, for a variety of reasons, some of which aren't specific
to this extension.

> Insecure (without RFC 5746) renegotiation can now easily be a
cross-protocol
> attack. Should this spec forbid it?

I think any implementation can and should require that if the other end
implements this extension, then the other end also supports secure
renegotiation--simply because it is stupid to add support for this extension
but ignore secure renegotiation.

> Could it be made an option to get the server's list of protocols while
under a
> basic encrypted session, providing that confidentiality like for client
certificates?

The TLS WG should work on a general way of securing the information
transmitted in the handshake, by doing key exchange first and transmitting
everything else afterwards. The results presumably would have the effect you
are looking for.
 
> Would it be advantageous for the client-selected protocol to be allowed to
> influence the cert presented by the server? It's not unusual to need
different
> certs for different protocols after all. Can this be accomplished through
> renegotiation? Wouldn't that leak information about what protocol was
> chosen?

If you have different certs for different protocols, then that leaks
information about the protocol, unless you transmit the protocol-specific
certs during a renegotiation and everything is worked out perfectly to
prevent traffic analysis. More realistically, the service provider probably
needs to make a choice between using this extension and per-protocol
certificates, to avoid the latency that a double handshake would require,
and to avoid traffic analysis if nondisclosure of the protocol in use is a
consideration.

> My concern is that at the end of the day we end up with no great victory
in
> transport neutrality. Instead we get might just get another layer of
redundant
> indirection, more protocol complexity, and worst of all, TLS-intercepting
MitM
> proxies sprouting all over the net like dandelions.

If nothing else, this TLS with this extension would reduce protocol
complexity for all other protocols that it is used with because it would
provide a standard mechanism for preventing cross-protocol attacks.

> > Many service
> > providers do not care about their users' privacy enough to spend any
> > extra money to protect it. If this extension becomes the standard way
> > to enable interoperable WebSockets support, then even service
> > providers that are apathetic about MitM protection might having a
compelling
> reason to use TLS.
> 
> But if it requires a software (if not hardware) upgrade to support the
extension,
> wouldn't that just encourage deployments to use plain HTTP?

I think soon we'll see HTTP/Websockets/SPDY over TLS outperform plain
unprotected HTTP for less cost for a variety of reasons in a lot of common
applications, and the benefits will outweigh the costs, even from a purely
financial standpoint.

> As appealing as the idea sounds to me, "encouraging" a transition before
people
> would choose it on their own is likely to lead to a lot more self-signed
certs out
> on the web.

I don't think it is valid to argue that a change to TLS makes it useful to
more people, but those people might not understand the security issues well
enough to use it safely, so the changes must not be made. It's better to
find ways of improving the safety and usability of TLS when it is being
managed by users with little understanding of proper security procedures or
who have little motivation to follow proper security procedures. That's a
topic for another thread.

Regards,
Brian


From marsh@extendedsubset.com  Wed Aug 18 08:52:00 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id A39723A6848 for <tls@core3.amsl.com>; Wed, 18 Aug 2010 08:52:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.022
X-Spam-Level: 
X-Spam-Status: No, score=-2.022 tagged_above=-999 required=5 tests=[AWL=0.577,  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 O75ZOrKTv5Kl for <tls@core3.amsl.com>; Wed, 18 Aug 2010 08:51:57 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id D47843A68CB for <tls@ietf.org>; Wed, 18 Aug 2010 08:51:55 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OlkwI-0001Ek-Sd; Wed, 18 Aug 2010 15:52:30 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id A49FE608A; Wed, 18 Aug 2010 15:52:29 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX18temHWwkmeOpQG/ai+FXqtl8MG7aNZie0=
Message-ID: <4C6C01BE.8080009@extendedsubset.com>
Date: Wed, 18 Aug 2010 10:52:30 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: Adam Barth <ietf@adambarth.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>	<4C69938A.9080808@gnutls.org>	<AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com>	<AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com>	<4C6AB936.1070801@extendedsubset.com>	<AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com>	<4C6AD7EA.4040307@extendedsubset.com>	<000401cb3e4f$456f6d60$d04e4820$@briansmith.org>	<4C6B1BAA.5060303@pobox.com>	<AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com>	<4C6B8189.5080406@extendedsubset.com> <AANLkTi=9TLG4f5eZ6h6duYKvcVueT53H26WNZpWV6TKS@mail.gmail.com>
In-Reply-To: <AANLkTi=9TLG4f5eZ6h6duYKvcVueT53H26WNZpWV6TKS@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 15:52:00 -0000

On 08/18/2010 03:42 AM, Adam Barth wrote:
>
> I think your confusion might be stemming from confusing me with Adam
> Langley.  Although we're both named Adam, we're are, in fact,
> different people with different interests.

My memory is unpredictable sometimes, but how could I forget Adam Barth?

You sat directly to my right on Sept 29, 2009 at that meeting in
Mountain View. You wore, I believe, a white tshirt with colored trim.
Possibly denim shorts and flip-flops? Unshaven. Pretty much the opposite 
of your current Twitter icon! You had a small white Mac. I wondered if 
you really did all your document reading and writing on that thing. I 
wasn't watching what you were typing, but I did notice you were IM-ing a 
bunch.

Adam Langley, however, I don't recall ever having met in person.

---------

Forgive me for chopping up the thread, I think we're getting to the 
substance of the issue:

About the non-normative text it appears that "the motivation in the 
draft is outdated". So this review will have to disregard it.

 > To solve a particular design problem, one IETF working group
 > is considering a design that makes use of technology designed by
 > another IETF working group.  It seems quite appropriate for that
 > working group to ask for advice from the experts in the other working
 > group.

But there's nothing in draft-agl-tls-nextprotoneg-00 about that. If it 
really is building on another WG's work I'd expect a stable normative 
reference and a mapping relating the definitions in that standard to the 
new protocol elements.

Try this: Find someone who's technical, but not involved WebSockets, to 
read the I-D. Then ask them to explain it back to you.

For an I-D describing an extension to TLS, I'd expect it would include 
enough details that a person "skilled in the art" could implement it 
correctly and make testable predictions about the behavior of the 
resulting system. Probably it should even do something demonstrably 
useful to someone.

Yet, on the face of it, this I-D is completely meaningless. It proposes 
a new TLS extension with absolutely no defined semantics. It amounts to 
an empty Client Hello extension, a Server Hello extension containing 
unbounded arbitrary data, and a new handshake message containing up to 
512 bytes such that "The format of this data is not specified in this 
draft".

Allowing big quantities of arbitrary data immediately before the 
Finished message concerns me from a cryptographic perspective. It also 
seems like simple implementation errors could permit attacks where an 
endpoint confuses the new message with a Finished message, or vice-versa.

Other proposals have suggested sending opaque data in one direction or 
another and were not accepted, largely on the grounds that permitting 
non-semantic data in the handshake (data that the TLS RFCs were 
prohibited from interpreting) could only lead to interoperability issues 
(or even de facto usurpation of the protocol by entities outside the 
IETF processes). I realize that that is absolutely not the intent here.

In the opinion of this reviewer, draft-agl-tls-nextprotoneg-00 needs 
substantial rework before it should move ahead in the standardization 
process.

Suggested actions:


1. This appears to be a basic authentication problem. The I-D should 
give a rationale for:

1a. TLS already does strong authentication, and there are plenty of 
other well-understood schemes (from simple to complex). Why are these 
not sufficient?

1b. Couldn't this be done in the app data layer? Is the motivation just 
to save a round trip? Surely plenty of other protocols could shave off a 
round trip with custom TLS extensions, why does this case in particular 
justify it?


2. Decide if it's really (A) specific to WebSockets or it's a (B) 
generally useful mechanism. B is an ambitious project in its own right, 
there's no shame in A.

If A: Get the WebSockets spec solid enough to implement from and serve 
as a stable normative reference.

If B: Define the contents of the fields well enough that they can be 
unambiguously implemented, tested, and interoperate. The protocols being 
authenticated should map to some IANA registry.

- Marsh

From agl@google.com  Wed Aug 18 09:12:56 2010
Return-Path: <agl@google.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C7FDC3A68D3 for <tls@core3.amsl.com>; Wed, 18 Aug 2010 09:12:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.717
X-Spam-Level: 
X-Spam-Status: No, score=-105.717 tagged_above=-999 required=5 tests=[AWL=0.260, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_MED=-4, 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 69ICc16fx0ol for <tls@core3.amsl.com>; Wed, 18 Aug 2010 09:12:54 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id C07C83A67F9 for <tls@ietf.org>; Wed, 18 Aug 2010 09:12:53 -0700 (PDT)
Received: from hpaq12.eem.corp.google.com (hpaq12.eem.corp.google.com [172.25.149.12]) by smtp-out.google.com with ESMTP id o7IGDROn003869 for <tls@ietf.org>; Wed, 18 Aug 2010 09:13:28 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1282148008; bh=zK3cIIPUeZx7OPXy9mzaFMUKgM0=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=sRtXbfURdRNO+HpfJCs/HM+xvnEVatK+w8F/rRdGNJmtEUEHdHb9n5g9dCS4Enf5w mjIxrlmY+LUAKAwzSJJcA==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=SV4zsPNBfDNr4BLzJqY7MAo78WW7N+aKr/YqU3HxyXgl0l8+DBCc1H6tkLIb50n3/ khYvZInyyj4knYlZ5utJw==
Received: from iwn36 (iwn36.prod.google.com [10.241.68.100]) by hpaq12.eem.corp.google.com with ESMTP id o7IGDP9h019798 for <tls@ietf.org>; Wed, 18 Aug 2010 09:13:26 -0700
Received: by iwn36 with SMTP id 36so904518iwn.13 for <tls@ietf.org>; Wed, 18 Aug 2010 09:13:25 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.169.149 with SMTP id z21mr9646853iby.11.1282148005587; Wed, 18 Aug 2010 09:13:25 -0700 (PDT)
Received: by 10.231.142.32 with HTTP; Wed, 18 Aug 2010 09:13:25 -0700 (PDT)
In-Reply-To: <4C6C01BE.8080009@extendedsubset.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C69938A.9080808@gnutls.org> <AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com> <AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com> <4C6AB936.1070801@extendedsubset.com> <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com> <4C6AD7EA.4040307@extendedsubset.com> <000401cb3e4f$456f6d60$d04e4820$@briansmith.org> <4C6B1BAA.5060303@pobox.com> <AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com> <4C6B8189.5080406@extendedsubset.com> <AANLkTi=9TLG4f5eZ6h6duYKvcVueT53H26WNZpWV6TKS@mail.gmail.com> <4C6C01BE.8080009@extendedsubset.com>
Date: Wed, 18 Aug 2010 12:13:25 -0400
Message-ID: <AANLkTi=ym+Akh3ExvC48=Rce==Y2Hn96u0pPOnG=u56q@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: Marsh Ray <marsh@extendedsubset.com>
Content-Type: text/plain; charset=UTF-8
X-System-Of-Record: true
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 16:12:56 -0000

On Wed, Aug 18, 2010 at 11:52 AM, Marsh Ray <marsh@extendedsubset.com> wrote:
> About the non-normative text it appears that "the motivation in the draft is
> outdated". So this review will have to disregard it.

Indeed. Since the initial draft other uses of NPN have been found and
are probably more compelling. I'm rewriting the motivation at the
moment.


AGL

From agl@google.com  Wed Aug 18 11:28:31 2010
Return-Path: <agl@google.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id A9A1C3A69F0 for <tls@core3.amsl.com>; Wed, 18 Aug 2010 11:28:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.977
X-Spam-Level: 
X-Spam-Status: No, score=-104.977 tagged_above=-999 required=5 tests=[AWL=1.000, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_MED=-4, 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 gUryDqX-W8RT for <tls@core3.amsl.com>; Wed, 18 Aug 2010 11:28:30 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id 6C6D33A69F2 for <tls@ietf.org>; Wed, 18 Aug 2010 11:28:30 -0700 (PDT)
Received: from hpaq6.eem.corp.google.com (hpaq6.eem.corp.google.com [172.25.149.6]) by smtp-out.google.com with ESMTP id o7IIT4oV008784 for <tls@ietf.org>; Wed, 18 Aug 2010 11:29:04 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1282156145; bh=aGUEYsP0lN2ap/2qgenbGz0LRjU=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=GOPwpMW87LhnRXWRM66CK22HV+lgMUhL/GQGFwIt+3eZqtpsJOGSUF/D0uNwJtjEO Sm4TLdlATmN3ujUByJjLw==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=ZKYG9CdiIShvNVZjAzgHwSdJZ7oq9tCVWrDe1zfR5YnP7zLlws22LCqKXtbDtvJ/w f/kI3ehEFOESLahvJZqnA==
Received: from gwaa20 (gwaa20.prod.google.com [10.200.27.20]) by hpaq6.eem.corp.google.com with ESMTP id o7IIT3wA024448 for <tls@ietf.org>; Wed, 18 Aug 2010 11:29:03 -0700
Received: by gwaa20 with SMTP id a20so434193gwa.37 for <tls@ietf.org>; Wed, 18 Aug 2010 11:29:03 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.151.49.8 with SMTP id b8mr632858ybk.439.1282156142344; Wed, 18 Aug 2010 11:29:02 -0700 (PDT)
Received: by 10.231.142.32 with HTTP; Wed, 18 Aug 2010 11:29:02 -0700 (PDT)
In-Reply-To: <AANLkTi=ym+Akh3ExvC48=Rce==Y2Hn96u0pPOnG=u56q@mail.gmail.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C69938A.9080808@gnutls.org> <AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com> <AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com> <4C6AB936.1070801@extendedsubset.com> <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com> <4C6AD7EA.4040307@extendedsubset.com> <000401cb3e4f$456f6d60$d04e4820$@briansmith.org> <4C6B1BAA.5060303@pobox.com> <AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com> <4C6B8189.5080406@extendedsubset.com> <AANLkTi=9TLG4f5eZ6h6duYKvcVueT53H26WNZpWV6TKS@mail.gmail.com> <4C6C01BE.8080009@extendedsubset.com> <AANLkTi=ym+Akh3ExvC48=Rce==Y2Hn96u0pPOnG=u56q@mail.gmail.com>
Date: Wed, 18 Aug 2010 14:29:02 -0400
Message-ID: <AANLkTikEv_AYJqUVjeUM9HTcw0Kpy5vH1M_va60JRywp@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: Marsh Ray <marsh@extendedsubset.com>
Content-Type: text/plain; charset=UTF-8
X-System-Of-Record: true
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 18:28:31 -0000

On Wed, Aug 18, 2010 at 12:13 PM, Adam Langley <agl@google.com> wrote:
> Indeed. Since the initial draft other uses of NPN have been found and
> are probably more compelling. I'm rewriting the motivation at the
> moment.

The draft has been so updated. The only changes are that the
introduction has been rewritten.

http://www.ietf.org/id/draft-agl-tls-nextprotoneg-01.txt


1. Introduction

As the Internet has evolved, it has become commonplace for hosts to
initiate connections based on untrusted and possibly hostile data.
HTTP [RFC2616] clients are currently the most widespread example of
this as they will fetch URLs based on the contents of untrusted
webpages.

Any time that a connection is initiated based on untrusted data there
is the possibility of a cross-protocol attack.  If the attacker can
control the contents of the connection in any way (for example, the
requested URL in an HTTP connection) they may be able to encode a
valid message in another protocol.  The connecting host believes that
it is speaking one protocol but the server understands it to be
another.  The application of Postel's Law exacerbates the issue as
many servers will permit gross violations of the expected protocol in
order to achieve maximum compatibility with clients.

The WebSockets [websockets] protocol seeks to allow low-latency,
full-duplex communication between browsers and HTTP servers.  However,
it also permits an unprecedented amount of attacker control over the
contents of the connection.  In order to prevent cross- protocol
attacks, a mechanism to assure that both client and server are
speaking the same protocol is required.  To this end, Next Protocol
Negotiation extends the TLS [RFC5246] handshake to permit both parties
to agree on their intended protocol.


AGL

From mike-list@pobox.com  Wed Aug 18 12:08:53 2010
Return-Path: <mike-list@pobox.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 224E53A6A6F for <tls@core3.amsl.com>; Wed, 18 Aug 2010 12:08:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 4Xq-QDugfpZM for <tls@core3.amsl.com>; Wed, 18 Aug 2010 12:08:46 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 7985E3A691A for <tls@ietf.org>; Wed, 18 Aug 2010 12:08:43 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 12C86CED46; Wed, 18 Aug 2010 15:09:18 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=Fovto3Of4UrN 8ZtDmp7u/wj0Yv4=; b=W5I7UqNiUMe01gzFBzFLJutsbyWCUe3XHgkVMWJ44oCR inPUwJqnyYHABccEXD5ngM6R6q6LRrXUpUw0beNxFswQHYHUfaAdM3Vgg4ghtFDQ jaiahn8wcZMv4j/p3+0W0CTR/pHPeqgimImhJ4HW7CNzTibbwNz0G5PIoh3rUms=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=Cbovo/ gil+INRXpCNOV7Tx6l5JK6zlVeTmjy5dstgiv5tS04kTXWcpGSBew49AODjp79e5 vSvVAzACS27lz2bWY7CEOqOqzIF8Fntfu6LU8JS/iaZscL4z0ZOCyZMBKEENr7/H l31VsJkOPrYbbwMOtpMJaZ/qiQ7zuW8g9hYFg=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id EDE82CED45; Wed, 18 Aug 2010 15:09:16 -0400 (EDT)
Received: from iMac.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 7E556CED44; Wed, 18 Aug 2010 15:09:15 -0400 (EDT)
Message-ID: <4C6C2FDA.6070307@pobox.com>
Date: Wed, 18 Aug 2010 12:09:14 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
To: Adam Barth <ietf@adambarth.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C69938A.9080808@gnutls.org> <AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com> <AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com> <4C6AB936.1070801@extendedsubset.com> <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com> <4C6AD7EA.4040307@extendedsubset.com> <000401cb3e4f$456f6d60$d04e4820$@briansmith.org> <4C6B1BAA.5060303@pobox.com> <AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com>
In-Reply-To: <AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 18D319B8-AAFC-11DF-9F05-9056EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 19:08:53 -0000

Adam Barth wrote:
> On Tue, Aug 17, 2010 at 5:14 PM, Marsh Ray <marsh@extendedsubset.com> wrote:
>> On 08/17/2010 04:00 PM, Brian Smith wrote:
> 
>>> Google, Amazon.com, and others claim significant decreases in revenue that
>>> correlate with increases in latency of 100ms or even less.
>> Interesting, I had heard of that. Link?
> 
> This is a well-established fact.

This needs clarification.  I interpret the statement as:

    Google et. al. claim significant decreases in revenue
    when their latency is (x + 100ms) versus when latency
    is x.

What is x?

Mike

From agl@google.com  Wed Aug 18 12:14:59 2010
Return-Path: <agl@google.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 401C73A6A71 for <tls@core3.amsl.com>; Wed, 18 Aug 2010 12:14:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.177
X-Spam-Level: 
X-Spam-Status: No, score=-105.177 tagged_above=-999 required=5 tests=[AWL=0.800, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_MED=-4, 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 9yfDF8I9ieEU for <tls@core3.amsl.com>; Wed, 18 Aug 2010 12:14:58 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id F00623A68D4 for <tls@ietf.org>; Wed, 18 Aug 2010 12:14:57 -0700 (PDT)
Received: from wpaz13.hot.corp.google.com (wpaz13.hot.corp.google.com [172.24.198.77]) by smtp-out.google.com with ESMTP id o7IJFVgS004609 for <tls@ietf.org>; Wed, 18 Aug 2010 12:15:32 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1282158932; bh=g6e6STXG+fnDys5B04F250tIOxE=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type:Content-Transfer-Encoding; b=YLqygulh1IZ/1m2fnNTZOtPxL9sBqogj+WOFMf2f48kVk4k4zJXK9MygVOS1OGkPX LeAP4BXxzrDnMNzHodtvA==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:content-transfer-encoding:x-system-of-record; b=pGRKucw4jtcAzwl3W8J2M3ajL1EdnP1DvGup0ogcjXWW10mcqakrPuv7dtJF+3Zyl QKIqIl9caci6yjC5uFDGA==
Received: from iwn10 (iwn10.prod.google.com [10.241.68.74]) by wpaz13.hot.corp.google.com with ESMTP id o7IJFUs6004834 for <tls@ietf.org>; Wed, 18 Aug 2010 12:15:30 -0700
Received: by iwn10 with SMTP id 10so921161iwn.26 for <tls@ietf.org>; Wed, 18 Aug 2010 12:15:30 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.148.195 with SMTP id q3mr9710548ibv.199.1282158929964; Wed, 18 Aug 2010 12:15:29 -0700 (PDT)
Received: by 10.231.142.32 with HTTP; Wed, 18 Aug 2010 12:15:29 -0700 (PDT)
In-Reply-To: <4C6C2FDA.6070307@pobox.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C69938A.9080808@gnutls.org> <AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com> <AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com> <4C6AB936.1070801@extendedsubset.com> <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com> <4C6AD7EA.4040307@extendedsubset.com> <000401cb3e4f$456f6d60$d04e4820$@briansmith.org> <4C6B1BAA.5060303@pobox.com> <AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com> <4C6C2FDA.6070307@pobox.com>
Date: Wed, 18 Aug 2010 15:15:29 -0400
Message-ID: <AANLkTimjsbg7EErv-kb46TtYG=HPVP-XE0L3+5sJSYF=@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: "Michael D'Errico" <mike-list@pobox.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 19:14:59 -0000

On Wed, Aug 18, 2010 at 3:09 PM, Michael D'Errico <mike-list@pobox.com> wro=
te:
> =C2=A0 Google et. al. claim significant decreases in revenue
> =C2=A0 when their latency is (x + 100ms) versus when latency
> =C2=A0 is x.
>
> What is x?

I have asked management at Google to release hard numbers on this
before and I'm afraid that we simply can not release revenue/latency
numbers like that, even for previous years.

However, as evidence of how important latency is, witness the amount
of work that we are putting into it. (SPDY, Google DNS, Snap Start,
False Start, NPN, ...)


AGL

From mike-list@pobox.com  Wed Aug 18 12:40:14 2010
Return-Path: <mike-list@pobox.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 283A53A6A59 for <tls@core3.amsl.com>; Wed, 18 Aug 2010 12:40:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000,  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 grf333mXBMuP for <tls@core3.amsl.com>; Wed, 18 Aug 2010 12:40:12 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 644583A6A6F for <tls@ietf.org>; Wed, 18 Aug 2010 12:40:12 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 2D123CE222; Wed, 18 Aug 2010 15:40:47 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=ZyOLLG1LoCsk Ggzj1MPdPWxqqbQ=; b=I8qXQBWEJ/zRcVkrqKT8r+ZQ8RNJjbRHXjXw1NjWfaAQ xblzUwex+Z1mPVy+yJx+E8MBRQilc1tVMjqsvlEq0dhywiM/dgMXgursqi5rkkrG r3o301wm1l/T8D+O/WVyAQNEc+RT0pr5igWTh/r5d45CFc0YlBuNdxY6Esvd64U=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=H506nY NMG5Gvy4JYagxl4cD8r1CbzW1py80PZ+irZKX3AhGz4gmdzwXMtRoVzSxVky2H2o 3zyRiNCud8uYUKtbZlWXRfpVOGxHP8xQP/4l1IHor4j2E7MtRmxcpxErXJZTLHSL LRDm56OAELC9836bta6J1YrFvD6BgyXvj6DIk=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id E788DCE21F; Wed, 18 Aug 2010 15:40:44 -0400 (EDT)
Received: from iMac.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 3B8F5CE21A; Wed, 18 Aug 2010 15:40:42 -0400 (EDT)
Message-ID: <4C6C3739.4040205@pobox.com>
Date: Wed, 18 Aug 2010 12:40:41 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
To: Adam Langley <agl@google.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C69938A.9080808@gnutls.org> <AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com> <AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com> <4C6AB936.1070801@extendedsubset.com> <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com> <4C6AD7EA.4040307@extendedsubset.com> <000401cb3e4f$456f6d60$d04e4820$@briansmith.org> <4C6B1BAA.5060303@pobox.com> <AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com> <4C6C2FDA.6070307@pobox.com> <AANLkTimjsbg7EErv-kb46TtYG=HPVP-XE0L3+5sJSYF=@mail.gmail.com>
In-Reply-To: <AANLkTimjsbg7EErv-kb46TtYG=HPVP-XE0L3+5sJSYF=@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 7E25BF10-AB00-11DF-A8CA-9056EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 19:40:14 -0000

Adam Langley wrote:
> On Wed, Aug 18, 2010 at 3:09 PM, Michael D'Errico <mike-list@pobox.com> wrote:
>>   Google et. al. claim significant decreases in revenue
>>   when their latency is (x + 100ms) versus when latency
>>   is x.
>>
>> What is x?
> 
> I have asked management at Google to release hard numbers on this
> before and I'm afraid that we simply can not release revenue/latency
> numbers like that, even for previous years.
> 
> However, as evidence of how important latency is, witness the amount
> of work that we are putting into it. (SPDY, Google DNS, Snap Start,
> False Start, NPN, ...)

Without knowing that number I'm reluctant to help you modify TLS into
an unrecognizable protocol.  If x is 300ms for example, there is reason
to think that maybe some modification to TLS could help.  But if it is
say, 2.6 seconds, then no, there isn't.

My TLS implementation performs a full handshake (RSA 1024-bit key) on
localhost (i.e. not going over the network) in less than 5 milliseconds.
A session resumption takes around 500 MICROseconds.  (ECC cipher suites
should further reduce the full handshake timing.)  TLS just doesn't
have that much overhead!

So please convince Google that it's in their best interest to publish
a number.

Mike

From agl@google.com  Wed Aug 18 12:48:11 2010
Return-Path: <agl@google.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id BDA4E3A67AC for <tls@core3.amsl.com>; Wed, 18 Aug 2010 12:48:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.31
X-Spam-Level: 
X-Spam-Status: No, score=-105.31 tagged_above=-999 required=5 tests=[AWL=0.667, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_MED=-4, 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 aAjqmSWqW3xS for <tls@core3.amsl.com>; Wed, 18 Aug 2010 12:48:10 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id 41A6A3A6A92 for <tls@ietf.org>; Wed, 18 Aug 2010 12:48:10 -0700 (PDT)
Received: from wpaz17.hot.corp.google.com (wpaz17.hot.corp.google.com [172.24.198.81]) by smtp-out.google.com with ESMTP id o7IJmhwJ028808 for <tls@ietf.org>; Wed, 18 Aug 2010 12:48:44 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1282160924; bh=fOkyLcQEW4+fryC1G462sxGThM0=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type:Content-Transfer-Encoding; b=gtmw6RXP87/G6csUmCSxW51dGWuSYyM3eVK9AUq18AdVjaWY9m5ktDIK7R+Ja83V5 snEK7kT0Se8oD1LuOyt+w==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:content-transfer-encoding:x-system-of-record; b=H3IsmaIPs0vxJbHAEOtJxsf/Ddj+pEBO4F9bUsAyrfimjPe4J3gpVwo9WuKU3AM83 fYoYmMtaI1yL4NA6OJejg==
Received: from yxm34 (yxm34.prod.google.com [10.190.4.34]) by wpaz17.hot.corp.google.com with ESMTP id o7IJlvu4020292 for <tls@ietf.org>; Wed, 18 Aug 2010 12:48:42 -0700
Received: by yxm34 with SMTP id 34so386199yxm.21 for <tls@ietf.org>; Wed, 18 Aug 2010 12:48:42 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.151.116.1 with SMTP id t1mr773189ybm.329.1282160922615; Wed, 18 Aug 2010 12:48:42 -0700 (PDT)
Received: by 10.231.142.32 with HTTP; Wed, 18 Aug 2010 12:48:42 -0700 (PDT)
In-Reply-To: <4C6C3739.4040205@pobox.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C69938A.9080808@gnutls.org> <AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com> <AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com> <4C6AB936.1070801@extendedsubset.com> <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com> <4C6AD7EA.4040307@extendedsubset.com> <000401cb3e4f$456f6d60$d04e4820$@briansmith.org> <4C6B1BAA.5060303@pobox.com> <AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com> <4C6C2FDA.6070307@pobox.com> <AANLkTimjsbg7EErv-kb46TtYG=HPVP-XE0L3+5sJSYF=@mail.gmail.com> <4C6C3739.4040205@pobox.com>
Date: Wed, 18 Aug 2010 15:48:42 -0400
Message-ID: <AANLkTimjUkw+WBnYc5Oy69u8SoWBhXzheuRRao9w+Vfy@mail.gmail.com>
From: Adam Langley <agl@google.com>
To: "Michael D'Errico" <mike-list@pobox.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-System-Of-Record: true
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 19:48:11 -0000

On Wed, Aug 18, 2010 at 3:40 PM, Michael D'Errico <mike-list@pobox.com> wro=
te:
> My TLS implementation performs a full handshake (RSA 1024-bit key) on
> localhost (i.e. not going over the network) in less than 5 milliseconds.
> A session resumption takes around 500 MICROseconds. =C2=A0(ECC cipher sui=
tes
> should further reduce the full handshake timing.) =C2=A0TLS just doesn't
> have that much overhead!

The computational overhead of TLS is unimportant for many applications
and is only becoming less important over time.

However, the number of round trips is critical. However fast the hosts
might be, the speed of light always stays the same.


AGL

From mike-list@pobox.com  Wed Aug 18 13:26:29 2010
Return-Path: <mike-list@pobox.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D186A3A67FB for <tls@core3.amsl.com>; Wed, 18 Aug 2010 13:26:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 cDG-rMkiSbis for <tls@core3.amsl.com>; Wed, 18 Aug 2010 13:26:26 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id C8C653A67FC for <tls@ietf.org>; Wed, 18 Aug 2010 13:26:25 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id EC7ECCE902; Wed, 18 Aug 2010 16:26:59 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=lJC4N3q7AxlS CNMzvUOJjQSfp2w=; b=kisCREMC17e/yqFKdLwkhkwNoIE/hNdg1HxMrXaG03jp 6UzDY1qMq8f11SoNlVHXa6u4CEsVO9OdAFuwTRXaXblruNIlx4kuhtT5A+BdBfFO 6CqSIPrKaLYJc8uDo7pKER7eRwFUMGbyfcdS/Z4qVJzwfrO0VgPxhH0B8odaG9Y=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=IRk9KH 1fgikZayc0f4kRI040JMHpgD1JtFe8gbKBH6gjxN5giCjw/NXOtJdrpe4dUZkq3Z XyM3t6ixt+7VLmjAU8OmWUyWBeBzeU3+45aMnhweBzKBvsR6CTbzcX+BFrPGSe0W x3NFA/6D5nKAvJ1xYLaOYJnoY6DzJZVMJAp4k=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id C7E44CE8FF; Wed, 18 Aug 2010 16:26:57 -0400 (EDT)
Received: from iMac.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 1F061CE8FE; Wed, 18 Aug 2010 16:26:54 -0400 (EDT)
Message-ID: <4C6C420E.9040509@pobox.com>
Date: Wed, 18 Aug 2010 13:26:54 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
To: Adam Langley <agl@google.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C69938A.9080808@gnutls.org> <AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com> <AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com> <4C6AB936.1070801@extendedsubset.com> <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com> <4C6AD7EA.4040307@extendedsubset.com> <000401cb3e4f$456f6d60$d04e4820$@briansmith.org> <4C6B1BAA.5060303@pobox.com> <AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com> <4C6C2FDA.6070307@pobox.com> <AANLkTimjsbg7EErv-kb46TtYG=HPVP-XE0L3+5sJSYF=@mail.gmail.com> <4C6C3739.4040205@pobox.com> <AANLkTimjUkw+WBnYc5Oy69u8SoWBhXzheuRRao9w+Vfy@mail.gmail.com>
In-Reply-To: <AANLkTimjUkw+WBnYc5Oy69u8SoWBhXzheuRRao9w+Vfy@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: F2E90F18-AB06-11DF-90EA-9056EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 20:26:29 -0000

Adam Langley wrote:
> 
> The computational overhead of TLS is unimportant for many applications
> and is only becoming less important over time.

Glad you agree.

> However, the number of round trips is critical. However fast the hosts
> might be, the speed of light always stays the same.

So then NPN is all about reducing a round trip?  You say you already
achieve that with false start.  Or do you need something in addition
that can only be achieved by sticking it in a TLS extension?

Sorry if this was answered before, but it is really hard to follow a
single message that is a line-by-line reply to 4 other messages.

<Somewhat off topic>

Every morning when I first get to my computer, I have to log in.  That
takes a few seconds.  My browser is already running because I hardly
ever shut it down.  I proceed to click the EXACT SAME 4 LINKS that I
click every morning.  I then wait several seconds for these pages to
load.

Do you see the problem here?  Everything waits for me to initiate an
action that is predictable.  The moment I touch the mouse, it is 100%
predictable which 4 links I'm going to click on within the next 15
seconds.  Yet nothing happens until after I type my password, after I
unhide the browser window, after I create 4 tabs, and then click on
the links.

This should all happen automatically so that I don't have to wait at
all for any of these four pages to load.  They will likely be fully
loaded and presentable before I even finish typing my password.

THAT is what you should be working on.  Prediction.  If I've clicked
the same link every morning for the past 18 months, what are the odds
that I'm going to click it today?  100%.  And even if for some reason
I don't, I'm not going to be at all upset that my browser fetched the
page for me.

</Somewhat off topic>

Mike

From nwf@cs.jhu.edu  Wed Aug 18 13:47:27 2010
Return-Path: <nwf@cs.jhu.edu>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 103933A67FB for <tls@core3.amsl.com>; Wed, 18 Aug 2010 13:47:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 0vrWM8D10GPk for <tls@core3.amsl.com>; Wed, 18 Aug 2010 13:47:25 -0700 (PDT)
Received: from blaze.cs.jhu.edu (blaze.cs.jhu.edu [128.220.13.50]) by core3.amsl.com (Postfix) with ESMTP id C4EB63A6405 for <tls@ietf.org>; Wed, 18 Aug 2010 13:47:25 -0700 (PDT)
Received: from gradx.cs.jhu.edu (gradx.cs.jhu.edu [128.220.13.52]) by blaze.cs.jhu.edu (8.14.3/8.14.3) with ESMTP id o7IKludw023727 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 18 Aug 2010 16:47:56 -0400 (EDT)
Received: from gradx.cs.jhu.edu (localhost [127.0.0.1]) by gradx.cs.jhu.edu (8.14.3/8.13.1) with ESMTP id o7IKlumR023645; Wed, 18 Aug 2010 16:47:56 -0400
Received: (from nwf@localhost) by gradx.cs.jhu.edu (8.14.3/8.13.8/Submit) id o7IKluLW023644; Wed, 18 Aug 2010 16:47:56 -0400
Date: Wed, 18 Aug 2010 16:47:56 -0400
From: Nathaniel W Filardo <nwf@cs.jhu.edu>
To: Adam Langley <agl@google.com>
Message-ID: <20100818204756.GT18003@gradx.cs.jhu.edu>
References: <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com> <4C6AD7EA.4040307@extendedsubset.com> <000401cb3e4f$456f6d60$d04e4820$@briansmith.org> <4C6B1BAA.5060303@pobox.com> <AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com> <4C6B8189.5080406@extendedsubset.com> <AANLkTi=9TLG4f5eZ6h6duYKvcVueT53H26WNZpWV6TKS@mail.gmail.com> <4C6C01BE.8080009@extendedsubset.com> <AANLkTi=ym+Akh3ExvC48=Rce==Y2Hn96u0pPOnG=u56q@mail.gmail.com> <AANLkTikEv_AYJqUVjeUM9HTcw0Kpy5vH1M_va60JRywp@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TjrdA9oBG3OWww3L"
Content-Disposition: inline
In-Reply-To: <AANLkTikEv_AYJqUVjeUM9HTcw0Kpy5vH1M_va60JRywp@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-08-17)
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 20:47:27 -0000

--TjrdA9oBG3OWww3L
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Aug 18, 2010 at 02:29:02PM -0400, Adam Langley wrote:
>[snip]=20
> 1. Introduction
>=20
> As the Internet has evolved, it has become commonplace for hosts to
> initiate connections based on untrusted and possibly hostile data.
> HTTP [RFC2616] clients are currently the most widespread example of
> this as they will fetch URLs based on the contents of untrusted
> webpages.
>=20
> Any time that a connection is initiated based on untrusted data there
> is the possibility of a cross-protocol attack.  If the attacker can
> control the contents of the connection in any way (for example, the
> requested URL in an HTTP connection) they may be able to encode a
> valid message in another protocol.  The connecting host believes that
> it is speaking one protocol but the server understands it to be
> another.  The application of Postel's Law exacerbates the issue as
> many servers will permit gross violations of the expected protocol in
> order to achieve maximum compatibility with clients.
>=20
> The WebSockets [websockets] protocol seeks to allow low-latency,
> full-duplex communication between browsers and HTTP servers.  However,
> it also permits an unprecedented amount of attacker control over the
> contents of the connection.  In order to prevent cross- protocol
> attacks, a mechanism to assure that both client and server are
> speaking the same protocol is required.  To this end, Next Protocol
> Negotiation extends the TLS [RFC5246] handshake to permit both parties
> to agree on their intended protocol.

I realize this is the TLS mailing list, but...

WebSockets are, AFAIK, designed to have a mandatory HTTP-alike header
specifically so that they can be discriminated from HTTP without requiring
any lower level identification being necessary (though apparently the drafts
of the WS specification are less than perfect about maintaining this
guarantee).  In any case, this ought to render any concerns of being unable
to make WS connections while still making HTTPS connections moot; they can
_already_ be intermixed on port 443.  Moreover, cross-protocol attacks do
not require the advanced control present in WS (though surely it helps);
HTTP has proven to be sufficiently useful to carry out cross-protocol
attacks against both SMTP and IRC servers.  It seems odd to me that secure
WS is the forcing issue here.

It also seems very odd to me that this is being viewed as a TLS-only thing.
Cross-protocol attacks are not limited to the world of secured TLS streams
(see above), and TCP ports are not in fact protocol identifiers, despite
some traditions that conflate the two concepts.  If cross-protocol attacks
are a concern (and I'm not saying they're not), then TLS NPN is necessary
but insufficient -- the outer layers and insecure links must also be
protected.

Further, protocols inside TLS are already implicitly weakly protected if the
endpoints require authentication.  There isn't any way that my web browser
can carry out an HTTPS cross-protocol attack against an SMTPS server, unless
the attacker already knows the appropriate SMTP credentials or I have client
certs accepted by the SMTPS server loaded in my browser.  Any attempt the
browser makes at authenticating via HTTP mechanisms is going to be ignored
by the SMTPS server.  If I require STARTTLS for SMTP, I'm in an even better
position than if I were using just SMTPS, as the client cert issue is gone.
(Would that the HTTP world actually believed in Upgrade: for starting TLS!)

Are there, in fact, attempts to mark sender's intended protocol outside of
TLS being concurrently worked on (perhaps by extending the use of IPv6's
Next Header field across the TCP header)?  If not, why should we believe
that standardization and adoption of a TLS-only NPN will help much at all?

Thanks.
--nwf;

--TjrdA9oBG3OWww3L
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iEYEARECAAYFAkxsRvwACgkQTeQabvr9Tc9iKwCfYZur1KaVmeAyV/DQMWlicIXj
/B4An0xHac4C0OCVs4MBXoiM/CZU5ryX
=gaYO
-----END PGP SIGNATURE-----

--TjrdA9oBG3OWww3L--

From marsh@extendedsubset.com  Wed Aug 18 13:50:11 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 0FAEE3A6A33 for <tls@core3.amsl.com>; Wed, 18 Aug 2010 13:50:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.036
X-Spam-Level: 
X-Spam-Status: No, score=-2.036 tagged_above=-999 required=5 tests=[AWL=0.563,  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 Crpkr+DeqIXg for <tls@core3.amsl.com>; Wed, 18 Aug 2010 13:50:09 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id B9B243A6405 for <tls@ietf.org>; Wed, 18 Aug 2010 13:50:09 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1Olpau-000NiC-Mu; Wed, 18 Aug 2010 20:50:44 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 313E56092; Wed, 18 Aug 2010 20:50:42 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX19nfoW8LmP66HTxSuOz6tQQo0NrT9pRRvk=
Message-ID: <4C6C47A4.9080407@extendedsubset.com>
Date: Wed, 18 Aug 2010 15:50:44 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: Michael D'Errico <mike-list@pobox.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>	<4C69938A.9080808@gnutls.org>	<AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com>	<AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com>	<4C6AB936.1070801@extendedsubset.com>	<AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com>	<4C6AD7EA.4040307@extendedsubset.com>	<000401cb3e4f$456f6d60$d04e4820$@briansmith.org>	<4C6B1BAA.5060303@pobox.com>	<AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com>	<4C6C2FDA.6070307@pobox.com>	<AANLkTimjsbg7EErv-kb46TtYG=HPVP-XE0L3+5sJSYF=@mail.gmail.com>	<4C6C3739.4040205@pobox.com>	<AANLkTimjUkw+WBnYc5Oy69u8SoWBhXzheuRRao9w+Vfy@mail.gmail.com> <4C6C420E.9040509@pobox.com>
In-Reply-To: <4C6C420E.9040509@pobox.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 20:50:11 -0000

On 08/18/2010 03:26 PM, Michael D'Errico wrote:
> Adam Langley wrote:
>> However, the number of round trips is critical. However fast the hosts
>> might be, the speed of light always stays the same.
>
> So then NPN is all about reducing a round trip? You say you already
> achieve that with false start. Or do you need something in addition
> that can only be achieved by sticking it in a TLS extension?

If you're using false start, then the inital application data can go out 
in the same packet as a handshake message before Finished, at least in 
one direction, right?

If I understand correctly, the cross protocol DoS prevention is 
accomplished by requiring the client to send something to the server to 
unambiguously signal the use of a specific protocol.

Can't you use some nonces already present in the handshake without 
extending the protocol? A new handshake message is a big deal, I don't 
think it's been done since SSLv2->v3.

For example, couldn't you have the client and server exchange something 
like:

"[protocol: WebSockets " + MD5(TLS session ID  + "WebSockets") + "]\r\n"

as the initial false start application data?

> THAT is what you should be working on. Prediction. If I've clicked
> the same link every morning for the past 18 months, what are the odds
> that I'm going to click it today? 100%. And even if for some reason
> I don't, I'm not going to be at all upset that my browser fetched the
> page for me.

Sounds like you were reading:

http://online.wsj.com/article/SB10001424052748704901104575423294099527212.html

No thank you :-)

- Marsh

From ietf@adambarth.com  Wed Aug 18 13:59:31 2010
Return-Path: <ietf@adambarth.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 67A5B3A6A00 for <tls@core3.amsl.com>; Wed, 18 Aug 2010 13:59:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.758
X-Spam-Level: 
X-Spam-Status: No, score=-1.758 tagged_above=-999 required=5 tests=[AWL=0.219,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
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 Pmyx+zD0bK17 for <tls@core3.amsl.com>; Wed, 18 Aug 2010 13:59:30 -0700 (PDT)
Received: from mail-ew0-f44.google.com (mail-ew0-f44.google.com [209.85.215.44]) by core3.amsl.com (Postfix) with ESMTP id 03B5C3A6A1D for <tls@ietf.org>; Wed, 18 Aug 2010 13:59:29 -0700 (PDT)
Received: by ewy22 with SMTP id 22so806766ewy.31 for <tls@ietf.org>; Wed, 18 Aug 2010 14:00:04 -0700 (PDT)
Received: by 10.213.34.3 with SMTP id j3mr2536648ebd.81.1282165204529; Wed, 18 Aug 2010 14:00:04 -0700 (PDT)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by mx.google.com with ESMTPS id a48sm1217610eei.0.2010.08.18.14.00.03 (version=SSLv3 cipher=RC4-MD5); Wed, 18 Aug 2010 14:00:03 -0700 (PDT)
Received: by iwn3 with SMTP id 3so1085308iwn.31 for <tls@ietf.org>; Wed, 18 Aug 2010 14:00:02 -0700 (PDT)
Received: by 10.231.168.211 with SMTP id v19mr7136194iby.175.1282165202170; Wed, 18 Aug 2010 14:00:02 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.60.18 with HTTP; Wed, 18 Aug 2010 13:59:42 -0700 (PDT)
In-Reply-To: <F91CB64B-E0F6-42B7-B91B-F9F7464709E1@iki.fi>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C69938A.9080808@gnutls.org> <AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com> <AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com> <4C6AB936.1070801@extendedsubset.com> <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com> <4C6AD7EA.4040307@extendedsubset.com> <000401cb3e4f$456f6d60$d04e4820$@briansmith.org> <4C6B1BAA.5060303@pobox.com> <AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com> <4C6B8189.5080406@extendedsubset.com> <AANLkTi=9TLG4f5eZ6h6duYKvcVueT53H26WNZpWV6TKS@mail.gmail.com> <F91CB64B-E0F6-42B7-B91B-F9F7464709E1@iki.fi>
From: Adam Barth <ietf@adambarth.com>
Date: Wed, 18 Aug 2010 13:59:42 -0700
Message-ID: <AANLkTi=TmbOiLCpiOWyxXSDs-z-V5Bw7w=gLtvoerAvy@mail.gmail.com>
To: "tls@ietf.org" <tls@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 20:59:31 -0000

On Wed, Aug 18, 2010 at 2:37 AM, Juho V=E4h=E4-Herttua <juhovh@iki.fi> wrot=
e:
> On 18.8.2010, at 11.42, Adam Barth wrote:
>> Thanks for your feedback. =A0This looks to be an area in which we can
>> improve the extension.
>
> This is a serious concern so far, since if the selected_protocol is not v=
ery well defined, two different users of the NPN extension might be conflic=
ting. I don't know if using the port assignments is a good idea, since ther=
e are many undocumented and conflicting port uses as well. On the other han=
d a string identifier just feels a bit dirty...

It seems likely we'd want an IANA registry to avoid conflicts, similar
to the HTTP header registry.

> If that handshake is garbage, are there similar plans to "fix" the plain =
HTTP version of WebSockets, or is the plan that NPN would be used with TLS =
and the old handshake is used with HTTP? This sounds like it makes the life=
 of WebSockets implementors a much harder, since they have to consider two =
completely different schemes, wouldn't it?

The plan is to remove the HTTP version.

> Since the plan of NPN is to improve the security of WebSockets, what kind=
 of attacks it protects against, compared to simply having the HTTP style h=
andshake negotiation inside a secure TLS connection?

Cross-protocol attacks, as described above.  I know the thread has
gotten pretty long, but hopefully you'll be able to find the answer
now that you have the key words.

> I understand that the protocol is much "cleaner" in a way with NPN, but i=
n case it is to be used the earlier concerns about selecting a correct cert=
ificate based on the protocol type are valid as well. I think having the Ne=
xtProtocol handshake message before the ChangeCipherSpec and using renegoti=
ation in case the contents need to be protected could be considered.

Indeed.  That does seem worth considering.

> Sorry if some questions are already answered, this is a long thread and I=
 haven't read all the messages that carefully. I'm just trying to sum up he=
re what I've seen so far.

Yeah, I imagine this thread is pretty unapproachable at this point.  :-/

On Wed, Aug 18, 2010 at 1:47 PM, Nathaniel W Filardo <nwf@cs.jhu.edu> wrote=
:
> I realize this is the TLS mailing list, but...
>
> WebSockets are, AFAIK, designed to have a mandatory HTTP-alike header
> specifically so that they can be discriminated from HTTP without requirin=
g
> any lower level identification being necessary (though apparently the dra=
fts
> of the WS specification are less than perfect about maintaining this
> guarantee). =A0In any case, this ought to render any concerns of being un=
able
> to make WS connections while still making HTTPS connections moot; they ca=
n
> _already_ be intermixed on port 443. =A0Moreover, cross-protocol attacks =
do
> not require the advanced control present in WS (though surely it helps);
> HTTP has proven to be sufficiently useful to carry out cross-protocol
> attacks against both SMTP and IRC servers. =A0It seems odd to me that sec=
ure
> WS is the forcing issue here.

Browser vendors do not want to add more attack surface.  We're stuck
with HTTP, but that doesn't mean we should add more protocols that
make the same security mistakes.

> It also seems very odd to me that this is being viewed as a TLS-only thin=
g.
> Cross-protocol attacks are not limited to the world of secured TLS stream=
s
> (see above), and TCP ports are not in fact protocol identifiers, despite
> some traditions that conflate the two concepts. =A0If cross-protocol atta=
cks
> are a concern (and I'm not saying they're not), then TLS NPN is necessary
> but insufficient -- the outer layers and insecure links must also be
> protected.

We're not trying to solve cross-protocol attacks for every protocol in
the work.  We're trying to design a new protocol that is immune to
cross-protocol attacks.

> Further, protocols inside TLS are already implicitly weakly protected if =
the
> endpoints require authentication. =A0There isn't any way that my web brow=
ser
> can carry out an HTTPS cross-protocol attack against an SMTPS server, unl=
ess
> the attacker already knows the appropriate SMTP credentials or I have cli=
ent
> certs accepted by the SMTPS server loaded in my browser. =A0Any attempt t=
he
> browser makes at authenticating via HTTP mechanisms is going to be ignore=
d
> by the SMTPS server. =A0If I require STARTTLS for SMTP, I'm in an even be=
tter
> position than if I were using just SMTPS, as the client cert issue is gon=
e.
> (Would that the HTTP world actually believed in Upgrade: for starting TLS=
!)

That's not an accurate understanding of how cross-protocol attacks
work.  Whether or not we're inside a TLS tunnel, the issues are the
same.  One way to understand this is to think about a VPN.  Clearly it
doesn't matter whether the cross-protocol attacks are taking place
inside an IPv6 tunnel, does it?

> Are there, in fact, attempts to mark sender's intended protocol outside o=
f
> TLS being concurrently worked on (perhaps by extending the use of IPv6's
> Next Header field across the TCP header)? =A0If not, why should we believ=
e
> that standardization and adoption of a TLS-only NPN will help much at all=
?

I'd in fact prefer to use IPv6, but WebSockets must work with IPv4.

Kind regards,
Adam

From mike-list@pobox.com  Wed Aug 18 14:14:22 2010
Return-Path: <mike-list@pobox.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 0739D3A6A1B for <tls@core3.amsl.com>; Wed, 18 Aug 2010 14:14:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000,  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 IO9LMckw-J0g for <tls@core3.amsl.com>; Wed, 18 Aug 2010 14:14:20 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id F2FA33A6A12 for <tls@ietf.org>; Wed, 18 Aug 2010 14:14:19 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id B6951CE0AB; Wed, 18 Aug 2010 17:14:54 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=vJIsSVc+OhYM aoUhEBOEMjSInvQ=; b=wSNa9jggRz5GVOArbsCbGiILSwsdI50/VaxebGczQKJH /sP7raUFG0YTWY7joJI3t67V1513mklN+/cryK57VUbQ1QkLR1xd17kYpF8PWNbK uhBmNS9xQk5TtYpTxbw+dS2tWNVjGM7eVRgeYVC/Jm0A/yg16GpkUx+ISujOKnw=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=kgoZrN oKhVsQO7nMSmPesWcVdIrHd72PMG7BzAAMgJenVHuOdkpwnGpjqxpyRsbSRzQrYX ckBbJm8NQv9J/1kt5ZShOxMTgUgrYHR25abZ1y5131rha2mX8bGH+VtFqOinTMgw tKQ25FJyS4irvb6wVUS0f7tICDesfoH4ulZwE=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 942BBCE0AA; Wed, 18 Aug 2010 17:14:52 -0400 (EDT)
Received: from iMac.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id E2B6FCE0A9; Wed, 18 Aug 2010 17:14:49 -0400 (EDT)
Message-ID: <4C6C4D48.7050608@pobox.com>
Date: Wed, 18 Aug 2010 14:14:48 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
To: Marsh Ray <marsh@extendedsubset.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com> <4C69938A.9080808@gnutls.org> <AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com> <AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com> <4C6AB936.1070801@extendedsubset.com> <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com> <4C6AD7EA.4040307@extendedsubset.com> <000401cb3e4f$456f6d60$d04e4820$@briansmith.org>	<4C6B1BAA.5060303@pobox.com> <AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com> <4C6C2FDA.6070307@pobox.com> <AANLkTimjsbg7EErv-kb46TtYG=HPVP-XE0L3+5sJSYF=@mail.gmail.com> <4C6C3739.4040205@pobox.com> <AANLkTimjUkw+WBnYc5Oy69u8SoWBhXzheuRRao9w+Vfy@mail.gmail.com> <4C6C420E.9040509@pobox.com> <4C6C47A4.9080407@extendedsubset.com>
In-Reply-To: <4C6C47A4.9080407@extendedsubset.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: A46AC92E-AB0D-11DF-8D54-9056EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 21:14:22 -0000

Marsh Ray wrote:
> On 08/18/2010 03:26 PM, Michael D'Errico wrote:
> 
>> THAT is what you should be working on. Prediction. If I've clicked
>> the same link every morning for the past 18 months, what are the odds
>> that I'm going to click it today? 100%. And even if for some reason
>> I don't, I'm not going to be at all upset that my browser fetched the
>> page for me.
> 
> Sounds like you were reading:
> 
> http://online.wsj.com/article/SB10001424052748704901104575423294099527212.html 
> 
> No thank you :-)

No, no, no, not at all what I was suggesting.

For example, I open a link to my spam folder every morning so I can check
for false positives.  That page takes forever to load, so waiting for it
is tedious.  I'd like that page to start loading the instant my computer
knows I'm sitting in front of it.  Same thing for a few other pages.  By
the time I actually get to my browser, these pages that I look at every
morning could all be there fully rendered, so I don't have to wait even a
millisecond.

[Since this is off topic, I won't further comment on it.]

Mike

From marsh@extendedsubset.com  Wed Aug 18 14:38:03 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id BE50A3A6A0C for <tls@core3.amsl.com>; Wed, 18 Aug 2010 14:38:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.049
X-Spam-Level: 
X-Spam-Status: No, score=-2.049 tagged_above=-999 required=5 tests=[AWL=0.550,  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 YDeXj0o5oVuV for <tls@core3.amsl.com>; Wed, 18 Aug 2010 14:38:02 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id 9870E3A6A08 for <tls@ietf.org>; Wed, 18 Aug 2010 14:38:02 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OlqLF-000L80-Jh; Wed, 18 Aug 2010 21:38:37 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 49DDD6092; Wed, 18 Aug 2010 21:38:36 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1/HmpANeu/M9Ja8Zk6RyXM+Sxbd5d7Nxow=
Message-ID: <4C6C52DE.1070903@extendedsubset.com>
Date: Wed, 18 Aug 2010 16:38:38 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: Adam Barth <ietf@adambarth.com>
References: <AANLkTi=5H_0hGzxMmfNU0hLS=5psW6J3c2to756OT--7@mail.gmail.com>	<4C69938A.9080808@gnutls.org>	<AANLkTin3eQHNJPuVuVw09FbPUF4RBk7n9RFbc7EaFbM+@mail.gmail.com>	<AANLkTi=dfCZNndm678OFkCZdzRhzfmRvBmZVLUD5-ueF@mail.gmail.com>	<4C6AB936.1070801@extendedsubset.com>	<AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com>	<4C6AD7EA.4040307@extendedsubset.com>	<000401cb3e4f$456f6d60$d04e4820$@briansmith.org>	<4C6B1BAA.5060303@pobox.com>	<AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com>	<4C6B8189.5080406@extendedsubset.com>	<AANLkTi=9TLG4f5eZ6h6duYKvcVueT53H26WNZpWV6TKS@mail.gmail.com>	<F91CB64B-E0F6-42B7-B91B-F9F7464709E1@iki.fi> <AANLkTi=TmbOiLCpiOWyxXSDs-z-V5Bw7w=gLtvoerAvy@mail.gmail.com>
In-Reply-To: <AANLkTi=TmbOiLCpiOWyxXSDs-z-V5Bw7w=gLtvoerAvy@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 21:38:03 -0000

On 08/18/2010 03:59 PM, Adam Barth wrote:
>
> We're not trying to solve cross-protocol attacks for every protocol in
> the work.  We're trying to design a new protocol that is immune to
> cross-protocol attacks.

But, by definition, such an attack involves arbitrary other protocols.

> On Wed, Aug 18, 2010 at 2:37 AM, Juho V=E4h=E4-Herttua<juhovh@iki.fi>  =
wrote:
>> Further, protocols inside TLS are already implicitly weakly protected =
if the
>> endpoints require authentication.  There isn't any way that my web bro=
wser
>> can carry out an HTTPS cross-protocol attack against an SMTPS server, =
unless
>> the attacker already knows the appropriate SMTP credentials or I have =
client
>> certs accepted by the SMTPS server loaded in my browser.  Any attempt =
the
>> browser makes at authenticating via HTTP mechanisms is going to be ign=
ored

TLS normally provides decent authentication. Cross-protocol attacks over=20
TLS connections are only possible because the authentication only covers=20
the DNS name of the server.

It should probably also include the intended protocol. I've seen some=20
hints of that with in various x509 fields, but they don't appear to be=20
marked 'critical'.

> That's not an accurate understanding of how cross-protocol attacks
> work.  Whether or not we're inside a TLS tunnel, the issues are the
> same.  One way to understand this is to think about a VPN.  Clearly it
> doesn't matter whether the cross-protocol attacks are taking place
> inside an IPv6 tunnel, does it?

It seems like certificates could be used to authenticate the server's=20
hostname and also the intended protocol (in both directions!), were it=20
not for the distortions induced by the PKI business.

 >> by the SMTPS server.  If I require STARTTLS for SMTP, I'm in an even=20
better
 >> position than if I were using just SMTPS, as the client cert issue=20
is gone.
 >> (Would that the HTTP world actually believed in Upgrade: for=20
starting TLS!)

Those mechanisms are typically subject to downgrade attacks.

- Marsh

From nwf@cs.jhu.edu  Thu Aug 19 00:29:48 2010
Return-Path: <nwf@cs.jhu.edu>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D91E43A689F for <tls@core3.amsl.com>; Thu, 19 Aug 2010 00:29:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.299
X-Spam-Level: 
X-Spam-Status: No, score=-2.299 tagged_above=-999 required=5 tests=[AWL=-0.300, BAYES_00=-2.599, J_CHICKENPOX_14=0.6]
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 QmiAG32ef86G for <tls@core3.amsl.com>; Thu, 19 Aug 2010 00:29:48 -0700 (PDT)
Received: from blaze.cs.jhu.edu (blaze.cs.jhu.edu [128.220.13.50]) by core3.amsl.com (Postfix) with ESMTP id BC8C53A6864 for <tls@ietf.org>; Thu, 19 Aug 2010 00:29:47 -0700 (PDT)
Received: from gradx.cs.jhu.edu (gradx.cs.jhu.edu [128.220.13.52]) by blaze.cs.jhu.edu (8.14.3/8.14.3) with ESMTP id o7J7UMVr019928 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <tls@ietf.org>; Thu, 19 Aug 2010 03:30:22 -0400 (EDT)
Received: from gradx.cs.jhu.edu (localhost [127.0.0.1]) by gradx.cs.jhu.edu (8.14.3/8.13.1) with ESMTP id o7J7ULqh020985 for <tls@ietf.org>; Thu, 19 Aug 2010 03:30:21 -0400
Received: (from nwf@localhost) by gradx.cs.jhu.edu (8.14.3/8.13.8/Submit) id o7J7ULpm020984 for tls@ietf.org; Thu, 19 Aug 2010 03:30:21 -0400
Date: Thu, 19 Aug 2010 03:30:21 -0400
From: Nathaniel W Filardo <nwf@cs.jhu.edu>
To: "tls@ietf.org" <tls@ietf.org>
Message-ID: <20100819073021.GV18003@gradx.cs.jhu.edu>
References: <4C6AB936.1070801@extendedsubset.com> <AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com> <4C6AD7EA.4040307@extendedsubset.com> <000401cb3e4f$456f6d60$d04e4820$@briansmith.org> <4C6B1BAA.5060303@pobox.com> <AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com> <4C6B8189.5080406@extendedsubset.com> <AANLkTi=9TLG4f5eZ6h6duYKvcVueT53H26WNZpWV6TKS@mail.gmail.com> <F91CB64B-E0F6-42B7-B91B-F9F7464709E1@iki.fi> <AANLkTi=TmbOiLCpiOWyxXSDs-z-V5Bw7w=gLtvoerAvy@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="B2GzrzFQbYDXIsTK"
Content-Disposition: inline
In-Reply-To: <AANLkTi=TmbOiLCpiOWyxXSDs-z-V5Bw7w=gLtvoerAvy@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-08-17)
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2010 07:29:49 -0000

--B2GzrzFQbYDXIsTK
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Aug 18, 2010 at 01:59:42PM -0700, Adam Barth wrote:
> > Further, protocols inside TLS are already implicitly weakly protected i=
f the
> > endpoints require authentication. =A0There isn't any way that my web br=
owser
> > can carry out an HTTPS cross-protocol attack against an SMTPS server, u=
nless
> > the attacker already knows the appropriate SMTP credentials or I have c=
lient
> > certs accepted by the SMTPS server loaded in my browser. =A0Any attempt=
 the
> > browser makes at authenticating via HTTP mechanisms is going to be igno=
red
> > by the SMTPS server. =A0If I require STARTTLS for SMTP, I'm in an even =
better
> > position than if I were using just SMTPS, as the client cert issue is g=
one.
> > (Would that the HTTP world actually believed in Upgrade: for starting T=
LS!)
>=20
> That's not an accurate understanding of how cross-protocol attacks
> work.  Whether or not we're inside a TLS tunnel, the issues are the
> same.  One way to understand this is to think about a VPN.  Clearly it
> doesn't matter whether the cross-protocol attacks are taking place
> inside an IPv6 tunnel, does it?

The particular class of attacks you're worried about all involve an agent,
C, making requests to a server S, on behalf of some untrusted third party,
M.  Further, S thinks that it is speaking P and C thinks that it is speaking
Q, with P !=3D Q.  It happens to be that S's interpretation of P is compati=
ble
with C's production of Q.  Is that not an accurate understanding?

For concrete example, in the case of P=3DSMTP and Q=3DHTTP, M requests that=
 C
make a POST request to S; S in turn will typically ignore C's HTTP
verb/object/version line and any headers.  Reason being, HTTP verbs and
options (which all involve a : before whitespace) don't overlap with the
SMTP vocabuarly, and so S ignores them as malformed lines.  Note that TLS
NPN does _nothing_ to help here, since TLS is not involved.  _Every_
cross-protocol attack I am aware of is of this class; if you can provide
citations otherwise, I would love to see them.

Now, we can ignore (P,Q) being (SMTP,HTTPS) or (SMTPS,HTTP) since neither
off-diagonal form is going to be able to bring up the TLS session to
everybody's satisfaction.

(P,Q)=3D(SMTPS,HTTPS) with neither C nor S expecting to see authentication
essentially behaves as (SMTP,HTTP), I agree; TLS NPN helps here.

(P,Q)=3D(SMTPS,HTTPS) with S expecting C to authenticate will result in a
cross-protocol attack iff either of the following conditions are met:
  1. C has a client certificate which S will accept and S does not expect
     in-band authentication.
  2. M has been able to specifically craft a P-message involving suitable
     credentials for C's use in this transmission.
Neither of these are terribly realisitic (in my mostly speculative opinion).
Note that if S's knobs are set such that P requires a challenge-response
authentication pass, that M will, whp, be unable to successfully take option
2.  TLS NPN doen't hurt here, but there's not a lot of headroom for it to
help -- the connection is likely going to fail anyway.

That was the only claim I was making.

In all, while I have no intrinsic objection to TLS NPN, it seems to me that
the solution should be independent of the cryptographic provisioning layer,
since it demonstrably has nothing to do with said functionality.

--nwf;

--B2GzrzFQbYDXIsTK
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iEYEARECAAYFAkxs3Y0ACgkQTeQabvr9Tc/rVgCdGrCdZ1qhbOPZ3iI9W5qdqSo1
ulgAn05ZKTfXTunKr2ckOPUlPDeipbD9
=fsHB
-----END PGP SIGNATURE-----

--B2GzrzFQbYDXIsTK--

From ietf@adambarth.com  Thu Aug 19 01:18:15 2010
Return-Path: <ietf@adambarth.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B5BCF3A68EC for <tls@core3.amsl.com>; Thu, 19 Aug 2010 01:18:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.386
X-Spam-Level: 
X-Spam-Status: No, score=-0.386 tagged_above=-999 required=5 tests=[AWL=-1.275, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, J_CHICKENPOX_14=0.6, J_CHICKENPOX_33=0.6, SARE_FWDLOOK=1.666]
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 AQ4lwOKRmy7K for <tls@core3.amsl.com>; Thu, 19 Aug 2010 01:18:14 -0700 (PDT)
Received: from mail-yw0-f44.google.com (mail-yw0-f44.google.com [209.85.213.44]) by core3.amsl.com (Postfix) with ESMTP id 30E943A67E1 for <tls@ietf.org>; Thu, 19 Aug 2010 01:18:14 -0700 (PDT)
Received: by ywi4 with SMTP id 4so516533ywi.31 for <tls@ietf.org>; Thu, 19 Aug 2010 01:18:49 -0700 (PDT)
Received: by 10.90.63.1 with SMTP id l1mr1000385aga.146.1282205928556; Thu, 19 Aug 2010 01:18:48 -0700 (PDT)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by mx.google.com with ESMTPS id g31sm1186957ibh.16.2010.08.19.01.18.46 (version=SSLv3 cipher=RC4-MD5); Thu, 19 Aug 2010 01:18:47 -0700 (PDT)
Received: by iwn3 with SMTP id 3so1759200iwn.31 for <tls@ietf.org>; Thu, 19 Aug 2010 01:18:46 -0700 (PDT)
Received: by 10.231.191.147 with SMTP id dm19mr10886845ibb.6.1282205926257; Thu, 19 Aug 2010 01:18:46 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.60.18 with HTTP; Thu, 19 Aug 2010 01:18:26 -0700 (PDT)
From: Adam Barth <ietf@adambarth.com>
Date: Thu, 19 Aug 2010 01:18:26 -0700
Message-ID: <AANLkTi=pXFM7HnXJCuJUoKVZKnX1HijQMRr3nHFefHZD@mail.gmail.com>
To: Nathaniel W Filardo <nwf@cs.jhu.edu>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: [TLS] Preventing cross-protocol attacks without NPN (was: Request for review: Next Protocol Negotiation Extension)
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2010 08:18:15 -0000

[I've changed the subject because Nathaniel's reply was quite
thoughtful and I suspect many folks have tuned out of the original
thread due to its size.]

On Thu, Aug 19, 2010 at 12:30 AM, Nathaniel W Filardo <nwf@cs.jhu.edu> wrot=
e:
> On Wed, Aug 18, 2010 at 01:59:42PM -0700, Adam Barth wrote:
>> > Further, protocols inside TLS are already implicitly weakly protected =
if the
>> > endpoints require authentication. =A0There isn't any way that my web b=
rowser
>> > can carry out an HTTPS cross-protocol attack against an SMTPS server, =
unless
>> > the attacker already knows the appropriate SMTP credentials or I have =
client
>> > certs accepted by the SMTPS server loaded in my browser. =A0Any attemp=
t the
>> > browser makes at authenticating via HTTP mechanisms is going to be ign=
ored
>> > by the SMTPS server. =A0If I require STARTTLS for SMTP, I'm in an even=
 better
>> > position than if I were using just SMTPS, as the client cert issue is =
gone.
>> > (Would that the HTTP world actually believed in Upgrade: for starting =
TLS!)
>>
>> That's not an accurate understanding of how cross-protocol attacks
>> work. =A0Whether or not we're inside a TLS tunnel, the issues are the
>> same. =A0One way to understand this is to think about a VPN. =A0Clearly =
it
>> doesn't matter whether the cross-protocol attacks are taking place
>> inside an IPv6 tunnel, does it?
>
> The particular class of attacks you're worried about all involve an agent=
,
> C, making requests to a server S, on behalf of some untrusted third party=
,
> M. =A0Further, S thinks that it is speaking P and C thinks that it is spe=
aking
> Q, with P !=3D Q. =A0It happens to be that S's interpretation of P is com=
patible
> with C's production of Q. =A0Is that not an accurate understanding?

Yes, precisely.

> For concrete example, in the case of P=3DSMTP and Q=3DHTTP, M requests th=
at C
> make a POST request to S; S in turn will typically ignore C's HTTP
> verb/object/version line and any headers. =A0Reason being, HTTP verbs and
> options (which all involve a : before whitespace) don't overlap with the
> SMTP vocabuarly, and so S ignores them as malformed lines. =A0Note that T=
LS
> NPN does _nothing_ to help here, since TLS is not involved. =A0_Every_
> cross-protocol attack I am aware of is of this class; if you can provide
> citations otherwise, I would love to see them.
>
> Now, we can ignore (P,Q) being (SMTP,HTTPS) or (SMTPS,HTTP) since neither
> off-diagonal form is going to be able to bring up the TLS session to
> everybody's satisfaction.
>
> (P,Q)=3D(SMTPS,HTTPS) with neither C nor S expecting to see authenticatio=
n
> essentially behaves as (SMTP,HTTP), I agree; TLS NPN helps here.

More precisely, it would if either SMTPS or HTTPS required NPN (which
they don't).  It really helps more with (WebSockets, X) for all X
because WebSockets requires NPN and therefore will neither confuse nor
be confused by any other protocol.

> (P,Q)=3D(SMTPS,HTTPS) with S expecting C to authenticate will result in a
> cross-protocol attack iff either of the following conditions are met:
> =A01. C has a client certificate which S will accept and S does not expec=
t
> =A0 =A0 in-band authentication.
> =A02. M has been able to specifically craft a P-message involving suitabl=
e
> =A0 =A0 credentials for C's use in this transmission.
>
> Neither of these are terribly realisitic (in my mostly speculative opinio=
n).

That's the flaw in your reasoning.  Both are certainly possible, but
(2) is more likely.  Consider the case of HTTP attacking FTP, which we
have experience with in the wild.  Even though FTP requires the client
to authenticate (in this case), an attacker can craft an HTTP request
that tricks the server into thinking the request contains FTP
authentication credentials.  (It's a fun exercise to make this work
with your favorite FTP server implementation.)

> Note that if S's knobs are set such that P requires a challenge-response
> authentication pass, that M will, whp, be unable to successfully take opt=
ion
> 2. =A0TLS NPN doen't hurt here, but there's not a lot of headroom for it =
to
> help -- the connection is likely going to fail anyway.

I wouldn't be so sure.  With HTTP keepalive, an attacker might well be
able to read back bytes from the server and then formulate a second
request that contains the response to the server's challenge.  You're
right that this gets harder, but it's quite far from impossible.

Constructing these attacks is a somewhat subtle business.  It feels a
lot like putting a square peg into a round hole, but we have plenty of
evidence that these attacks exist.  (I don't mean to keep harping on
HTTP attacking other protocols, that's just what we have the most
experience with.)

> That was the only claim I was making.

I understand why you came to the conclusions you did, but this
business is a bit more subtle than it appears at first, much like
achieving mutual authentication over an untrusted network.  ;)

> In all, while I have no intrinsic objection to TLS NPN, it seems to me th=
at
> the solution should be independent of the cryptographic provisioning laye=
r,
> since it demonstrably has nothing to do with said functionality.

If you have a solution that works as well as (or better than) TLS+NPN,
the HyBi working group would likely be quite interested in hearing
your proposal.  You're certainly right that one could imagine
implementing this functionality if we had a better extension mechanism
in TCP, but, sadly, we don't.  Currently, TLS+NPN is the best design
I've seen (I suspect because TLS has a forward-looking extension
mechanism, not because of its encryption facilities).

Kind regards,
Adam

From mrex@sap.com  Thu Aug 19 06:47:34 2010
Return-Path: <mrex@sap.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 798003A693B for <tls@core3.amsl.com>; Thu, 19 Aug 2010 06:47:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.539
X-Spam-Level: 
X-Spam-Status: No, score=-8.539 tagged_above=-999 required=5 tests=[AWL=-0.890, BAYES_50=0.001, 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 x+URj1qty+qr for <tls@core3.amsl.com>; Thu, 19 Aug 2010 06:47:33 -0700 (PDT)
Received: from smtpde01.sap-ag.de (smtpde01.sap-ag.de [155.56.68.170]) by core3.amsl.com (Postfix) with ESMTP id D5DD83A67F4 for <tls@ietf.org>; Thu, 19 Aug 2010 06:47:32 -0700 (PDT)
Received: from mail.sap.corp by smtpde01.sap-ag.de (26) with ESMTP id o7JDm39G023696 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 19 Aug 2010 15:48:03 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201008191348.o7JDm2li005391@fs4113.wdf.sap.corp>
To: ietf@adambarth.com (Adam Barth)
Date: Thu, 19 Aug 2010 15:48:02 +0200 (MEST)
In-Reply-To: <AANLkTi=pXFM7HnXJCuJUoKVZKnX1HijQMRr3nHFefHZD@mail.gmail.com> from "Adam Barth" at Aug 19, 10 01:18:26 am
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal05
X-SAP: out
Cc: tls@ietf.org
Subject: Re: [TLS] Preventing cross-protocol attacks without NPN (was: Request
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2010 13:47:34 -0000

Nathaniel W Filardo <nwf@cs.jhu.edu> wrote:
>
> The particular class of attacks you're worried about all involve an agent,
> C, making requests to a server S, on behalf of some untrusted third party,
> M.  Further, S thinks that it is speaking P and C thinks that it is speaking
> Q, with P != Q.  It happens to be that S's interpretation of P is compatible
> with C's production of Q.  Is that not an accurate understanding?

"involve an agent C".  It's about a promiscuous zombie call "web browser"
(not necessarily Mr. Smith in a black suit). ;-)

The last "cross-protocol attack" I complained about was TLS endpoints
chasing AIA URLs from untrusted end-entity certs when faced with
incomplete certificate chains.  There the scenario involved a client
(browser), a server (online bank) who trust each other and a secure
protocol (TLS), which was susceptible to outside(!) attackers injecting
a crafted ServerHello+ServerCertificate handshake message into a newly
established TCP connection.  

The "cross-protocol attack" mentioned with WebSocket, on the other hand,
is about a completely different threat scenario.  There, the worry
is about rightful peers, i.e. Servers attacking clients by serving
them URLs and active content to coerce them in connecting to services
that they shouldn't be connecting to.


Personally, I don't think NPN is going to improve anything.  It is
just going to make things slightly more obscure, but by misleading
the consumers of the technology about where there is the flaw in
their architecure, they're going to significantly increase the
damage in the long run.

Blacklisting known bad stuff is a race that you can not win.

Probably no one would suggest to "enhance" MUA to roam the internet
and collect more spam to present to the user.  Browsers do just that,
they will happily download and annoy end users with significantly
larger amounts of spamvertisement than most users would agree to
when asked.

For Java applets there was originally a security model that the
applet could only callback to the site where it came from.
Security-wise this was a sensible approach.  If something similar
had been done for HTML pages, XSS would be a non-problem and
neither would there be any cross-protocol issues.

Since the services that are listening for plaintext protocols today
are not going to go away anytime soon, why do you think the situation
would improve with NPN?  Is there a "once WebSockets -- forever WebSockets"
requirement, that mixing content from "old" (port 80) and
"new" Web (=through WebSockets) is going to be entirely prohibited?


Cross-Protocol attacks are very very old stuff.
Back in the old days of the IP-Protocols, there were services
such as "chargen 19/udp" and "echo 7/udp" and IIRC, you only needed
to send a UDP datagram with a crafted source ip/port to chargen
to make two machines saturate a network link.


The WebSockets + NPN architecture sounds like a inetd with builtin
TLS and out-of-band protocol signaling instead of relying on the
implicit assumptions of well known ports.


But this approach, especially when _NOT_ sending the next protocol
in the ClientHello (in clear text), is in direct conflict with the
idea to perform server endpoint identification for TLS in a fashion
that clearly distinguishes services by their certificate (attributes),
like ExtendedKeyUsage (EKUs) and Service SubjectAltNames.

Personally, I really dislike the idea of requiring all application
services on a Host to be single-admin'ed and all authentication
and authorization at the TLS layer to be unconditionally host-wide.
That comes close to killing TLS client certificates as a means to
authenticate users if you have differing requirements for applications.


The protection that you're looking for should be provided by IPsec,
not a multiplexing TLS+NPN-enriched WebSockets inetd.

Seperating services on a host into individual processes with
only those privileges and the level of user authentication and
user authorization that these services actually need is sensible
risk management.  Terminating and dispatching EVERY network
connection to a machine in a single application puts us back
into the MS-DOS area (lack of process seperation).


And what exactly do you mean by "Next Protocol".  A lot of stuff
uses HTTP these days, and if you really only distinguish the
next protocol level, then there still is a lot of cross-protocol
attack surface left.  Doesn't SOAP use HTTP as well?
I know that my DSL-router is VERY open-minded to SOAP-requests
for administrative purposes (and no, it doesn't require authentication
for many actions -- different to the administrative WebUI).


-Martin

From mrex@sap.com  Thu Aug 19 07:19:58 2010
Return-Path: <mrex@sap.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D90123A67F4 for <tls@core3.amsl.com>; Thu, 19 Aug 2010 07:19:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.821
X-Spam-Level: 
X-Spam-Status: No, score=-9.821 tagged_above=-999 required=5 tests=[AWL=0.428,  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 zeGnESkQ4-WV for <tls@core3.amsl.com>; Thu, 19 Aug 2010 07:19:57 -0700 (PDT)
Received: from smtpde02.sap-ag.de (smtpde02.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id 9DCDC3A6358 for <tls@ietf.org>; Thu, 19 Aug 2010 07:19:57 -0700 (PDT)
Received: from mail.sap.corp by smtpde02.sap-ag.de (26) with ESMTP id o7JEKUnr009855 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 19 Aug 2010 16:20:31 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201008191420.o7JEKUb0007136@fs4113.wdf.sap.corp>
To: mike-list@pobox.com (Michael D'Errico)
Date: Thu, 19 Aug 2010 16:20:30 +0200 (MEST)
In-Reply-To: <4C6C2FDA.6070307@pobox.com> from "Michael D'Errico" at Aug 18, 10 12:09:14 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal08
X-SAP: out
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2010 14:19:59 -0000

Adam Barth wrote:
> On Tue, Aug 17, 2010 at 5:14 PM, Marsh Ray <marsh@extendedsubset.com> wrote:
>> On 08/17/2010 04:00 PM, Brian Smith wrote:
> 
>>> Google, Amazon.com, and others claim significant decreases in revenue that
>>> correlate with increases in latency of 100ms or even less.
>> Interesting, I had heard of that. Link?
> 
> This is a well-established fact.

When I'm at home (DSL ~2500/600), I can boost the rendering of
pages by 2x using Adblock plus (Firefox).  And NoScripts give me
some more performance back (but requires more "personal training" in
distinguishing friend and foe).  There's is likely no amount
of additional(!) wrapping you could add with WebSockets+NPN that comes
even close to that.

And frankly, I'm actually glad that I can choose my Email MUA seperate
from my Web Browser and don't mind when my Web Browser denies connects
to any port below 1024 besides 80/443.  Our companies firewall is
limited to 80/443 and while there are occasionally other ports
that would find useful being able to use, none of them is below 1024
(from those where connecting with a browser makes sense).


What I fail to understand is why some browsers complain badly when
I consciously and manually enter a destination with an usual port
in exactly the same fashion as if a rogue server tries to coerce
a browser into connecting something unusual without the user
not having asked for it (or explicitly confirmed it).

When browsers fail to distinguish friend (end user) and foe (servers),
then it is a bug of the browser in combination with vulnerabilities
of the protocol between browsers and servers.  It definitely is not
a lack of a particular TLS extension, and it is pretty unlikely that
any number of TLS extensions are going to snake oil browser bugs or
the vulnerabilities in the server<->browser application protocols
go away,

-Martin

From pgut001@cs.auckland.ac.nz  Thu Aug 19 07:28:54 2010
Return-Path: <pgut001@cs.auckland.ac.nz>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 091F53A694E for <tls@core3.amsl.com>; Thu, 19 Aug 2010 07:28:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.366
X-Spam-Level: 
X-Spam-Status: No, score=-3.366 tagged_above=-999 required=5 tests=[AWL=0.233,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 Js8pUdoRzIPX for <tls@core3.amsl.com>; Thu, 19 Aug 2010 07:28:53 -0700 (PDT)
Received: from mx2-int.auckland.ac.nz (mx2-int.auckland.ac.nz [130.216.12.41]) by core3.amsl.com (Postfix) with ESMTP id B66A23A6950 for <tls@ietf.org>; Thu, 19 Aug 2010 07:28:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=pgut001@cs.auckland.ac.nz; q=dns/txt; s=uoa; t=1282228168; x=1313764168; h=from:to:subject:cc:in-reply-to:message-id:date; z=From:=20Peter=20Gutmann=20<pgut001@cs.auckland.ac.nz> |To:=20mrex@sap.com|Subject:=20Re:=20[TLS]=20Request=20fo r=20review:=20Next=20Protocol=20Negotiation=20Extension |Cc:=20tls@ietf.org|In-Reply-To:=20<201008191420.o7JEKUb0 007136@fs4113.wdf.sap.corp>|Message-Id:=20<E1Om67C-000560 -IP@wintermute02.cs.auckland.ac.nz>|Date:=20Fri,=2020=20A ug=202010=2002:29:10=20+1200; bh=dyDyboGqkEVZNomjinDaZTLFmdxnPlfl6/pcX5HTbqw=; b=igoLCTG2c1lQjbD/D6p268RUXlkFb0wEvrQnzjNk5RXzoip47ovVUSVX 0WBY3e3oR9WxoFukTHEDgnwPpkxMU+JiPV5tIUtG8FXA+Z/bZqZ6rqH20 syWPBUP1ItBbK7m+4x3VHNnHUCfvHXn86VbESZ84UwanfGRsUt8OouSxG E=;
X-IronPort-AV: E=Sophos;i="4.56,233,1280664000"; d="scan'208";a="21800446"
X-Ironport-HAT: UNIVERSITY - $RELAY-THROTTLE
X-Ironport-Source: 130.216.207.92 - Outgoing - Outgoing
Received: from wintermute02.cs.auckland.ac.nz ([130.216.207.92]) by mx2-int.auckland.ac.nz with ESMTP/TLS/AES256-SHA; 20 Aug 2010 02:29:10 +1200
Received: from pgut001 by wintermute02.cs.auckland.ac.nz with local (Exim 4.69) (envelope-from <pgut001@cs.auckland.ac.nz>) id 1Om67C-000560-IP; Fri, 20 Aug 2010 02:29:10 +1200
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: mrex@sap.com
In-Reply-To: <201008191420.o7JEKUb0007136@fs4113.wdf.sap.corp>
Message-Id: <E1Om67C-000560-IP@wintermute02.cs.auckland.ac.nz>
Date: Fri, 20 Aug 2010 02:29:10 +1200
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2010 14:28:54 -0000

Martin Rex <mrex@sap.com> writes:

>When I'm at home (DSL ~2500/600), I can boost the rendering of pages by 2x
>using Adblock plus (Firefox).  And NoScripts give me some more performance
>back (but requires more "personal training" in distinguishing friend and
>foe). There's is likely no amount of additional(!) wrapping you could add
>with WebSockets+NPN that comes even close to that.

Similar results were reported by the HP folks who implemented outgoing
connection-throttling as a mean of combating malware, they found that web
pages loaded much faster because all the additional crap wasn't being pulled
in alongside the actual content.

Peter.

From marsh@extendedsubset.com  Thu Aug 19 08:01:45 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 5AD2A3A6878 for <tls@core3.amsl.com>; Thu, 19 Aug 2010 08:01:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.761
X-Spam-Level: 
X-Spam-Status: No, score=-1.761 tagged_above=-999 required=5 tests=[AWL=0.238,  BAYES_00=-2.599, J_CHICKENPOX_14=0.6]
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 elkb+aqRV0Lv for <tls@core3.amsl.com>; Thu, 19 Aug 2010 08:01:43 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id 871763A6829 for <tls@ietf.org>; Thu, 19 Aug 2010 08:01:43 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1Om6dG-0007zo-8o; Thu, 19 Aug 2010 15:02:18 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 947236095; Thu, 19 Aug 2010 15:02:15 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX19jMQe2as9H1rIQaZMsBjqIyezUQGEhlB4=
Message-ID: <4C6D4776.1060006@extendedsubset.com>
Date: Thu, 19 Aug 2010 10:02:14 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: Nathaniel W Filardo <nwf@cs.jhu.edu>
References: <4C6AB936.1070801@extendedsubset.com>	<AANLkTimgjqQMdwqL_xZXGSG5hSMLqDtYH62t698e_hx9@mail.gmail.com>	<4C6AD7EA.4040307@extendedsubset.com>	<000401cb3e4f$456f6d60$d04e4820$@briansmith.org>	<4C6B1BAA.5060303@pobox.com>	<AANLkTi=QzEmzuhX=rKkTFjVvWxP5r_0zcVHq00L-4JoS@mail.gmail.com>	<4C6B8189.5080406@extendedsubset.com>	<AANLkTi=9TLG4f5eZ6h6duYKvcVueT53H26WNZpWV6TKS@mail.gmail.com>	<F91CB64B-E0F6-42B7-B91B-F9F7464709E1@iki.fi>	<AANLkTi=TmbOiLCpiOWyxXSDs-z-V5Bw7w=gLtvoerAvy@mail.gmail.com> <20100819073021.GV18003@gradx.cs.jhu.edu>
In-Reply-To: <20100819073021.GV18003@gradx.cs.jhu.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2010 15:01:45 -0000

On 08/19/2010 02:30 AM, Nathaniel W Filardo wrote:
>
> The particular class of attacks you're worried about all involve an agent,
> C, making requests to a server S, on behalf of some untrusted third party,
> M.  Further, S thinks that it is speaking P and C thinks that it is speaking
> Q, with P != Q.  It happens to be that S's interpretation of P is compatible
> with C's production of Q.
>
> For concrete example, in the case of P=SMTP and Q=HTTP,
 > []
> NPN does _nothing_ to help here, since TLS is not involved.  _Every_
> cross-protocol attack I am aware of is of this class; if you can provide
> citations otherwise, I would love to see them.

Lately I've been looking into a long-existing credentials forwarding 
attack on NTLM authentication. It's cross-protocol in the sense that the 
authentication can, in fact, be taken from an SMTP connection and used 
to authenticate an HTTPS session.

http://extendedsubset.com/?p=36

The slides pdf linked from there shows a grid of the explored and open 
attack space.

> Now, we can ignore (P,Q) being (SMTP,HTTPS) or (SMTPS,HTTP) since neither
> off-diagonal form is going to be able to bring up the TLS session to
> everybody's satisfaction.

It seems plausible that the attacker might control enough data in the 
Client Hello, e.g. SNI, that it could be usefully interpreted by the 
server. Or more simply, just sending the random binary data would 
probably crash more than one server out there.

> (P,Q)=(SMTPS,HTTPS) with neither C nor S expecting to see authentication
> essentially behaves as (SMTP,HTTP), I agree; TLS NPN helps here.
>
> (P,Q)=(SMTPS,HTTPS) with S expecting C to authenticate will result in a
> cross-protocol attack iff either of the following conditions are met:
>    1. C has a client certificate which S will accept and S does not expect
>       in-band authentication.

I could imagine this happening, and without user intervention. Consider 
a corporate PKI scenario where every user and every server gets their 
cert from the same cert management system run by the IT dept.

>    2. M has been able to specifically craft a P-message involving suitable
>       credentials for C's use in this transmission.

A forwarding attack such as is possible with NTLM could potentially 
allow this.

> Neither of these are terribly realisitic (in my mostly speculative opinion).
> Note that if S's knobs are set such that P requires a challenge-response
> authentication pass, that M will, whp, be unable to successfully take option
> 2.

Well the idea of WebSockets is to give full-duplex communications to 
attacker supplied Javascript. If he can successfully complete the 
initial handshake, it's better to assume anything is possible after that.

> In all, while I have no intrinsic objection to TLS NPN, it seems to me that
> the solution should be independent of the cryptographic provisioning layer,
> since it demonstrably has nothing to do with said functionality.

The TLS layer would seem to have a some of things going for it:

1. It's designed to authenticate-or-fail connections, i.e., it doesn't 
observe Postel's law.

2. Piggybacking on the TLS handshake could save a round trip.

- Marsh

From mrex@sap.com  Thu Aug 19 08:57:51 2010
Return-Path: <mrex@sap.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 05EAF3A6964 for <tls@core3.amsl.com>; Thu, 19 Aug 2010 08:57:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.83
X-Spam-Level: 
X-Spam-Status: No, score=-9.83 tagged_above=-999 required=5 tests=[AWL=0.419,  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 q7JBE2DDlWvk for <tls@core3.amsl.com>; Thu, 19 Aug 2010 08:57:50 -0700 (PDT)
Received: from smtpde02.sap-ag.de (smtpde02.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id C8C053A6962 for <tls@ietf.org>; Thu, 19 Aug 2010 08:57:49 -0700 (PDT)
Received: from mail.sap.corp by smtpde02.sap-ag.de (26) with ESMTP id o7JFwKCV012449 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 19 Aug 2010 17:58:20 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201008191558.o7JFwJoZ012861@fs4113.wdf.sap.corp>
To: agl@google.com (Adam Langley)
Date: Thu, 19 Aug 2010 17:58:19 +0200 (MEST)
In-Reply-To: <AANLkTimjsbg7EErv-kb46TtYG=HPVP-XE0L3+5sJSYF=@mail.gmail.com> from "Adam Langley" at Aug 18, 10 03:15:29 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal06
X-SAP: out
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2010 15:57:51 -0000

Adam Langley wrote:
> 
> However, as evidence of how important latency is, witness the amount
> of work that we are putting into it. (SPDY, Google DNS, Snap Start,
> False Start, NPN, ...)

On my personal scorecard, management focus doesn't count as evidence
of much besides Hypes and succesful marketing.

TLS False Start has always been an obvious potential for optimization.
I haven't looked at Snap start yet, but I doubt that I would like it
after figuring out how it works.  To me it seemed that some mount of the
"apparent latency" is caused by TCP congestion control (TCP slow start
and delayed TCP ACK) and the original initial TLS roundtrip actually
improves opening of the transmit window.

-Martin

From marsh@extendedsubset.com  Thu Aug 19 10:00:16 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 75E513A6A51 for <tls@core3.amsl.com>; Thu, 19 Aug 2010 10:00:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.066
X-Spam-Level: 
X-Spam-Status: No, score=-2.066 tagged_above=-999 required=5 tests=[AWL=0.533,  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 G8YVeq7qo9Eb for <tls@core3.amsl.com>; Thu, 19 Aug 2010 10:00:15 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id 7B6183A6A38 for <tls@ietf.org>; Thu, 19 Aug 2010 10:00:15 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1Om8Tx-000Gg4-Mv; Thu, 19 Aug 2010 17:00:49 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 1E47E6095; Thu, 19 Aug 2010 17:00:47 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1+YXbfLSLz6PIiQBAz1T0iB2aljyzbopok=
Message-ID: <4C6D633D.8030103@extendedsubset.com>
Date: Thu, 19 Aug 2010 12:00:45 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: mrex@sap.com
References: <201008191558.o7JFwJoZ012861@fs4113.wdf.sap.corp>
In-Reply-To: <201008191558.o7JFwJoZ012861@fs4113.wdf.sap.corp>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2010 17:00:16 -0000

On 08/19/2010 10:58 AM, Martin Rex wrote:
> Adam Langley wrote:
>>
>> However, as evidence of how important latency is, witness the amount
>> of work that we are putting into it. (SPDY, Google DNS, Snap Start,
>> False Start, NPN, ...)
>
> On my personal scorecard, management focus doesn't count as evidence
> of much besides Hypes and succesful marketing.

I would go farther than that. I believe there have been cases of large 
companies adding complexity to interfaces in an attempt to put others at 
a relative disadvantage or even to kill an open standard by making it 
unimplementable.

However, I believe the authors of this proposal are sincere in their 
attempt to reduce overall latency by eliminating round trips.

> TLS False Start has always been an obvious potential for optimization.
> I haven't looked at Snap start yet, but I doubt that I would like it
> after figuring out how it works.

It appears to be quite complex and only usable in very specific 
scenarios, probably with API changes requiring extra logic in the 
application code. However, these narrow scenarios could account for 50% 
of TLS handshakes on the web.

As a developer though, it raises the question of if it's keeping with 
the spirit of a general "secure socket layer" communications primitive 
if it requires significantly more complex semantics than the traditional 
socket. Which implies that small-time apps don't compete on an equal 
footing. Especially if, say, Chrome and Android were the only clients 
that implemented it and Google were to arrange for such traffic to 
receive preferential treatment on certain networks.

> To me it seemed that some mount of the
> "apparent latency" is caused by TCP congestion control (TCP slow start
> and delayed TCP ACK) and the original initial TLS roundtrip actually
> improves opening of the transmit window.

There are other benefits to reducing round trips too.

Consider a network with bad statistical packet loss. The probability of 
failure of an overall transaction can increase exponentially with the 
number of packets required to complete it. Sure, TCP is supposed to 
retransmit, but we've all been on that bad wifi where you have to hit 
the reload button a few times before the web page comes up.

- Marsh


From mike-list@pobox.com  Thu Aug 19 10:12:08 2010
Return-Path: <mike-list@pobox.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 6E2633A697B for <tls@core3.amsl.com>; Thu, 19 Aug 2010 10:12:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 nl3Zt4TEoGLM for <tls@core3.amsl.com>; Thu, 19 Aug 2010 10:12:06 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id A020A3A693D for <tls@ietf.org>; Thu, 19 Aug 2010 10:12:06 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id E410DCE737; Thu, 19 Aug 2010 13:12:40 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=HipfVkbGMOfx mwwhDzd9n9mwskQ=; b=qAcUxpEuZ6nmkD5y2vVfHN9om6XeCvtgTljaE3RV9JY/ NSbFXYQ8IVvGZJqhdE0YT8uZ2PbuGbV3Q+ilHyEd3wEoI19z5FwCzGk1TCj0joy0 sZfBw3t/EZvdz6b918kFcOytnTEQoKeGHD6CC00SW9t+wJRTctCAX60xehRd394=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=MWAl10 ZgV/welKnhWhbS3AvZsbMHlYxfrnB0qM7YHhT52swlpTQWVdF2MmL3sKakZEIA3a l1LiNuMt27F9Weq6lQuPiSB092dkgVb0yZ92mqfqIMf45RxP+ryx6Gz1+o0rA8V3 5FxV/CqcbK6QO7z57pUNIOf7jHd6NomtRG1nE=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id BBB26CE730; Thu, 19 Aug 2010 13:12:38 -0400 (EDT)
Received: from iMac.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 3072DCE72D; Thu, 19 Aug 2010 13:12:36 -0400 (EDT)
Message-ID: <4C6D6603.9040003@pobox.com>
Date: Thu, 19 Aug 2010 10:12:35 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
To: Marsh Ray <marsh@extendedsubset.com>
References: <201008191558.o7JFwJoZ012861@fs4113.wdf.sap.corp> <4C6D633D.8030103@extendedsubset.com>
In-Reply-To: <4C6D633D.8030103@extendedsubset.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: F7FC7A54-ABB4-11DF-83EB-9056EE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Request for review: Next Protocol Negotiation Extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2010 17:12:08 -0000

Marsh Ray wrote:
> 
> I believe there have been cases of large 
> companies adding complexity to interfaces in an attempt to put others at 
> a relative disadvantage or even to kill an open standard by making it 
> unimplementable.

Yes, it is called "Embrace and Extend" and that has popped up on my radar
as well.  Google has stated its policy is "Don't be Evil" so I'm open to
other explanations but will remain skeptical.

Mike

From ietf@adambarth.com  Thu Aug 19 10:16:01 2010
Return-Path: <ietf@adambarth.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 8F5783A67F1 for <tls@core3.amsl.com>; Thu, 19 Aug 2010 10:16:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.803
X-Spam-Level: 
X-Spam-Status: No, score=-1.803 tagged_above=-999 required=5 tests=[AWL=0.174,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
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 jSA0Rfs+edgS for <tls@core3.amsl.com>; Thu, 19 Aug 2010 10:16:00 -0700 (PDT)
Received: from mail-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by core3.amsl.com (Postfix) with ESMTP id 26DCD3A68EA for <tls@ietf.org>; Thu, 19 Aug 2010 10:15:59 -0700 (PDT)
Received: by fxm18 with SMTP id 18so1387464fxm.31 for <tls@ietf.org>; Thu, 19 Aug 2010 10:16:34 -0700 (PDT)
Received: by 10.223.124.205 with SMTP id v13mr63482far.94.1282238194252; Thu, 19 Aug 2010 10:16:34 -0700 (PDT)
Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx.google.com with ESMTPS id a6sm806425faa.20.2010.08.19.10.16.32 (version=SSLv3 cipher=RC4-MD5); Thu, 19 Aug 2010 10:16:33 -0700 (PDT)
Received: by pzk6 with SMTP id 6so972601pzk.31 for <tls@ietf.org>; Thu, 19 Aug 2010 10:16:31 -0700 (PDT)
Received: by 10.142.132.15 with SMTP id f15mr150587wfd.14.1282238191183; Thu, 19 Aug 2010 10:16:31 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.60.18 with HTTP; Thu, 19 Aug 2010 10:16:10 -0700 (PDT)
In-Reply-To: <201008191348.o7JDm2li005391@fs4113.wdf.sap.corp>
References: <AANLkTi=pXFM7HnXJCuJUoKVZKnX1HijQMRr3nHFefHZD@mail.gmail.com> <201008191348.o7JDm2li005391@fs4113.wdf.sap.corp>
From: Adam Barth <ietf@adambarth.com>
Date: Thu, 19 Aug 2010 10:16:10 -0700
Message-ID: <AANLkTi=xuncF8fo3iy56onCWj9Yx1Zg5a+fVN8U=h=Dt@mail.gmail.com>
To: mrex@sap.com
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: tls@ietf.org
Subject: Re: [TLS] Preventing cross-protocol attacks without NPN (was: Request
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2010 17:16:01 -0000

Martin,

I think you're right that we could fix these problems by changing the
browser security model to something more like the Java security model.
 However, the browser security model isn't going anywhere any time
soon.

Kind regards,
Adam


On Thu, Aug 19, 2010 at 6:48 AM, Martin Rex <mrex@sap.com> wrote:
> Nathaniel W Filardo <nwf@cs.jhu.edu> wrote:
>>
>> The particular class of attacks you're worried about all involve an agen=
t,
>> C, making requests to a server S, on behalf of some untrusted third part=
y,
>> M. =A0Further, S thinks that it is speaking P and C thinks that it is sp=
eaking
>> Q, with P !=3D Q. =A0It happens to be that S's interpretation of P is co=
mpatible
>> with C's production of Q. =A0Is that not an accurate understanding?
>
> "involve an agent C". =A0It's about a promiscuous zombie call "web browse=
r"
> (not necessarily Mr. Smith in a black suit). ;-)
>
> The last "cross-protocol attack" I complained about was TLS endpoints
> chasing AIA URLs from untrusted end-entity certs when faced with
> incomplete certificate chains. =A0There the scenario involved a client
> (browser), a server (online bank) who trust each other and a secure
> protocol (TLS), which was susceptible to outside(!) attackers injecting
> a crafted ServerHello+ServerCertificate handshake message into a newly
> established TCP connection.
>
> The "cross-protocol attack" mentioned with WebSocket, on the other hand,
> is about a completely different threat scenario. =A0There, the worry
> is about rightful peers, i.e. Servers attacking clients by serving
> them URLs and active content to coerce them in connecting to services
> that they shouldn't be connecting to.
>
>
> Personally, I don't think NPN is going to improve anything. =A0It is
> just going to make things slightly more obscure, but by misleading
> the consumers of the technology about where there is the flaw in
> their architecure, they're going to significantly increase the
> damage in the long run.
>
> Blacklisting known bad stuff is a race that you can not win.
>
> Probably no one would suggest to "enhance" MUA to roam the internet
> and collect more spam to present to the user. =A0Browsers do just that,
> they will happily download and annoy end users with significantly
> larger amounts of spamvertisement than most users would agree to
> when asked.
>
> For Java applets there was originally a security model that the
> applet could only callback to the site where it came from.
> Security-wise this was a sensible approach. =A0If something similar
> had been done for HTML pages, XSS would be a non-problem and
> neither would there be any cross-protocol issues.
>
> Since the services that are listening for plaintext protocols today
> are not going to go away anytime soon, why do you think the situation
> would improve with NPN? =A0Is there a "once WebSockets -- forever WebSock=
ets"
> requirement, that mixing content from "old" (port 80) and
> "new" Web (=3Dthrough WebSockets) is going to be entirely prohibited?
>
>
> Cross-Protocol attacks are very very old stuff.
> Back in the old days of the IP-Protocols, there were services
> such as "chargen 19/udp" and "echo 7/udp" and IIRC, you only needed
> to send a UDP datagram with a crafted source ip/port to chargen
> to make two machines saturate a network link.
>
>
> The WebSockets + NPN architecture sounds like a inetd with builtin
> TLS and out-of-band protocol signaling instead of relying on the
> implicit assumptions of well known ports.
>
>
> But this approach, especially when _NOT_ sending the next protocol
> in the ClientHello (in clear text), is in direct conflict with the
> idea to perform server endpoint identification for TLS in a fashion
> that clearly distinguishes services by their certificate (attributes),
> like ExtendedKeyUsage (EKUs) and Service SubjectAltNames.
>
> Personally, I really dislike the idea of requiring all application
> services on a Host to be single-admin'ed and all authentication
> and authorization at the TLS layer to be unconditionally host-wide.
> That comes close to killing TLS client certificates as a means to
> authenticate users if you have differing requirements for applications.
>
>
> The protection that you're looking for should be provided by IPsec,
> not a multiplexing TLS+NPN-enriched WebSockets inetd.
>
> Seperating services on a host into individual processes with
> only those privileges and the level of user authentication and
> user authorization that these services actually need is sensible
> risk management. =A0Terminating and dispatching EVERY network
> connection to a machine in a single application puts us back
> into the MS-DOS area (lack of process seperation).
>
>
> And what exactly do you mean by "Next Protocol". =A0A lot of stuff
> uses HTTP these days, and if you really only distinguish the
> next protocol level, then there still is a lot of cross-protocol
> attack surface left. =A0Doesn't SOAP use HTTP as well?
> I know that my DSL-router is VERY open-minded to SOAP-requests
> for administrative purposes (and no, it doesn't require authentication
> for many actions -- different to the administrative WebUI).
>
>
> -Martin
>

From brian@briansmith.org  Thu Aug 19 16:05:38 2010
Return-Path: <brian@briansmith.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id EB5F63A6A00 for <tls@core3.amsl.com>; Thu, 19 Aug 2010 16:05:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.949
X-Spam-Level: 
X-Spam-Status: No, score=-1.949 tagged_above=-999 required=5 tests=[AWL=0.650,  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 tvFFf7wGt+fO for <tls@core3.amsl.com>; Thu, 19 Aug 2010 16:05:37 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id C7C623A69F5 for <tls@ietf.org>; Thu, 19 Aug 2010 16:05:37 -0700 (PDT)
Received: from T60 (unknown [98.200.150.199]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id B6EF0509DD; Thu, 19 Aug 2010 19:06:11 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: <tls@ietf.org>
Date: Thu, 19 Aug 2010 18:06:04 -0500
Message-ID: <002a01cb3ff3$1d0a7ae0$571f70a0$@briansmith.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQH56xbgHwXrPnLQnEvx7FjC4ctAfA==
Content-Language: en-us
x-cr-hashedpuzzle: AO/G CgBa ETUR E9Gz Fj3c HDxF KKK5 OJoQ W167 Xk/s ZymZ Z2/I bD5v dvia gDN2 gFbt; 3; YQBnAGwAQABnAG8AbwBnAGwAZQAuAGMAbwBtADsAYgBtAG8AZQBsAGwAZQByAEAAYQBjAG0ALgBvAHIAZwA7AHQAbABzAEAAaQBlAHQAZgAuAG8AcgBnAA==; Sosha1_v1; 7; {659A485F-6049-46C8-964A-FC1CD12BA3D5}; YgByAGkAYQBuAEAAYgByAGkAYQBuAHMAbQBpAHQAaAAuAG8AcgBnAA==; Thu, 19 Aug 2010 23:05:52 GMT; TABpAG0AaQB0AGUAZAAgAHIAbwBsAGwAYgBhAGMAawAgAGEAdAB0AGEAYwBrAHMAIABpAG4AIABGAGEAbABzAGUAIABTAHQAYQByAHQAIABhAG4AZAAgAFMAbgBhAHAAIABTAHQAYQByAHQA
x-cr-puzzleid: {659A485F-6049-46C8-964A-FC1CD12BA3D5}
Subject: [TLS] Limited rollback attacks in False Start and Snap Start
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2010 23:05:39 -0000

http://tools.ietf.org/html/draft-agl-tls-snapstart-00
https://tools.ietf.org/html/draft-bmoeller-tls-falsestart-00

With current TLS, the client and server securely agree on how *all* the
application data is encrypted. With False Start  the server no longer has
any say in which cipher or which TLS version (in particular, TLS 1.0 vs. TLS
1.1 CBC handling) is used to protect the application data that the client
sends, given an active MitM. Similar considerations apply to Snap Start when
considering a servers' cipher suite preferences changing over time (between
connections) and considering that Snap Start doesn't specify how the client
chooses which algorithms to use. Note also that neither proposal provides a
mechanism for the server to securely indicate to the client that such
extensions should not be used, and a server cannot find out that the
extensions are in use until after the client has already sent application
data encrypted with the MitM-influenced TLS version and cipher.

With the current TLS standards, in the event of a break in any symmetric key
cipher, a TLS server would have been able to prevent all exploits of that
break for new TLS connections simply by disabling the cipher suites on the
server side. This is no longer an effective countermeasure given clients
that implement these proposals; instead, all implementations of these
proposals have to be modified and/or reconfigured.

Currently implementations of False Start (Google Chrome and soon Mozilla
Firefox 4) allow any protocol version 3.0+, and any cipher suite the user
has enabled with key size of at least 80 bits. A quick check indicates that
this includes RC2-128 (only in Firefox, disabled by default), RC4-128,
3DES-EDE, AES-128, AES-256, CAMELLIA (only in Firefox), and SEED (only in
Firefox). Note also that there many servers that already don't want RC2-128
and RC4-128 to be used already due to real and perceived weaknesses in those
algorithms.

Both proposals could be strengthened to be similar to standard TLS by only
allowing the client to use them after the client has received a signed
message from the server that (a) lists allowed cipher suites, (b) indicates
which of these optimizations the server allows, and (c) provides a time
limit on the usage of this information. Such a message would be similar to
the SMIMEEncryptionKeyPreference X.509 attribute, but mandatory instead of
optional, and preferably would exist outside of the certificate so that
standard certificates could be used. Also note that such a mechanism is
needed in order for Snap Start to be extended for key exchange methods other
than RSA key exchange anyway, in order to transmit the reusable (ECDH) keys.

Regards,
Brian


From mrex@sap.com  Thu Aug 19 22:13:01 2010
Return-Path: <mrex@sap.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 023943A684C for <tls@core3.amsl.com>; Thu, 19 Aug 2010 22:13:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.842
X-Spam-Level: 
X-Spam-Status: No, score=-9.842 tagged_above=-999 required=5 tests=[AWL=0.407,  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 PQEvVytY-jKr for <tls@core3.amsl.com>; Thu, 19 Aug 2010 22:12:57 -0700 (PDT)
Received: from smtpde02.sap-ag.de (smtpde02.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id E52E13A6820 for <tls@ietf.org>; Thu, 19 Aug 2010 22:12:56 -0700 (PDT)
Received: from mail.sap.corp by smtpde02.sap-ag.de (26) with ESMTP id o7K5DSZX025088 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 20 Aug 2010 07:13:28 +0200 (MEST)
From: Martin Rex <mrex@sap.com>
Message-Id: <201008200513.o7K5DRbZ027212@fs4113.wdf.sap.corp>
To: brian@briansmith.org (Brian Smith)
Date: Fri, 20 Aug 2010 07:13:27 +0200 (MEST)
In-Reply-To: <002a01cb3ff3$1d0a7ae0$571f70a0$@briansmith.org> from "Brian Smith" at Aug 19, 10 06:06:04 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal08
X-SAP: out
Cc: tls@ietf.org
Subject: Re: [TLS] Limited rollback attacks in False Start and Snap Start
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Aug 2010 05:13:01 -0000

Brian Smith wrote:
> 
> http://tools.ietf.org/html/draft-agl-tls-snapstart-00
> https://tools.ietf.org/html/draft-bmoeller-tls-falsestart-00
> 
> With current TLS, the client and server securely agree on how *all* the
> application data is encrypted. With False Start  the server no longer has
> any say in which cipher or which TLS version (in particular, TLS 1.0 vs. TLS
> 1.1 CBC handling) is used to protect the application data that the client
> sends, given an active MitM.

With False Start, the client is optimistic in checking the Server Cert
and starting to send encrypted Data.  The interesting thing about
False Start is, that the client may can be using this without the
server necessarily being aware of it. (No changes on the server
required, it probably just works if the client puts the app data
into a seperate SSL record as the ClientFinished message.

If the optimistic client is considered a problem, this could be
fixed with a slightly skewed TLS extension or with a new
Server->client Handshake message (enabled by a TLS extension.

Similar to the client signing previous handshake messsages,
when authenticating, the server could sign the client hello and
(most of) the server hello on the first round-trip.

If only a TLS extension is used, then it is a little skewed,
because the Server can only sign the ServerHello part without
the signature value itself, which is a little difficult
given how the hash of the handshake messages is normally created and
incorporated into a digital signature (e.g. CertificateVerify)

And the signature could not be verified while disassembling
ServerHello, the Client would have to read and process the
ServerCertificate handshake message before being able to
verify a digital signature over ClientHello and part of
ServerHello that travels in a TLS extension within ServerHello.

If only signallig (for a new Server-Client CertificateVerify
handshake message following ServerCertificate) would be done
with the TLS extension, then it might be more conventional
in-order processing of handshake messages and the handshake
message hash (and the server signature would then cover
the ServerCertificate handshake message as well).


-Martin

From jsalowey@cisco.com  Mon Aug 23 20:37:22 2010
Return-Path: <jsalowey@cisco.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 354893A6B88 for <tls@core3.amsl.com>; Mon, 23 Aug 2010 20:37:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -110.24
X-Spam-Level: 
X-Spam-Status: No, score=-110.24 tagged_above=-999 required=5 tests=[AWL=0.359, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, 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 I+9ozeUJCh7x for <tls@core3.amsl.com>; Mon, 23 Aug 2010 20:36:47 -0700 (PDT)
Received: from sj-iport-6.cisco.com (sj-iport-6.cisco.com [171.71.176.117]) by core3.amsl.com (Postfix) with ESMTP id 16EC53A6B67 for <tls@ietf.org>; Mon, 23 Aug 2010 20:34:42 -0700 (PDT)
Authentication-Results: sj-iport-6.cisco.com; dkim=neutral (message not signed) header.i=none
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AhoFAEzackyrR7Hu/2dsb2JhbACTKo0TcZ8MnAyFNwSENYgy
X-IronPort-AV: E=Sophos;i="4.56,261,1280707200"; d="scan'208";a="577819658"
Received: from sj-core-5.cisco.com ([171.71.177.238]) by sj-iport-6.cisco.com with ESMTP; 24 Aug 2010 03:34:05 +0000
Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by sj-core-5.cisco.com (8.13.8/8.14.3) with ESMTP id o7O3Y5Vr017700 for <tls@ietf.org>; Tue, 24 Aug 2010 03:34:05 GMT
Received: from xmb-sjc-225.amer.cisco.com ([128.107.191.38]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.4675);  Mon, 23 Aug 2010 20:34:05 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Mon, 23 Aug 2010 20:34:04 -0700
Message-ID: <AC1CFD94F59A264488DC2BEC3E890DE50B4CFD40@xmb-sjc-225.amer.cisco.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: IETF 78 meeting minutes uploaded
Thread-Index: ActDPTNAaqGQXaPJQGOklPFXSwytjA==
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: <tls@ietf.org>
X-OriginalArrivalTime: 24 Aug 2010 03:34:05.0439 (UTC) FILETIME=[33FBB0F0:01CB433D]
Subject: [TLS] IETF 78 meeting minutes uploaded
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Aug 2010 03:37:22 -0000

IETF 78 meeting minutes are available at
http://www.ietf.org/proceedings/78/minutes/tls.txt.=20

Please let me know if you have any corrections.

Thanks,

Joe

From root@core3.amsl.com  Wed Aug 25 15:45:02 2010
Return-Path: <root@core3.amsl.com>
X-Original-To: tls@ietf.org
Delivered-To: tls@core3.amsl.com
Received: by core3.amsl.com (Postfix, from userid 0) id E51E23A69DD; Wed, 25 Aug 2010 15:45:01 -0700 (PDT)
From: Internet-Drafts@ietf.org
To: i-d-announce@ietf.org
Content-Type: Multipart/Mixed; Boundary="NextPart"
Mime-Version: 1.0
Message-Id: <20100825224501.E51E23A69DD@core3.amsl.com>
Date: Wed, 25 Aug 2010 15:45:01 -0700 (PDT)
Cc: tls@ietf.org
Subject: [TLS] I-D ACTION:draft-ietf-tls-ssl2-must-not-00.txt
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 25 Aug 2010 22:45:02 -0000

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts 
directories.
This draft is a work item of the Transport Layer Security Working Group of the IETF.

	Title		: Prohibiting SSL Version 2.0 
	Author(s)	: T. Polk, S. Turner
	Filename	: draft-ietf-tls-ssl2-must-not-00.txt
	Pages		: 4
	Date		: 2010-8-23
	
   This document requires that when TLS clients and servers establish 
   connections that they never negotiate the use of Secure Sockets Layer 
   (SSL) version 2.0.  This document updates the backward compatibility 
   sections found in the Transport Security Layer (TLS) Protocol, RFC 
   5246. 

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-tls-ssl2-must-not-00.txt

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/

Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Message/External-body;
	name="draft-ietf-tls-ssl2-must-not-00.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID: <2010-8-25154412.I-D@ietf.org>


--NextPart--


From brian@briansmith.org  Thu Aug 26 23:32:35 2010
Return-Path: <brian@briansmith.org>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 5B7413A6B61 for <tls@core3.amsl.com>; Thu, 26 Aug 2010 23:32:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.054
X-Spam-Level: 
X-Spam-Status: No, score=-2.054 tagged_above=-999 required=5 tests=[AWL=0.545,  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 2JRMLc4riZm1 for <tls@core3.amsl.com>; Thu, 26 Aug 2010 23:32:34 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id 569D33A6A99 for <tls@ietf.org>; Thu, 26 Aug 2010 23:32:34 -0700 (PDT)
Received: from T60 (unknown [98.200.150.199]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 2F7F5509DD for <tls@ietf.org>; Fri, 27 Aug 2010 02:33:00 -0400 (EDT)
From: "Brian Smith" <brian@briansmith.org>
To: <tls@ietf.org>
Date: Fri, 27 Aug 2010 01:32:59 -0500
Message-ID: <001801cb45b1$b4b6adf0$1e2409d0$@briansmith.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQDNA1iPGB3Stv0tFQJWUDWHVjitGA==
Content-Language: en-us
Subject: [TLS] AEAD cipher suites: why explicit IVs?
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Aug 2010 06:32:35 -0000

RFC5288 says that for AES-GCM cipher suites, "The nonce_explicit MAY be the
64-bit sequence number."  Why isn't the nonce implicitly the sequence
number, so that it wouldn't need to be sent over the wire? In the AES-GCM
for ESP spec, the spec states that the IV is explicit because packets may be
reordered. But, that's not an issue for TLS or even DTLS.

In the case of the proposed AES-CCM cipher suites, the draft says that the
sequence number is the nonce; there is no option to use something else.
Isn't the explicit nonce completely redundant then? Would the
half-length-authentication-tag versions of the AES-CCM cipher suites be
needed if there was a way to use a fully implicit nonce instead?

Thank you,
Brian


From juhovh@iki.fi  Fri Aug 27 00:04:40 2010
Return-Path: <juhovh@iki.fi>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 69F053A684B for <tls@core3.amsl.com>; Fri, 27 Aug 2010 00:04:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.299
X-Spam-Level: 
X-Spam-Status: No, score=-2.299 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, 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 0t4hhN6d2YzF for <tls@core3.amsl.com>; Fri, 27 Aug 2010 00:04:39 -0700 (PDT)
Received: from smtp03.tky.fi (smtp03.tky.fi [82.130.63.73]) by core3.amsl.com (Postfix) with SMTP id 0D3B73A6823 for <tls@ietf.org>; Fri, 27 Aug 2010 00:04:38 -0700 (PDT)
Received: from smtp.vaha-herttua.fi ([82.130.46.36]) by smtp03.tky.fi (SMSSMTP 4.1.9.35) with SMTP id M2010082710050621418 ; Fri, 27 Aug 2010 10:05:06 +0300
Received: from vagabond.lan (qer2.kyla.fi [82.130.46.10]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.vaha-herttua.fi (Postfix) with ESMTPSA id 275F11FD98; Fri, 27 Aug 2010 10:05:07 +0300 (EEST)
Mime-Version: 1.0 (Apple Message framework v1081)
Content-Type: multipart/signed; boundary=Apple-Mail-8--357171240; protocol="application/pkcs7-signature"; micalg=sha1
From: =?iso-8859-1?Q?Juho_V=E4h=E4-Herttua?= <juhovh@iki.fi>
In-Reply-To: <001801cb45b1$b4b6adf0$1e2409d0$@briansmith.org>
Date: Fri, 27 Aug 2010 10:05:06 +0300
Message-Id: <561DEBAD-8371-4A18-A540-47DA1288F828@iki.fi>
References: <001801cb45b1$b4b6adf0$1e2409d0$@briansmith.org>
To: Brian Smith <brian@briansmith.org>
X-Mailer: Apple Mail (2.1081)
Cc: tls@ietf.org
Subject: Re: [TLS] AEAD cipher suites: why explicit IVs?
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Aug 2010 07:04:40 -0000

--Apple-Mail-8--357171240
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii


On 27.8.2010, at 9.32, Brian Smith wrote:
> RFC5288 says that for AES-GCM cipher suites, "The nonce_explicit MAY =
be the
> 64-bit sequence number."  Why isn't the nonce implicitly the sequence
> number, so that it wouldn't need to be sent over the wire? In the =
AES-GCM
> for ESP spec, the spec states that the IV is explicit because packets =
may be
> reordered. But, that's not an issue for TLS or even DTLS.

I guess the answer with GCM is in the section:

6.2.  Recommendations for Multiple Encryption Processors

Here each encryption processor has its own nonce counter, I guess it's a =
tradeoff for easier implementation -- for the encryption processors to =
be able to use implicit nonce counter, TLS is using explicit nonce =
instead.

> In the case of the proposed AES-CCM cipher suites, the draft says that =
the
> sequence number is the nonce; there is no option to use something =
else.
> Isn't the explicit nonce completely redundant then? Would the
> half-length-authentication-tag versions of the AES-CCM cipher suites =
be
> needed if there was a way to use a fully implicit nonce instead?

Reading the current AES-CCM there seems to be no need for an explicit IV =
and the AES-CCM draft can be easily be modified to use implicit nonce by =
defining the SecurityParameters.record_iv_length to be 0 octets. Someone =
could give comments on the validity of implicit nonce though, because =
it's impossible to change later without breaking compatibility.


Juho


--Apple-Mail-8--357171240
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIMyjCCBjQw
ggQcoAMCAQICAR4wDQYJKoZIhvcNAQEFBQAwfTELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0
Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNpZ25pbmcxKTAn
BgNVBAMTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA3MTAyNDIxMDE1NVoX
DTE3MTAyNDIxMDE1NVowgYwxCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1TdGFydENvbSBMdGQuMSsw
KQYDVQQLEyJTZWN1cmUgRGlnaXRhbCBDZXJ0aWZpY2F0ZSB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: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 07F4B3A689C for <tls@core3.amsl.com>; Sat, 28 Aug 2010 13:30:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000,  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 i+2XKCOY-gjk for <tls@core3.amsl.com>; Sat, 28 Aug 2010 13:30:52 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by core3.amsl.com (Postfix) with ESMTP id 2F0CD3A6943 for <tls@ietf.org>; Sat, 28 Aug 2010 13:30:49 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 2F140D1C25; Sat, 28 Aug 2010 16:31:18 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=VD2umDdR+JDX 1glUpSNooQ7CxsA=; b=xxCqADax+hAJuFqfIQQVVgxLivkrD7e2+iyqGPIMVen4 uDLlw4BQpf3Gm9AbKIwyNFLdTNDQSt4NbuZZUeS/EdK8O97DziWL8hk8ftGh/3yr zZBWZUs93WFKmcG46fdMvCXO2mFBy0yVgByQ9h47aUkPgMH/LbeZiIJMvAV4svw=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=MZaYry W+ed6NqpQsKI1KcF7Y3vADcAtiEjwm5qxzKMANdst7uxUNfg44iaDMLoTjV77P3+ Qz5hXBD1La9O9jIRNXPDGsMQOqwnLlHtR02eRPaGo197eE+i0iuNd2BHKnfy/u3J 1o07tbBXV0VUjpExYMF/YEX9QeAYsp7yCbxgE=
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 195C9D1C24; Sat, 28 Aug 2010 16:31:17 -0400 (EDT)
Received: from iMac.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id A5974D1C22; Sat, 28 Aug 2010 16:31:15 -0400 (EDT)
Message-ID: <4C79720A.9010203@pobox.com>
Date: Sat, 28 Aug 2010 13:31:06 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
To: Eric Rescorla <ekr@rtfm.com>
References: <AANLkTimoKppxYa7m5=Vow1njvzu=cmrHqSDX_RgYZ17X@mail.gmail.com>
In-Reply-To: <AANLkTimoKppxYa7m5=Vow1njvzu=cmrHqSDX_RgYZ17X@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 35961BBA-B2E3-11DF-AC85-030CEE7EF46B-38729857!a-pb-sasl-quonix.pobox.com
Cc: tls@ietf.org
Subject: Re: [TLS] Accept draft-turner-ssl-must-not-02 as WG item
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 28 Aug 2010 20:30:59 -0000

Eric Rescorla wrote:
> In Maastricht, we saw a presentation on draft-turner-ssl-must-not:
> 
> http://tools.ietf.org/html/draft-turner-ssl-must-not-02
> 
> The consensus in Maastricht was to adopt this as a WG item. 
> If anyone objects please speak up now.

No objection to taking it on as a WG item, but I do have a concern
with section 3:

    3. Changes to TLS
       [...]
        o TLS servers MUST NOT accept SSL 2.0 ClientHello messages.

I still see many SSLv2 ClientHellos, and none of them are SSLv2-only
clients.  So at this point in time I think MUST NOT is too strong on
the server side.  I don't think using an SSLv2 hello is a security
problem since it supports the TLS_EMPTY_RENEGOTIATION_INFO_SCSV
cipher suite value.

Mike

From stpeter@stpeter.im  Mon Aug 30 15:43:51 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B8E913A689E; Mon, 30 Aug 2010 15:43:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.539
X-Spam-Level: 
X-Spam-Status: No, score=-102.539 tagged_above=-999 required=5 tests=[AWL=0.060, BAYES_00=-2.599, 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 VnDMfBZgatOl; Mon, 30 Aug 2010 15:43:50 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 376C93A68AD; Mon, 30 Aug 2010 15:43:50 -0700 (PDT)
Received: from dhcp-64-101-72-245.cisco.com (dhcp-64-101-72-245.cisco.com [64.101.72.245]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 3FBE2400EE; Mon, 30 Aug 2010 16:47:10 -0600 (MDT)
Message-ID: <4C7C3442.9020403@stpeter.im>
Date: Mon, 30 Aug 2010 16:44:18 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: Bernard Aboba <bernard_aboba@hotmail.com>
References: <BLU137-W32189ED2D1B0FDFCBF639F93840@phx.gbl>
In-Reply-To: <BLU137-W32189ED2D1B0FDFCBF639F93840@phx.gbl>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: ietf@ietf.org, Cyrus Daboo <cyrus@daboo.name>, tls@ietf.org, =JeffH <Jeff.Hodges@kingsmountain.com>, pkix@ietf.org
Subject: Re: [TLS] Review of draft-saintandre-tls-server-id-check
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Aug 2010 22:43:51 -0000

On 8/24/10 6:38 PM, Bernard Aboba wrote:
> I reviewed draft-saintandre-tls-server-id-check.

Thanks. To ensure appropriate review, I've copied the discussion lists
of the working groups that were asked to look at this I-D (PKIX and
TLS), as well as the author of draft-daboo-srv-email (which normatively
references this I-D).

> In a number of instances, this document is vague on the verification of
> an SRV-ID, and in one instance, it appears to contradict RFC 4985, even
> though it does not update that document.
> 
> Section 2.1 states:
> 
>    o  An SRV-ID can be either direct (provided by a user) or more
>       typically indirect (resolved by a client) and is restricted (can
>       be used for only a single application).
> 
> 
> This is consistent with RFC 4985 Section 2.1 which states:
> 
>    The SRVName, if present, MUST contain a service name and a domain
>    name in the following form:
> 
>       _Service.Name
> 
> 
> Yet, Section 5.1 states:
> 
> When the connecting application is an interactive client, the source
> domain name and service type MUST be provided by a human user (e.g.
> when specifying the server portion of the user's account name on the
> server or when explicitly configuring the client to connect to a
> particular host or URI as in [SIP-LOC])
> and MUST NOT be derived from
> the user inputs in an automated fashion (e.g., a host name or domain
> name discovered through DNS resolution of the source domain). This
> rule is important because only a match between the user inputs (in
> the form of a reference identifier) and a presented identifier
> enables the client to be sure that the certificate can legitimately
> be used to secure the connection.
> 
> However, an interactive client MAY provide a configuration setting
> that enables a human user to explicitly specify a particular host
> name or domain name (called a "target domain") to be checked for
> connection purposes.
> 
> [BA]  As I understand RFC 4985, the SRV-ID provided in the target
> certificate is to be
> matched against components (service name and domain name) of the SRV RR
> obtained
> via lookup within the source domain. As a result, I don't believe that
> RFC 4985 is
> consistent with this advice (e.g. the reference identifier is not
> matched against the
> SRV-ID).

I think the issue here is an ambivalence in the assumptions underlying
RFC 4985, because an SRV record can be used for two quite different
purposes:

1. To point from an application service name to a particular host/domain
name in the same administrative domain (e.g., _imap._example.com points
to mailhost.example.com for its IMAP service).

2. To delegate an application service name to a hosting provider outside
in the administrative domain of the application service (e.g.,
example.com delegates its IMAP service to apps.example.net).

(I freely grant that it's not always easy to tell up front which of
these is happening, and that the concept of "administrative domain" is
itself a bit vague -- e.g., what if the same provider runs both
example.com and apps.example.net?)

As I see it, RFC 4985 glosses over the foregoing distinction.

Some folks seem to like the SRV-ID construct because it enables them to
more tightly scope the certificates issued to an administrative domain,
so that they can limit a cert to usage within the context of their email
service or IM service or HTTP service or whatever (the IM cert can't be
used for the email service, etc.). That's the usage Jeff Hodges and I
had in mind for this I-D.

However, the question arises: what is the client supposed to check if an
SRV lookup for _imap._example.com yields apps.example.net? My reading of
RFC 4985 leads me to think that the certificate presented by
apps.example.net is supposed to contain an SRV-ID of _imap.example.com,
which means roughly "this certificate indicates that this provider is
authorized to provide IMAP service for the example.com domain". (How the
certification authority determines that the delegation is indeed
authorized is outside the scope of this I-D.)

That is my reading of RFC 4985 because:

1. RFC 4985 defines "Name" as "The DNS domain name of the domain where
the specified service is located." (In RFC 2782, "Name" is defined as
"The domain this RR refers to.")

2. RFC 4985 states of the name form "_Service.Name" that "The content of
the components of this name form MUST be consistent with the
corresponding definition of these components in an SRV RR according to
RFC 2782."

3. RFC 2782 defines the format of the SRV RR as follows:

   _Service._Proto.Name TTL Class SRV Priority Weight Port Target

Note well that the name form in RFC 4985 is *not* "_Service.Target", it
is "_Service.Name". Using the terminology that Jeff and I defined in
draft-saintandre-tls-server-id-check, this means that the name component
of the SRV-ID is the "source domain", not the "target domain".

Now, perhaps I am horribly mistaken about RFC 4985 and the intent is to
present an SRV-ID of the form "_Service.Target", but if so then I think
that RFC 4985 needs to be revved through a bis draft, because a plain
reading of RFC 4985 would indicate otherwise. Yes, the description of
"Name" in RFC 4985 as "the DNS domain name of the domain where the
specified service is located" might be construed as referring to the
target domain instead of the source domain (although that interpretation
hinges on the meaning of the vague word "located"), but if so then RFC
4985 is changing the definition of "Name" provided in RFC 2782. Given
that (i) RFC 4985 explicitly states that the components of the name form
"_Service.Name" MUST be consistent with the definitions in RFC 2782 and
(ii) RFC 4985 does not update RFC 2782, I think we need to assume that
"Name" in RFC 4985 does not mean "Target" from RFC 2782.

> Section 4.1 is not as clear as it could be on this point, given that it
> talks about both
> matching of the source domain and the target domain:
> 
>    4.  When checking a reference identifier against a presented
>        identifier, the client (a) MUST match the source domain (or, in
>        some cases, target domain) of the identifiers and (b) MAY also
>        match the service type of the identifiers.
> 
>       Implementation Note: Naturally, in addition to checking
>       identifiers, a client might complete further checks to ensure that
>       the server is authorized to provide the requested service.
>       However, such checking is not a matter of verifying the
>       application service identity presented in a certificate, and
>       therefore methods for doing so (e.g., consulting local policy
>       information) are out of scope for this document.

I agree that the text "or, in some cases, target domain" does not
provide enough detail. The concept here is that a user might have
explicitly "authorized" the target domain to provide application
services for the source domain, either through client configuration
(e.g., account setup that specifies an IMAP server of apps.example.net
despite the fact that the DNS domain name portion of the full username
is example.com) or user interaction (overriding an identity mismatch for
the life of the application session or permanently, which is described
as "pinning" in <http://www.w3.org/TR/2010/WD-wsc-ui-20100309>). These
matters are explained in Sections 4.6.3.1 and 5.1 of the I-D, so at the
least I think that the text in Section 4.1 needs to reference those
sections.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From bernard_aboba@hotmail.com  Mon Aug 30 16:09:49 2010
Return-Path: <bernard_aboba@hotmail.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 20D053A6890; Mon, 30 Aug 2010 16:09:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.659
X-Spam-Level: 
X-Spam-Status: No, score=-101.659 tagged_above=-999 required=5 tests=[AWL=0.940, BAYES_00=-2.599, 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 PUhjxPL29QRi; Mon, 30 Aug 2010 16:09:41 -0700 (PDT)
Received: from blu0-omc2-s30.blu0.hotmail.com (blu0-omc2-s30.blu0.hotmail.com [65.55.111.105]) by core3.amsl.com (Postfix) with ESMTP id EF5903A6891; Mon, 30 Aug 2010 16:09:36 -0700 (PDT)
Received: from BLU137-DS3 ([65.55.111.73]) by blu0-omc2-s30.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675);  Mon, 30 Aug 2010 16:10:08 -0700
X-Originating-IP: [131.107.0.102]
X-Originating-Email: [bernard_aboba@hotmail.com]
Message-ID: <BLU137-DS3BE7BD3D47980030F667A93890@phx.gbl>
From: "Bernard Aboba" <bernard_aboba@hotmail.com>
To: "'Peter Saint-Andre'" <stpeter@stpeter.im>
References: <BLU137-W32189ED2D1B0FDFCBF639F93840@phx.gbl> <4C7C3442.9020403@stpeter.im>
In-Reply-To: <4C7C3442.9020403@stpeter.im>
Date: Mon, 30 Aug 2010 16:10:06 -0700
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: ActIlOLxau7nFgFzSW2MVXd+xDFBcQAAOkVA
Content-Language: en-us
X-OriginalArrivalTime: 30 Aug 2010 23:10:08.0401 (UTC) FILETIME=[7D43B810:01CB4898]
X-Mailman-Approved-At: Mon, 30 Aug 2010 16:11:18 -0700
Cc: ietf@ietf.org, 'Cyrus Daboo' <cyrus@daboo.name>, tls@ietf.org, '=JeffH' <Jeff.Hodges@kingsmountain.com>, rbarnes@bbn.com, pkix@ietf.org
Subject: Re: [TLS] Review of draft-saintandre-tls-server-id-check
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Aug 2010 23:09:49 -0000

Peter St. Andre said:

"an SRV record can be used for two quite different purposes:

1. To point from an application service name to a particular host/domain =
name in the same administrative domain (e.g., _imap._example.com points =
to mailhost.example.com for its IMAP service).

2. To delegate an application service name to a hosting provider outside =
in the administrative domain of the application service (e.g., =
example.com delegates its IMAP service to apps.example.net).....

As I see it, RFC 4985 glosses over the foregoing distinction."

[BA] It took some adjustment for me, but as I understand it, the =
underlying assumption of RFC 4985 is that if the certificate is =
considered valid by RFC 5280 path validation (e.g. chains to a valid =
trust anchor, etc.) then delegations both within and outside the source =
administrative domain can be validated. This logic, if pursued, could =
apply beyond SRV RR validation, to things like NAPTR validation via a =
URI/IRI in the certificate.

Scoping (EKUs, name constraints, etc.) is a different question.

Peter also said:

"However, the question arises: what is the client supposed to check if =
an
SRV lookup for _imap._example.com yields apps.example.net? My reading of
RFC 4985 leads me to think that the certificate presented by
apps.example.net is supposed to contain an SRV-ID of _imap.example.com,
which means roughly "this certificate indicates that this provider is
authorized to provide IMAP service for the example.com domain". (How the
certification authority determines that the delegation is indeed
authorized is outside the scope of this I-D.)

[BA] That's also my reading of RFC 4985, but I'll let others more =
knowledgeable (like the author) weigh in.


From jsalowey@cisco.com  Mon Aug 30 16:19:30 2010
Return-Path: <jsalowey@cisco.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 2428E3A6891 for <tls@core3.amsl.com>; Mon, 30 Aug 2010 16:19:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -110.261
X-Spam-Level: 
X-Spam-Status: No, score=-110.261 tagged_above=-999 required=5 tests=[AWL=0.338, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, 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 4iutSNz8YBdX for <tls@core3.amsl.com>; Mon, 30 Aug 2010 16:19:29 -0700 (PDT)
Received: from sj-iport-6.cisco.com (sj-iport-6.cisco.com [171.71.176.117]) by core3.amsl.com (Postfix) with ESMTP id DC5253A67EF for <tls@ietf.org>; Mon, 30 Aug 2010 16:19:28 -0700 (PDT)
Authentication-Results: sj-iport-6.cisco.com; dkim=neutral (message not signed) header.i=none
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvsEAEPZe0yrR7Ht/2dsb2JhbACganGjT5twhTcEhDuFToJ0
X-IronPort-AV: E=Sophos;i="4.56,295,1280707200"; d="scan'208";a="580898317"
Received: from sj-core-1.cisco.com ([171.71.177.237]) by sj-iport-6.cisco.com with ESMTP; 30 Aug 2010 23:20:00 +0000
Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by sj-core-1.cisco.com (8.13.8/8.14.3) with ESMTP id o7UNJxQa011660 for <tls@ietf.org>; Mon, 30 Aug 2010 23:20:00 GMT
Received: from xmb-sjc-225.amer.cisco.com ([128.107.191.38]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.4675);  Mon, 30 Aug 2010 16:20:00 -0700
Received: from 10.33.117.78 ([10.33.117.78]) by xmb-sjc-225.amer.cisco.com ([128.107.191.38]) via Exchange Front-End Server email.cisco.com ([128.107.191.32]) with Microsoft Exchange Server HTTP-DAV ; Mon, 30 Aug 2010 23:19:59 +0000
User-Agent: Microsoft-Entourage/12.26.0.100708
Date: Mon, 30 Aug 2010 16:20:04 -0700
From: Joe Salowey <jsalowey@cisco.com>
To: <tls@ietf.org>
Message-ID: <C8A18AB4.D028%jsalowey@cisco.com>
Thread-Topic: [TLS] DISCUSS on Client Certificate URLs Section of 4366-bis
Thread-Index: Acs+M2fPgHxKiw1UQuqKhSewmPf0lAKZnh29
In-Reply-To: <AC1CFD94F59A264488DC2BEC3E890DE50B3B5F88@xmb-sjc-225.amer.cisco.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
X-OriginalArrivalTime: 30 Aug 2010 23:20:00.0060 (UTC) FILETIME=[DDEBB7C0:01CB4899]
Subject: Re: [TLS] DISCUSS on Client Certificate URLs Section of 4366-bis
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Aug 2010 23:19:30 -0000

Any other feedback on the recommendations (especially comment 1)?

Thanks, 
Joe


On 8/17/10 10:41 AM, "Joseph Salowey   (jsalowey)" <jsalowey@cisco.com>
wrote:

> Alexey logged some DISCUSS comments on section 5 of
> draft-ietf-tls-rfc4366-bis-10 during IESG review.  Below are the
> comments and the proposed resolutions.  Please review and send comments
> to the list. 
> 
> Thanks,
> 
> Joe 
> 
> 1) Comment 1
> 
> "  The TLS server is not required to follow HTTP redirects when
>    retrieving the certificates or certificate chain.
> 
> This is not strong enough for interoperability. Either redirects MUST be
> followed, or they MUST NOT be followed. Alternatively there need to be
> some
> explanation of why SHOULD (or even MAY) is appropriate here.
> 
>    The URLs used in
>    this extension SHOULD therefore be chosen not to depend on such
>    redirects."
> 
> It seems that since we recommend not depending upon redirects so I
> propose:
> 
> "The TLS server MUST NOT follow HTTP redirects when retrieving the
> certificates or certificate chain. The URLs used in this extension MUST
> NOT be chosen to depend on such redirects."
> 
> If we want to leave the possibility for redirects then we need to text
> to describe when redirects are allowed.
> 
> 2) "If a server encounters an unreasonable delay in obtaining
> 
> This is not very specific. Can a minimal value be recommended here?
> 
>    certificates in a given CertificateURL, it SHOULD time out and signal
>    a certificate_unobtainable(111) error alert.
> 
> What are possible alternatives to the SHOULD?
> 
>    This alert MAY be fatal;
>    for example, if client authentication is required by the server for
>    the handshake to continue. "
> 
> I propose the following text to resolve this:
> 
> "If a server is unable to obtain certificates in a given CertificateURL,
> it MUST send a fatal unrecognized_name(112) alert if it requires the
> certificates to complete the handshake.  If the server does not require
> the certificates then the server continues the handshake.  The server
> MAY send a warning level alert in this case.  Clients receiving such an
> alert SHOULD log the alert and continue with the handshake if possible."
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
> 
> 


From stpeter@stpeter.im  Tue Aug 31 11:21:44 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 732503A6A6D; Tue, 31 Aug 2010 11:21:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.556
X-Spam-Level: 
X-Spam-Status: No, score=-102.556 tagged_above=-999 required=5 tests=[AWL=0.043, BAYES_00=-2.599, 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 fjzot4M1XG85; Tue, 31 Aug 2010 11:21:42 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 6B34F3A69E9; Tue, 31 Aug 2010 11:21:42 -0700 (PDT)
Received: from dhcp-64-101-72-245.cisco.com (dhcp-64-101-72-245.cisco.com [64.101.72.245]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 7053F400EE; Tue, 31 Aug 2010 12:25:07 -0600 (MDT)
Message-ID: <4C7D4853.8020507@stpeter.im>
Date: Tue, 31 Aug 2010 12:22:11 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: Bernard Aboba <bernard_aboba@hotmail.com>
References: <BLU137-W32189ED2D1B0FDFCBF639F93840@phx.gbl> <4C7C3442.9020403@stpeter.im> <BLU137-DS3BE7BD3D47980030F667A93890@phx.gbl>
In-Reply-To: <BLU137-DS3BE7BD3D47980030F667A93890@phx.gbl>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: ietf@ietf.org, XMPP <xmpp@ietf.org>, 'Cyrus Daboo' <cyrus@daboo.name>, tls@ietf.org, '=JeffH' <Jeff.Hodges@kingsmountain.com>, rbarnes@bbn.com, pkix@ietf.org
Subject: Re: [TLS] Review of draft-saintandre-tls-server-id-check
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 31 Aug 2010 18:21:44 -0000

On 8/30/10 5:10 PM, Bernard Aboba wrote:
> Peter St. Andre said:
> 
> "an SRV record can be used for two quite different purposes:
> 
> 1. To point from an application service name to a particular
> host/domain name in the same administrative domain (e.g.,
> _imap._example.com points to mailhost.example.com for its IMAP
> service).
> 
> 2. To delegate an application service name to a hosting provider
> outside in the administrative domain of the application service
> (e.g., example.com delegates its IMAP service to
> apps.example.net).....
> 
> As I see it, RFC 4985 glosses over the foregoing distinction."
> 
> [BA] It took some adjustment for me, but as I understand it, the
> underlying assumption of RFC 4985 is that if the certificate is
> considered valid by RFC 5280 path validation (e.g. chains to a valid
> trust anchor, etc.) then delegations both within and outside the
> source administrative domain can be validated. This logic, if
> pursued, could apply beyond SRV RR validation, to things like NAPTR
> validation via a URI/IRI in the certificate.

If that's the logic, I'd at the least like to see a "4985bis" spec make
that clear, because IMHO it's not spelled out now.

> Scoping (EKUs, name constraints, etc.) is a different question.

Agreed.

> Peter also said:
> 
> "However, the question arises: what is the client supposed to check
> if an SRV lookup for _imap._example.com yields apps.example.net? My
> reading of RFC 4985 leads me to think that the certificate presented
> by apps.example.net is supposed to contain an SRV-ID of
> _imap.example.com, which means roughly "this certificate indicates
> that this provider is authorized to provide IMAP service for the
> example.com domain". (How the certification authority determines that
> the delegation is indeed authorized is outside the scope of this
> I-D.)
> 
> [BA] That's also my reading of RFC 4985, but I'll let others more
> knowledgeable (like the author) weigh in.

That would indeed be helpful.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From 1.41421@gmail.com  Tue Aug 31 15:30:30 2010
Return-Path: <1.41421@gmail.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 8C7AF3A6876 for <tls@core3.amsl.com>; Tue, 31 Aug 2010 15:30:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.298
X-Spam-Level: 
X-Spam-Status: No, score=-1.298 tagged_above=-999 required=5 tests=[AWL=-1.300, BAYES_50=0.001, HTML_MESSAGE=0.001]
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 DiD-lqSdZWhW for <tls@core3.amsl.com>; Tue, 31 Aug 2010 15:30:24 -0700 (PDT)
Received: from mail-iw0-f198.google.com (mail-iw0-f198.google.com [209.85.214.198]) by core3.amsl.com (Postfix) with ESMTP id 483853A686E for <tls@ietf.org>; Tue, 31 Aug 2010 15:30:24 -0700 (PDT)
Received: by iwn42 with SMTP id 42so1715247iwn.1 for <tls@ietf.org>; Tue, 31 Aug 2010 15:30:54 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.42.1.73 with SMTP id 9mr272778icf.24.1283293854756; Tue, 31 Aug 2010 15:30:54 -0700 (PDT)
Message-ID: <90e6ba1818805af088048f262265@google.com>
Date: Tue, 31 Aug 2010 22:30:54 +0000
From: 1.41421@gmail.com
To: tls@ietf.org
Content-Type: multipart/alternative; boundary=90e6ba1818805af071048f262262
Subject: [TLS] Root certificates in server certificate chains
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 31 Aug 2010 22:30:31 -0000

--90e6ba1818805af071048f262262
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes

The standard (RFC 5246, sec. 7.4.2) says that a server certificate chain  
may include, as the last entry in this chain, the root certificate that is  
to be considered the ultimate trust anchor as far the server certificate is  
concerned. What would prevent an attacker from inserting a Certificate  
message of its own during the handshake, containing a totally bogus root  
certificate? Actually, doesn't this render the whole idea of authentication  
of the remote useless? How can one make sure that a root certificate  
received in a certificate chain is genuine? The only thing I can think of  
would consist of comparing it against its matching, locally-stored root  
certificate (which is assumed to have been copied by secure means, whatever  
those may be.) But, in this case, why allow the server to include a root  
certificate in the certificate chain in the first place? In this light, is  
it correct to assume that if a root certificate is present in the server  
certificate chain and also in local, permanent storage, the latter must be  
used, rather than the former?

--90e6ba1818805af071048f262262
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

The standard (RFC 5246, sec. 7.4.2) says that a server certificate chain ma=
y include, as the last entry in this chain, the root certificate that is to=
 be considered the ultimate trust anchor as far the server certificate is c=
oncerned. What would prevent an attacker from inserting a Certificate messa=
ge of its own during the handshake, containing a totally bogus root certifi=
cate? Actually, doesn&#39;t this render the whole idea of authentication of=
 the remote useless? How can one make sure that a root certificate received=
 in a certificate chain is genuine? The only thing I can think of would con=
sist of comparing it against its matching, locally-stored root certificate =
(which is assumed to have been copied by secure means, whatever those may b=
e.) But, in this case, why allow the server to include a root certificate i=
n the certificate chain in the first place? In this light, is it correct to=
 assume that if a root certificate is present in the server certificate cha=
in and also in local, permanent storage, the latter must be used, rather th=
an the former?
--90e6ba1818805af071048f262262--

From peter.sylvester@edelweb.fr  Tue Aug 31 17:02:38 2010
Return-Path: <peter.sylvester@edelweb.fr>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C9D143A68D2 for <tls@core3.amsl.com>; Tue, 31 Aug 2010 17:02:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.992
X-Spam-Level: 
X-Spam-Status: No, score=-1.992 tagged_above=-999 required=5 tests=[AWL=0.607,  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 pAmZ2W1rtv1Z for <tls@core3.amsl.com>; Tue, 31 Aug 2010 17:02:38 -0700 (PDT)
Received: from ganymede.on-x.com (ganymede.on-x.com [92.103.215.11]) by core3.amsl.com (Postfix) with ESMTP id E74D23A6887 for <tls@ietf.org>; Tue, 31 Aug 2010 17:02:37 -0700 (PDT)
Received: from varuna.puteaux.on-x (varuna.puteaux.on-x [192.168.10.6]) by ganymede.on-x.com (Postfix) with ESMTP id A91B6A5 for <tls@ietf.org>; Wed,  1 Sep 2010 02:03:07 +0200 (CEST)
Received: from smtps.on-x.com (mintaka.puteaux.on-x [192.168.14.11]) by varuna.puteaux.on-x (Postfix) with ESMTP id 7DD5017094 for <tls@ietf.org>; Wed,  1 Sep 2010 02:03:07 +0200 (CEST)
Received: from [192.168.0.15] (gut75-3-82-227-163-182.fbx.proxad.net [82.227.163.182]) by smtps.on-x.com (Postfix) with ESMTP id 8C49A782B for <tls@ietf.org>; Wed,  1 Sep 2010 02:03:07 +0200 (CEST)
Message-ID: <4C7D9839.2060008@edelweb.fr>
Date: Wed, 01 Sep 2010 02:03:05 +0200
From: Peter Sylvester <peter.sylvester@edelweb.fr>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: tls@ietf.org
References: <90e6ba1818805af088048f262265@google.com>
In-Reply-To: <90e6ba1818805af088048f262265@google.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [TLS] Root certificates in server certificate chains
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 00:02:38 -0000

On 09/01/2010 12:30 AM, 1.41421@gmail.com wrote:

Dear truncated squareroot:
> The standard (RFC 5246, sec. 7.4.2) says that a server certificate 
> chain may include, as the last entry in this chain, the root 
> certificate that is to be considered the ultimate trust anchor as far 
> the server certificate is concerned.
It doesn't say that.

       This is a sequence (chain) of certificates.  The sender's
       certificate MUST come first in the list.  Each following
       certificate MUST directly certify the one preceding it.  Because
       certificate validation requires that root keys be distributed
       independently, the self-signed certificate that specifies the root
       certificate authority MAY be omitted from the chain, under the
       assumption that the remote end must already possess it in order to
       validate it in any case.

IMO it says that one may send what it
believes to be a useful chain including a potential trust anchor
represented by a self signed (root) cert. Not more.



From Jeff.Hodges@KingsMountain.com  Tue Aug 31 17:06:52 2010
Return-Path: <Jeff.Hodges@KingsMountain.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id BB5443A6887 for <tls@core3.amsl.com>; Tue, 31 Aug 2010 17:06:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.015
X-Spam-Level: 
X-Spam-Status: No, score=-102.015 tagged_above=-999 required=5 tests=[AWL=0.250, BAYES_00=-2.599, IP_NOT_FRIENDLY=0.334, 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 wk37euNl0v6k for <tls@core3.amsl.com>; Tue, 31 Aug 2010 17:06:51 -0700 (PDT)
Received: from cpoproxy2-pub.bluehost.com (cpoproxy2-pub.bluehost.com [67.222.39.38]) by core3.amsl.com (Postfix) with SMTP id 39ACF3A6870 for <tls@ietf.org>; Tue, 31 Aug 2010 17:06:51 -0700 (PDT)
Received: (qmail 6498 invoked by uid 0); 1 Sep 2010 00:00:42 -0000
Received: from unknown (HELO box514.bluehost.com) (74.220.219.114) by cpoproxy2.bluehost.com with SMTP; 1 Sep 2010 00:00:42 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=kingsmountain.com; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=ikK4i5aYcYp6GlfP/M+CMWSusPddQ+8pgiyiHmC77ZGvhGLzbU00DNW741pvMZgtupHj4ZuRJV+nlsYJqSpyd/Lh3cBqO4KtsZGnCCCbUDMdgDMx5SGoSufzEI8C87nd;
Received: from outbound4.ebay.com ([216.113.168.128] helo=[10.244.48.205]) by box514.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <Jeff.Hodges@KingsMountain.com>) id 1Oqako-00075y-CL; Tue, 31 Aug 2010 18:00:38 -0600
Message-ID: <4C7D97A4.9080404@KingsMountain.com>
Date: Tue, 31 Aug 2010 17:00:36 -0700
From: =JeffH <Jeff.Hodges@KingsMountain.com>
User-Agent: Thunderbird 2.0.0.24 (X11/20100411)
MIME-Version: 1.0
To: ietf@ietf.org, stefan@aaa-sec.com, pkix@ietf.org, tls@ietf.org,  'Cyrus Daboo' <cyrus@daboo.name>, rbarnes@bbn.com, XMPP <xmpp@ietf.org>,  Bernard Aboba <bernard_aboba@hotmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Identified-User: {11025:box514.bluehost.com:kingsmou:kingsmountain.com} {sentby:smtp auth 216.113.168.128 authed with jeff.hodges+kingsmountain.com}
Cc: '=JeffH' <Jeff.Hodges@kingsmountain.com>
Subject: Re: [TLS] Review of draft-saintandre-tls-server-id-check
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 00:06:52 -0000

fwiw, I concur with Peter's analysis and conclusions.

=JeffH

From matt@mattmccutchen.net  Tue Aug 31 17:09:17 2010
Return-Path: <matt@mattmccutchen.net>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 48EC03A6866 for <tls@core3.amsl.com>; Tue, 31 Aug 2010 17:09:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 iWov5UoFgiZE for <tls@core3.amsl.com>; Tue, 31 Aug 2010 17:09:16 -0700 (PDT)
Received: from homiemail-a38.g.dreamhost.com (caiajhbdcbbj.dreamhost.com [208.97.132.119]) by core3.amsl.com (Postfix) with ESMTP id 241903A684D for <tls@ietf.org>; Tue, 31 Aug 2010 17:09:16 -0700 (PDT)
Received: from homiemail-a38.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTP id BDF7D10AFAA; Tue, 31 Aug 2010 17:09:46 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=mattmccutchen.net; h=subject:from :to:cc:in-reply-to:references:content-type:date:message-id :mime-version:content-transfer-encoding; q=dns; s= mattmccutchen.net; b=h8SwMAgU6mpnP3+Y7W/pUWvqOjWjbdFtnE9f5ZNG2pW DJdMDCDwT5fgug3etcyAzuROlNz7I/nsmEIgNaW0uK7hGNRJgmmoNDt/XVuHDKjR vmcxxbp2ggSkcpzrGA+5Yaj3wFmwQJfyyLae5DOURBMc278Fmbu+7bInbeHS5c2Q =
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=mattmccutchen.net; h= subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:content-transfer-encoding; s= mattmccutchen.net; bh=13eWaqQzz/0xWGJhAkfBDrrQVIQ=; b=GmAWgBNRvL gS9V4v3cj7FOry6q5T2LrWACvcsmncG4c84En4aOCZuWe/3+a9HwQDm0tETDhmy4 568AlthCwpZNqyYadDitPj+YPMN4Ccv5HR9aMQpLz3fmImdBgIpbS7tpzWFNGEOV 7VOWDBmO+ylqYiHYkbIPOrZmaqexlhGGw=
Received: from [129.2.249.209] (ml2.student.umd.edu [129.2.249.209]) (Authenticated sender: matt@mattmccutchen.net) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTPA id 6D7CD10AFA5;  Tue, 31 Aug 2010 17:09:46 -0700 (PDT)
From: Matt McCutchen <matt@mattmccutchen.net>
To: 1.41421@gmail.com
In-Reply-To: <90e6ba1818805af088048f262265@google.com>
References: <90e6ba1818805af088048f262265@google.com>
Content-Type: text/plain; charset="UTF-8"
Date: Tue, 31 Aug 2010 20:09:44 -0400
Message-ID: <1283299784.1923.145.camel@mattlaptop2.local>
Mime-Version: 1.0
X-Mailer: Evolution 2.30.2 
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Root certificates in server certificate chains
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 00:09:17 -0000

The following is my understanding.  Others should feel free to disagree
or correct me.

On Tue, 2010-08-31 at 22:30 +0000, 1.41421@gmail.com wrote:
> The standard (RFC 5246, sec. 7.4.2) says that a server certificate
> chain may include, as the last entry in this chain, the root
> certificate that is to be considered the ultimate trust anchor as far
> the server certificate is concerned. What would prevent an attacker
> from inserting a Certificate message of its own during the handshake,
> containing a totally bogus root certificate?

Like any other tampering with the handshake, this would cause the
Finished check to fail.

> Actually, doesn't this render the whole idea of authentication of the
> remote useless? How can one make sure that a root certificate received
> in a certificate chain is genuine? The only thing I can think of would
> consist of comparing it against its matching, locally-stored root
> certificate (which is assumed to have been copied by secure means,
> whatever those may be.)  In this light, is it correct to assume that
> if a root certificate is present in the server certificate chain and
> also in local, permanent storage, the latter must be used, rather than
> the former?

Yes, the client MUST verify the chain using a locally stored root
certificate, i.e., a trust anchor.  If the server sends a root
certificate that is one of the client's trust anchors, that's fine.  If
the server sends a root certificate that is not a trust anchor of the
client, the client MAY ignore it or fail the handshake.

More generally, a client that receives an incomplete, misordered, or
otherwise invalid chain from a non-compliant server MAY fail the
handshake or proceed if it is able to construct a valid chain some other
way.

> But, in this case, why allow the server to include a root certificate
> in the certificate chain in the first place?

Perhaps as a hint to clients that might decide they wish to add that
certificate as a trust anchor, possibly after further research?

-- 
Matt


From marsh@extendedsubset.com  Tue Aug 31 18:56:29 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 993A13A69FB for <tls@core3.amsl.com>; Tue, 31 Aug 2010 18:56:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.088
X-Spam-Level: 
X-Spam-Status: No, score=-2.088 tagged_above=-999 required=5 tests=[AWL=0.511,  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 l-cuny+3klJI for <tls@core3.amsl.com>; Tue, 31 Aug 2010 18:56:25 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id 6A4183A69FA for <tls@ietf.org>; Tue, 31 Aug 2010 18:56:25 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OqcZL-0002qo-HL; Wed, 01 Sep 2010 01:56:55 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id CE30B6092; Wed,  1 Sep 2010 01:56:53 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX18kkZjSRE36tkm8AtYndrc6JWeuJ/fmbLI=
Message-ID: <4C7DB2E5.6030307@extendedsubset.com>
Date: Tue, 31 Aug 2010 20:56:53 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: Matt McCutchen <matt@mattmccutchen.net>
References: <90e6ba1818805af088048f262265@google.com> <1283299784.1923.145.camel@mattlaptop2.local>
In-Reply-To: <1283299784.1923.145.camel@mattlaptop2.local>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: 1.41421@gmail.com, tls@ietf.org
Subject: Re: [TLS] Root certificates in server certificate chains
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 01:56:29 -0000

On 08/31/2010 07:09 PM, Matt McCutchen wrote:
> The following is my understanding.  Others should feel free to disagree
> or correct me.
>
> On Tue, 2010-08-31 at 22:30 +0000, 1.41421@gmail.com wrote:
>> The standard (RFC 5246, sec. 7.4.2) says that a server certificate
>> chain may include, as the last entry in this chain, the root
>> certificate that is to be considered the ultimate trust anchor as far
>> the server certificate is concerned. What would prevent an attacker
>> from inserting a Certificate message of its own during the handshake,
>> containing a totally bogus root certificate?
>
> Like any other tampering with the handshake, this would cause the
> Finished check to fail.

Not if the attacker is successful in getting the client to accept his 
proposed root certificate.

>> Actually, doesn't this render the whole idea of authentication of the
>> remote useless?

Sure, if the client is willing to accept it.

>> How can one make sure that a root certificate received
>> in a certificate chain is genuine?

Perhaps the client already trusts that root cert or key? If so, why even 
bother to send it?

>> But, in this case, why allow the server to include a root certificate
>> in the certificate chain in the first place?
>
> Perhaps as a hint to clients that might decide they wish to add that
> certificate as a trust anchor, possibly after further research?

To make it easier for users to "Permanently store this exception"?  :-P

- Marsh

From prvs=68602c451d=uri@ll.mit.edu  Tue Aug 31 19:14:56 2010
Return-Path: <prvs=68602c451d=uri@ll.mit.edu>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id CDBD13A6859 for <tls@core3.amsl.com>; Tue, 31 Aug 2010 19:14:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.207
X-Spam-Level: 
X-Spam-Status: No, score=-6.207 tagged_above=-999 required=5 tests=[AWL=0.391,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 S1ChDJRaw7yc for <tls@core3.amsl.com>; Tue, 31 Aug 2010 19:14:55 -0700 (PDT)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by core3.amsl.com (Postfix) with ESMTP id DBD743A6A01 for <tls@ietf.org>; Tue, 31 Aug 2010 19:14:54 -0700 (PDT)
Received: from LLE2K7-HUB02.mitll.ad.local (LLE2K7-HUB02.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id o812FL9E008551; Tue, 31 Aug 2010 22:15:21 -0400
From: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
To: "'marsh@extendedsubset.com'" <marsh@extendedsubset.com>
Date: Tue, 31 Aug 2010 22:15:23 -0400
Thread-Topic: [TLS] Root certificates in server certificate chains
Thread-Index: ActJeUgCSn/zi0mrTzyPgQ0RBsW20wAAibw6
In-Reply-To: <4C7DB2E5.6030307@extendedsubset.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.0.10011, 1.0.148, 0.0.0000 definitions=2010-09-01_01:2010-09-01, 2010-09-01, 1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-1005130000 definitions=main-1008310181
Message-Id: <20100901021454.DBD743A6A01@core3.amsl.com>
Cc: "'tls@ietf.org'" <tls@ietf.org>
Subject: Re: [TLS] Root certificates in server certificate chains
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 02:14:57 -0000

Sending root cert makes sense for Trust model based on computed probabiliti=
es - which does not exist today except in research papers.

The idea is - you verify as much as practical, and decide how much you trus=
t the requester regarding his request.

E.g. consider two questions: "can I use your phone?" and "can I use your ca=
r?"
=20
Oh, and the current trust model has little room for root cert as a part of =
the transmitted chain. Although - a home-grown CA, a bunch of pals establis=
hing a  TLS-protected Web chat site...? No need to get VeriSign involved...=
 Why not?=20

--
Regards,
Uri

----- Original Message -----
From: Marsh Ray [mailto:marsh@extendedsubset.com]
Sent: Tuesday, August 31, 2010 09:56 PM=0A=
To: Matt McCutchen <matt@mattmccutchen.net>
Cc: 1.41421@gmail.com <1.41421@gmail.com>; tls@ietf.org <tls@ietf.org>
Subject: Re: [TLS] Root certificates in server certificate chains

On 08/31/2010 07:09 PM, Matt McCutchen wrote:
> The following is my understanding.  Others should feel free to disagree
> or correct me.
>
> On Tue, 2010-08-31 at 22:30 +0000, 1.41421@gmail.com wrote:
>> The standard (RFC 5246, sec. 7.4.2) says that a server certificate
>> chain may include, as the last entry in this chain, the root
>> certificate that is to be considered the ultimate trust anchor as far
>> the server certificate is concerned. What would prevent an attacker
>> from inserting a Certificate message of its own during the handshake,
>> containing a totally bogus root certificate?
>
> Like any other tampering with the handshake, this would cause the
> Finished check to fail.

Not if the attacker is successful in getting the client to accept his=20
proposed root certificate.

>> Actually, doesn't this render the whole idea of authentication of the
>> remote useless?

Sure, if the client is willing to accept it.

>> How can one make sure that a root certificate received
>> in a certificate chain is genuine?

Perhaps the client already trusts that root cert or key? If so, why even=20
bother to send it?

>> But, in this case, why allow the server to include a root certificate
>> in the certificate chain in the first place?
>
> Perhaps as a hint to clients that might decide they wish to add that
> certificate as a trust anchor, possibly after further research?

To make it easier for users to "Permanently store this exception"?  :-P

- Marsh
_______________________________________________
TLS mailing list
TLS@ietf.org
https://www.ietf.org/mailman/listinfo/tls

From matt@mattmccutchen.net  Tue Aug 31 19:15:33 2010
Return-Path: <matt@mattmccutchen.net>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D11B43A6A1E for <tls@core3.amsl.com>; Tue, 31 Aug 2010 19:15:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 IU0N3iiNsOIt for <tls@core3.amsl.com>; Tue, 31 Aug 2010 19:15:32 -0700 (PDT)
Received: from homiemail-a4.g.dreamhost.com (caiajhbdcahe.dreamhost.com [208.97.132.74]) by core3.amsl.com (Postfix) with ESMTP id AE2D23A6A03 for <tls@ietf.org>; Tue, 31 Aug 2010 19:15:32 -0700 (PDT)
Received: from homiemail-a4.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a4.g.dreamhost.com (Postfix) with ESMTP id 674A551C063; Tue, 31 Aug 2010 19:16:03 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=mattmccutchen.net; h=subject:from :to:cc:in-reply-to:references:content-type:date:message-id :mime-version:content-transfer-encoding; q=dns; s= mattmccutchen.net; b=sSKTZQMZs+7i6MuEwRziPJ7n3UdCTlxeTGUm9Simutd mawY+1RJ0mmFXiP0jq2OeAuLvLzxXLdvvPRmb5AnJkII0Dy7hnAG5Z+AorzKKwDk HzrPpTD5RLBZRtFkvUey6JR+1pL19jw9/jYbtxy9fdQNPez0GTWnhNh1uY5MMR3A =
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=mattmccutchen.net; h= subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:content-transfer-encoding; s= mattmccutchen.net; bh=PBjvqvq9RnTCeCRs1JlsZFhy5tM=; b=YhcV03aeSS /em9RO4EKGHaNuVdpolTBf+Hpxe+jax/BHw2IWgybyAfJtG5AC2oA9ZWwZrea7/0 BaqjN5n6KKFvjOWyk8LAjeT/v49YdLLAXRlAAPthuveCke9D7XmaloAZFWtC/IFm +sf4tJ7j8p3sexRi8GJPkmA0iHAsZIqJ0=
Received: from [129.2.138.193] (129-2-138-193.wireless.umd.edu [129.2.138.193]) (Authenticated sender: matt@mattmccutchen.net) by homiemail-a4.g.dreamhost.com (Postfix) with ESMTPA id 07E2C51C062; Tue, 31 Aug 2010 19:16:02 -0700 (PDT)
From: Matt McCutchen <matt@mattmccutchen.net>
To: Marsh Ray <marsh@extendedsubset.com>
In-Reply-To: <4C7DB2E5.6030307@extendedsubset.com>
References: <90e6ba1818805af088048f262265@google.com> <1283299784.1923.145.camel@mattlaptop2.local> <4C7DB2E5.6030307@extendedsubset.com>
Content-Type: text/plain; charset="UTF-8"
Date: Tue, 31 Aug 2010 22:15:59 -0400
Message-ID: <1283307359.1923.195.camel@mattlaptop2.local>
Mime-Version: 1.0
X-Mailer: Evolution 2.30.2 
Content-Transfer-Encoding: 7bit
Cc: 1.41421@gmail.com, tls@ietf.org
Subject: Re: [TLS] Root certificates in server certificate chains
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 02:15:34 -0000

On Tue, 2010-08-31 at 20:56 -0500, Marsh Ray wrote:
> On 08/31/2010 07:09 PM, Matt McCutchen wrote:
> > The following is my understanding.  Others should feel free to disagree
> > or correct me.
> >
> > On Tue, 2010-08-31 at 22:30 +0000, 1.41421@gmail.com wrote:
> >> The standard (RFC 5246, sec. 7.4.2) says that a server certificate
> >> chain may include, as the last entry in this chain, the root
> >> certificate that is to be considered the ultimate trust anchor as far
> >> the server certificate is concerned. What would prevent an attacker
> >> from inserting a Certificate message of its own during the handshake,
> >> containing a totally bogus root certificate?
> >
> > Like any other tampering with the handshake, this would cause the
> > Finished check to fail.
> 
> Not if the attacker is successful in getting the client to accept his 
> proposed root certificate.

I think we are answering different questions.  The attacker can of
course act as a MITM using the proposed root certificate.  But any
manipulation of the handshake between two parties that falls short of a
full MITM will prevent the Finished check from passing, unless the
attacker can cause a rollback to a cipher suite he can break in order to
forge the Finished messages.

-- 
Matt


From ryan-ietftls@sleevi.com  Tue Aug 31 19:24:50 2010
Return-Path: <ryan-ietftls@sleevi.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 163F03A6859 for <tls@core3.amsl.com>; Tue, 31 Aug 2010 19:24:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 CFO8Bsr8fPtg for <tls@core3.amsl.com>; Tue, 31 Aug 2010 19:24:48 -0700 (PDT)
Received: from homiemail-a66.g.dreamhost.com (caiajhbdcahe.dreamhost.com [208.97.132.74]) by core3.amsl.com (Postfix) with ESMTP id AF1EE3A6834 for <tls@ietf.org>; Tue, 31 Aug 2010 19:24:48 -0700 (PDT)
Received: from homiemail-a66.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a66.g.dreamhost.com (Postfix) with ESMTP id 3D9C4350063 for <tls@ietf.org>; Tue, 31 Aug 2010 19:25:19 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sleevi.com; h=message-id:date :subject:from:to:reply-to:mime-version:content-type: content-transfer-encoding; q=dns; s=sleevi.com; b=KRZpTkml6r8uJ2 4Y0Z/L0otwcEeRJxDusuYBHddRglO9H7gt7drxG9DqKAN+/PbpWmDyquYvsYC3C/ ybZRTA0ntLggCWnp3fJq/oVQzvdj8yVCiiJoNCUzxug5bounGNfWn+OVhEnXO7dp lobfYvHfe+GJLkXn13Ip66ZXDV1eE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sleevi.com; h=message-id :date:subject:from:to:reply-to:mime-version:content-type: content-transfer-encoding; s=sleevi.com; bh=yMpBVSZ8LLPhph6/MKFg nvKiYO0=; b=UPBGshtMjhwBNCmiL2stHmt+yHWrne1bRPndKF02ieQZD+6VuKnW BlwilcOHtVnzK1xNIh/ffZhrUWl8kKrBq/kUP5hne4Zhhw7n66YOgIqXKUMcc9gD 5gmlTD0uDaleyVAku82z/aEiDpucjl4CHR0MOvMW4oP87ggYFVpJdKU=
Received: from webmail.sleevi.com (caiajhbdcbhh.dreamhost.com [208.97.132.177]) (Authenticated sender: ryan@sleevi.com) by homiemail-a66.g.dreamhost.com (Postfix) with ESMTPA id 3AB6A350014 for <tls@ietf.org>; Tue, 31 Aug 2010 19:25:19 -0700 (PDT)
Received: from 72.189.102.211 (proxying for 72.189.102.211) (SquirrelMail authenticated user ryan@sleevi.com) by webmail.sleevi.com with HTTP; Tue, 31 Aug 2010 22:25:19 -0400
Message-ID: <2eda4b7b6eb5c5a0a61b2caf2c7d97bf.squirrel@webmail.sleevi.com>
Date: Tue, 31 Aug 2010 22:25:19 -0400
From: "Ryan Sleevi" <ryan-ietftls@sleevi.com>
To: tls@ietf.org
User-Agent: SquirrelMail/1.4.21
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Subject: Re: [TLS] Root certificates in server certificate chains
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: ryan-ietftls@sleevi.com
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 02:24:50 -0000

> -----Original Message-----
> From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf Of
Marsh Ray
> Sent: Tuesday, August 31, 2010 9:57 PM
> To: Matt McCutchen
> Cc: 1.41421@gmail.com; tls@ietf.org
> Subject: Re: [TLS] Root certificates in server certificate chains
>
<SNIP>
>
> >> But, in this case, why allow the server to include a root
> certificate
> >> in the certificate chain in the first place?
> >
> > Perhaps as a hint to clients that might decide they wish to add that
certificate as a trust anchor, possibly after further research?
>
> To make it easier for users to "Permanently store this exception"?  :-P

What about the edge case of a server requesting a client certificate from
a trusted list of CAs, for which the client does not have the trusted roo=
t
in their list. This would apply both to 'simple' authentication
(Root->Intermediate->EE) and to the more complex scenario of bridge CAs,
where the client may have Root A->Intermediate->EE, but the server has
Root B->Intermediate'->EE, where Intermediate' is the cross-certified
certificate.

If the client feeds in the list supplied by the server into the list of
certificates to consider when building/evaluating a path to one of the
specified trusted CAs (as NSS does implicitly, AFAICT, and which OpenSSL,
Secure Transport, and SChannel all support), then the end-user should be
able to successfully build a path that contains one of the server
requested CAs.

Of course, such an implementation puts the onus on the clients to do this=
,
and there are alternatives that you could configure at the server (eg: by
specifying a request for Intermediate/Intermediate', rather than Root B),
but it seems valid/useful use case.

It can also act as a hint to the client of how much of the chain they nee=
d
to send. Consider if the client had EE->Intermediate->Root A->Root
A'->Root B, and the server indicated trust for Root A. If the client sent
EE->Intermediate->Root A->Root A' in their response, some servers that
have limited/partial implementation of the RFC 3280 path building
algorithms may have trouble building/validating the client certificate, a=
s
they may only check the final certificate in the chain/final certificate'=
s
issuer against their list of trust anchors, ignoring the fact that Root A
occurred earlier. This was the case with OpenSSL for a time, and with NSS
prior to libpkix integration, though I believe support for this scenario
has been improved in subsequent versions in the case of the former, and
certainly in the case of the latter.




From marsh@extendedsubset.com  Tue Aug 31 19:42:07 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 227B23A6836 for <tls@core3.amsl.com>; Tue, 31 Aug 2010 19:42:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[AWL=0.500,  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 7ZlO+fa0+lGE for <tls@core3.amsl.com>; Tue, 31 Aug 2010 19:42:05 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id D2A7A3A63EC for <tls@ietf.org>; Tue, 31 Aug 2010 19:42:05 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OqdHY-000GnD-8P; Wed, 01 Sep 2010 02:42:36 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 35F356094; Wed,  1 Sep 2010 02:42:35 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX18aLK5E2mZbbn2NG0z+YuU3eelhdn1iXck=
Message-ID: <4C7DBD9B.5060009@extendedsubset.com>
Date: Tue, 31 Aug 2010 21:42:35 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
References: <20100901021525.099F0608A@xs01.extendedsubset.com>
In-Reply-To: <20100901021525.099F0608A@xs01.extendedsubset.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: "'tls@ietf.org'" <tls@ietf.org>
Subject: Re: [TLS] Root certificates in server certificate chains
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 02:42:07 -0000

On 08/31/2010 09:15 PM, Blumenthal, Uri - 0668 - MITLL wrote:
> Sending root cert makes sense for Trust model based on computed
> probabilities - which does not exist today except in research
> papers.

IMHO introducing into a secure protocol discussion any probability 
greater than about 1/2^80 represents a dangerous logical fallacy.

Attacks are not statistical like meteor strikes and earthquakes.

Attackers are real smart people in practice. The attacker controls many 
of the variables of your system and likely is is more comfortable 
operating in its corner cases and failure modes than the legitimate 
parties are.

> The idea is - you verify as much as practical, and decide how much
> you trust the requester regarding his request.

How does that work for unattended systems that need to authenticate one 
another? How does can the system possibly know how many dependencies 
will be built upon the secure authenticated channel it establishes? Can 
the designer know this? Can even the user?

> E.g. consider two questions: "can I use your phone?" and "can I use
> your car?"

Either one could be used to rob a bank or make a drug deal and I could 
end up answering some difficult questions from the police. In practice, 
I am required by law to insure the car because eventual disaster is a 
near statistical certainty. Also in practice, big-time crime is 
committed over phones.

> Oh, and the current trust model has little room for root cert as a
> part of the transmitted chain. Although - a home-grown CA, a bunch of
> pals establishing a  TLS-protected Web chat site...? No need to get
> VeriSign involved... Why not?

Because everyone who accepts the home-grown CA becomes silently 
vulnerable to having their online banking credentials stolen when it 
turns out that the home-grown CA wasn't being professionally maintained 
after all:

http://www.google.com/search?hl=en&q=%22begin+rsa+private+key%22+site%3Apastebin.com

- Marsh

From marsh@extendedsubset.com  Tue Aug 31 19:48:52 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id A68C13A6358 for <tls@core3.amsl.com>; Tue, 31 Aug 2010 19:48:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.109
X-Spam-Level: 
X-Spam-Status: No, score=-2.109 tagged_above=-999 required=5 tests=[AWL=0.490,  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 35tT-h4Lyrya for <tls@core3.amsl.com>; Tue, 31 Aug 2010 19:48:51 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id 51DB53A63EC for <tls@ietf.org>; Tue, 31 Aug 2010 19:48:51 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OqdO4-000IX7-89; Wed, 01 Sep 2010 02:49:20 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id CD66A608D; Wed,  1 Sep 2010 02:49:18 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX19ODc5fQ0MIVR29DPTcB1PgDIB1mZT5RNg=
Message-ID: <4C7DBF2E.8010100@extendedsubset.com>
Date: Tue, 31 Aug 2010 21:49:18 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: Matt McCutchen <matt@mattmccutchen.net>
References: <90e6ba1818805af088048f262265@google.com>	 <1283299784.1923.145.camel@mattlaptop2.local>	 <4C7DB2E5.6030307@extendedsubset.com> <1283307359.1923.195.camel@mattlaptop2.local>
In-Reply-To: <1283307359.1923.195.camel@mattlaptop2.local>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Cc: 1.41421@gmail.com, tls@ietf.org
Subject: Re: [TLS] Root certificates in server certificate chains
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 02:48:52 -0000

On 08/31/2010 09:15 PM, Matt McCutchen wrote:
> On Tue, 2010-08-31 at 20:56 -0500, Marsh Ray wrote:
>>
>> Not if the attacker is successful in getting the client to accept his
>> proposed root certificate.
>
> I think we are answering different questions.  The attacker can of
> course act as a MITM using the proposed root certificate.  But any
> manipulation of the handshake between two parties that falls short of a
> full MITM will prevent the Finished check from passing, unless the
> attacker can cause a rollback to a cipher suite he can break in order to
> forge the Finished messages.

My guess is that an attacker could tell whether or not the client was 
"taking the bait" and so he wouldn't pass the Finished messages at all 
unless they were expected to validate at one or both ends.

An aborted attack might not look much different to the legitimate client 
and server than ordinary packet loss.

- Marsh

From prvs=68602c451d=uri@ll.mit.edu  Tue Aug 31 20:05:22 2010
Return-Path: <prvs=68602c451d=uri@ll.mit.edu>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 341B33A6A0B for <tls@core3.amsl.com>; Tue, 31 Aug 2010 20:05:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.246
X-Spam-Level: 
X-Spam-Status: No, score=-6.246 tagged_above=-999 required=5 tests=[AWL=0.352,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 HOZSBLgYPpmv for <tls@core3.amsl.com>; Tue, 31 Aug 2010 20:05:20 -0700 (PDT)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by core3.amsl.com (Postfix) with ESMTP id B8E963A69FA for <tls@ietf.org>; Tue, 31 Aug 2010 20:05:20 -0700 (PDT)
Received: from LLE2K7-HUB01.mitll.ad.local (LLE2K7-HUB01.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id o8135lCW012346; Tue, 31 Aug 2010 23:05:47 -0400
From: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
To: "'marsh@extendedsubset.com'" <marsh@extendedsubset.com>
Date: Tue, 31 Aug 2010 23:05:49 -0400
Thread-Topic: [TLS] Root certificates in server certificate chains
Thread-Index: ActJf1bsYRVC2OaGQN2oQmPcZIRJ+gAAyOFb
In-Reply-To: <4C7DBD9B.5060009@extendedsubset.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.0.10011, 1.0.148, 0.0.0000 definitions=2010-09-01_01:2010-09-01, 2010-09-01, 1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-1005130000 definitions=main-1008310189
Message-Id: <20100901030520.B8E963A69FA@core3.amsl.com>
Cc: "'tls@ietf.org'" <tls@ietf.org>
Subject: Re: [TLS] Root certificates in server certificate chains
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 03:05:22 -0000

Probability (greater than 1/2^80) comes into play when you need to make a d=
ecision based on incomplete information - and responses like "call back whe=
n you have your form DD-xxxx and token YYY in hand, until then take a hike"=
 are not acceptable.

Re. How can an unattended system know - by the virtue and power of flexible=
 dynamic and complex policy that takes these aspects into consideration. Th=
e required complexity of such policies is one reason they now exist mostly =
in theory. I personally think such complex policies are inevitable, but the=
ir time (and our ability to deal with them) hasn't come yet. In fact we sti=
ll have problems with simplistic policies.=20

We can discuss home-grown CA offline if you wish.=20

--
Regards,
Uri

----- Original Message -----
From: Marsh Ray [mailto:marsh@extendedsubset.com]
Sent: Tuesday, August 31, 2010 10:42 PM=0A=
To: Blumenthal, Uri - 0668 - MITLL
Cc: 'tls@ietf.org' <tls@ietf.org>
Subject: Re: [TLS] Root certificates in server certificate chains

On 08/31/2010 09:15 PM, Blumenthal, Uri - 0668 - MITLL wrote:
> Sending root cert makes sense for Trust model based on computed
> probabilities - which does not exist today except in research
> papers.

IMHO introducing into a secure protocol discussion any probability=20
greater than about 1/2^80 represents a dangerous logical fallacy.

Attacks are not statistical like meteor strikes and earthquakes.

Attackers are real smart people in practice. The attacker controls many=20
of the variables of your system and likely is is more comfortable=20
operating in its corner cases and failure modes than the legitimate=20
parties are.

> The idea is - you verify as much as practical, and decide how much
> you trust the requester regarding his request.

How does that work for unattended systems that need to authenticate one=20
another? How does can the system possibly know how many dependencies=20
will be built upon the secure authenticated channel it establishes? Can=20
the designer know this? Can even the user?

> E.g. consider two questions: "can I use your phone?" and "can I use
> your car?"

Either one could be used to rob a bank or make a drug deal and I could=20
end up answering some difficult questions from the police. In practice,=20
I am required by law to insure the car because eventual disaster is a=20
near statistical certainty. Also in practice, big-time crime is=20
committed over phones.

> Oh, and the current trust model has little room for root cert as a
> part of the transmitted chain. Although - a home-grown CA, a bunch of
> pals establishing a  TLS-protected Web chat site...? No need to get
> VeriSign involved... Why not?

Because everyone who accepts the home-grown CA becomes silently=20
vulnerable to having their online banking credentials stolen when it=20
turns out that the home-grown CA wasn't being professionally maintained=20
after all:

http://www.google.com/search?hl=3Den&q=3D%22begin+rsa+private+key%22+site%3=
Apastebin.com

- Marsh

From marsh@extendedsubset.com  Tue Aug 31 20:57:38 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 4053D3A69E7 for <tls@core3.amsl.com>; Tue, 31 Aug 2010 20:57:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.118
X-Spam-Level: 
X-Spam-Status: No, score=-2.118 tagged_above=-999 required=5 tests=[AWL=0.481,  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 eNPvg2atxc6V for <tls@core3.amsl.com>; Tue, 31 Aug 2010 20:57:37 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id 167793A694A for <tls@ietf.org>; Tue, 31 Aug 2010 20:57:37 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OqeSd-000G24-Dp; Wed, 01 Sep 2010 03:58:07 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id E079160A4; Wed,  1 Sep 2010 03:58:05 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX19UTfDFbrZ1MxmzFH4LZHqh8qMuhCqonO0=
Message-ID: <4C7DCF4E.1040508@extendedsubset.com>
Date: Tue, 31 Aug 2010 22:58:06 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: ryan-ietftls@sleevi.com
References: <2eda4b7b6eb5c5a0a61b2caf2c7d97bf.squirrel@webmail.sleevi.com>
In-Reply-To: <2eda4b7b6eb5c5a0a61b2caf2c7d97bf.squirrel@webmail.sleevi.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Root certificates in server certificate chains
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 03:57:38 -0000

On 08/31/2010 09:25 PM, Ryan Sleevi wrote:
>> From: tls-bounces@ietf.org [mailto:tls-bounces@ietf.org] On Behalf Of
> Marsh Ray
>>
>> To make it easier for users to "Permanently store this exception"?  :-P
>
> What about the edge case of a server requesting a client certificate from
> a trusted list of CAs, for which the client does not have the trusted root
> in their list.

I've tried to do that in some software and some client libraries really 
didn't want to cooperate. For this system we did everything we could, 
including opening paid support incidents with vendors, in order to avoid 
having to add our cert to the client's trusted roots because it 
represented an unnecessary expansion of scope and privilege for our 
little application-specific PKI scheme.

> This would apply both to 'simple' authentication
> (Root->Intermediate->EE) and to the more complex scenario of bridge CAs,
> where the client may have Root A->Intermediate->EE, but the server has
> Root B->Intermediate'->EE, where Intermediate' is the cross-certified
> certificate.
>
> If the client feeds in the list supplied by the server into the list of
> certificates to consider when building/evaluating a path to one of the
> specified trusted CAs (as NSS does implicitly, AFAICT, and which OpenSSL,
> Secure Transport, and SChannel all support), then the end-user should be
> able to successfully build a path that contains one of the server
> requested CAs.

OK, so I'm an end user. I have a pop up dialog box with a yellow warning 
triangle. It has a bunch of words on it I don't understand. Or I thought 
I understood these words but they don't make any sense to me now. Words 
like: "credentials", "client", "server", "certificate", "authority", and 
"authentication".

It is clear though that I am being presented with a choice of great 
consequence. Probably if I make the wrong choice my computer will get 
infected again and I'll have to endure being spoken to condescendingly 
by my 14 year old nephew who's the family computer whiz. So:

"Do you wish to allow the use of your user certificate client 
authentication credentials for building a path that contains one of the 
certifying authorities requested by the server? Note: You will not be 
prompted again for this session unless make a clear cookie cache."
   * Click "OK" to spin the barrel and pull the trigger.
   * Click "Cancel" to definitely not succeed.

Which one should I choose? Why?

What does it mean when you suggest that I "successfully build a path 
that contains one of the server requested CAs"?

Oh I get it now. You're saying I should insert my card into the reader 
the bank gave me and enter my PIN when I see the bank's logo...

> Of course, such an implementation puts the onus on the clients to do this,
> and there are alternatives that you could configure at the server (eg: by
> specifying a request for Intermediate/Intermediate', rather than Root B),
> but it seems valid/useful use case.
> It can also act as a hint to the client of how much of the chain they need
> to send. Consider if the client had EE->Intermediate->Root A->Root
> A'->Root B, and the server indicated trust for Root A. If the client sent
> EE->Intermediate->Root A->Root A' in their response, some servers that
> have limited/partial implementation of the RFC 3280 path building
> algorithms may have trouble building/validating the client certificate, as
> they may only check the final certificate in the chain/final certificate's
> issuer against their list of trust anchors, ignoring the fact that Root A
> occurred earlier. This was the case with OpenSSL for a time, and with NSS
> prior to libpkix integration, though I believe support for this scenario
> has been improved in subsequent versions in the case of the former, and
> certainly in the case of the latter.

If you're saying that this scheme is too complicated for mere mortal 
application developers (like me) to implement securely more than half 
the time, I think I'm convinced. The scary thing is that if I read your 
description enough times I start to feel like I understand it. But 
probably I don't.

This took how many years for OpenSSL and NSS to get right? Those guys 
are the full-time pros, what hope is there for the rest of us?

So sorry for the hang-ups in this email, I'm certainly not trying to 
give anybody static about it. I think your technical explanation is 
probably just fine.

But I just can't shake the feeling that there has got to be a better way 
out there somehow. Well, maybe not. Authentication and trust really are 
hard and deeply complicated problems.

- Marsh

From matt@mattmccutchen.net  Tue Aug 31 21:54:24 2010
Return-Path: <matt@mattmccutchen.net>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id CD6123A68F0 for <tls@core3.amsl.com>; Tue, 31 Aug 2010 21:54:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 Ja6ljRJrhnDV for <tls@core3.amsl.com>; Tue, 31 Aug 2010 21:54:23 -0700 (PDT)
Received: from homiemail-a7.g.dreamhost.com (caiajhbdccac.dreamhost.com [208.97.132.202]) by core3.amsl.com (Postfix) with ESMTP id EF3CF3A68A4 for <tls@ietf.org>; Tue, 31 Aug 2010 21:54:18 -0700 (PDT)
Received: from homiemail-a7.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a7.g.dreamhost.com (Postfix) with ESMTP id 9330425C06A; Tue, 31 Aug 2010 21:54:49 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=mattmccutchen.net; h=subject:from :to:cc:in-reply-to:references:content-type:date:message-id :mime-version:content-transfer-encoding; q=dns; s= mattmccutchen.net; b=Cq9eSNGPl11+uONBWGmchbVToysUVQ7oK6szWrEncE1 rD93F6etkNz9Rp1nVXUrPgs24uRIERoRSyVL02tbHQ2mcTNUsMaPcEsTWq5cXMu3 gBXIy17WvZFcyygrioy/0NXZylfzcuKdyfInDmqzDIKlSSbALtl9JTS9kuw/5R9I =
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=mattmccutchen.net; h= subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:content-transfer-encoding; s= mattmccutchen.net; bh=0r7vpiqI5lXI3EWCmbLLkNpEByc=; b=GG+X58iG9a XI5vET/YPkPAITBvrYCSn+pXVsYWm6HHUlkNpZujlEEvaSWBtWqAv6SJbu7iXAa9 zIZBCu7TgTmsGfOrpgzI5Q3F17t/Ol8+M3yiXu7GRMIA6p6afmvS3gQEyy8IlYqD JvU/TMpZhG2KASBaKVCB35xQY3t67i8uo=
Received: from [129.2.249.209] (ml2.student.umd.edu [129.2.249.209]) (Authenticated sender: matt@mattmccutchen.net) by homiemail-a7.g.dreamhost.com (Postfix) with ESMTPA id 501BE25C064; Tue, 31 Aug 2010 21:54:49 -0700 (PDT)
From: Matt McCutchen <matt@mattmccutchen.net>
To: Marsh Ray <marsh@extendedsubset.com>
In-Reply-To: <4C7DBF2E.8010100@extendedsubset.com>
References: <90e6ba1818805af088048f262265@google.com> <1283299784.1923.145.camel@mattlaptop2.local> <4C7DB2E5.6030307@extendedsubset.com> <1283307359.1923.195.camel@mattlaptop2.local> <4C7DBF2E.8010100@extendedsubset.com>
Content-Type: text/plain; charset="UTF-8"
Date: Wed, 01 Sep 2010 00:54:48 -0400
Message-ID: <1283316888.2175.14.camel@mattlaptop2.local>
Mime-Version: 1.0
X-Mailer: Evolution 2.30.2 
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Root certificates in server certificate chains
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 04:54:24 -0000

On Tue, 2010-08-31 at 21:49 -0500, Marsh Ray wrote:
> On 08/31/2010 09:15 PM, Matt McCutchen wrote:
> > On Tue, 2010-08-31 at 20:56 -0500, Marsh Ray wrote:
> >>
> >> Not if the attacker is successful in getting the client to accept his
> >> proposed root certificate.
> >
> > I think we are answering different questions.  The attacker can of
> > course act as a MITM using the proposed root certificate.  But any
> > manipulation of the handshake between two parties that falls short of a
> > full MITM will prevent the Finished check from passing, unless the
> > attacker can cause a rollback to a cipher suite he can break in order to
> > forge the Finished messages.
> 
> My guess is that an attacker could tell whether or not the client was 
> "taking the bait" and so he wouldn't pass the Finished messages at all 
> unless they were expected to validate at one or both ends.
> 
> An aborted attack might not look much different to the legitimate client 
> and server than ordinary packet loss.

What attack are you describing?  If the attacker replaces the entire
Certificate message with one containing his public key chained to a
bogus root certificate, that is just a MITM attack.  If the attacker
does some tampering but does not replace the server's public key with
his own, he has no way to generate valid Finished messages.

-- 
Matt


From matt@mattmccutchen.net  Tue Aug 31 22:22:11 2010
Return-Path: <matt@mattmccutchen.net>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 5FE493A6AB1 for <tls@core3.amsl.com>; Tue, 31 Aug 2010 22:22:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000,  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 n8DXb0rHDIED for <tls@core3.amsl.com>; Tue, 31 Aug 2010 22:22:08 -0700 (PDT)
Received: from homiemail-a10.g.dreamhost.com (caiajhbdcaib.dreamhost.com [208.97.132.81]) by core3.amsl.com (Postfix) with ESMTP id 132AC3A6A8B for <tls@ietf.org>; Tue, 31 Aug 2010 22:22:08 -0700 (PDT)
Received: from homiemail-a10.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a10.g.dreamhost.com (Postfix) with ESMTP id BD0CD280063; Tue, 31 Aug 2010 22:22:38 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=mattmccutchen.net; h=subject:from :to:cc:in-reply-to:references:content-type:date:message-id :mime-version:content-transfer-encoding; q=dns; s= mattmccutchen.net; b=HpuErRLyIMXoTRTB92DPXjHCUoVmVHkuMRCPLnGbFbx hI+W641215UUOVZpYTDG2ZpTitB023m4/96Dd0aJhGO4BjW1FV0i0/lsYRR02yGN l5tl9UiOkIitPz0fRsJZ3zAj4+xMun5Ed0xo2+QESJ/3MZjwWoILwOMtiT9dY1KI =
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=mattmccutchen.net; h= subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:content-transfer-encoding; s= mattmccutchen.net; bh=J5DXBGiJaBVA+NLfpRZkoQNzzJk=; b=TFMqUFmIzh sYO1x4kg2oWZj0D1H73tWSrGHqaUkSuRUfWa1K9Xx3EOxV2nSX9JsmREdL1/n7B+ /ihQWWObgrgLo+tmYgYXKP9HrEsRgGgDxpnxUvap/EFU1wnXMHEcyezWLH20hAEE FFA/6j/Lqo1ovxDPvF1f/zHurE2BsEsq8=
Received: from [129.2.138.199] (129-2-138-199.wireless.umd.edu [129.2.138.199]) (Authenticated sender: matt@mattmccutchen.net) by homiemail-a10.g.dreamhost.com (Postfix) with ESMTPA id 676CC28005E;  Tue, 31 Aug 2010 22:22:38 -0700 (PDT)
From: Matt McCutchen <matt@mattmccutchen.net>
To: Marsh Ray <marsh@extendedsubset.com>
In-Reply-To: <4C7DCF4E.1040508@extendedsubset.com>
References: <2eda4b7b6eb5c5a0a61b2caf2c7d97bf.squirrel@webmail.sleevi.com> <4C7DCF4E.1040508@extendedsubset.com>
Content-Type: text/plain; charset="UTF-8"
Date: Wed, 01 Sep 2010 01:22:37 -0400
Message-ID: <1283318557.2175.40.camel@mattlaptop2.local>
Mime-Version: 1.0
X-Mailer: Evolution 2.30.2 
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Root certificates in server certificate chains
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 05:22:11 -0000

On Tue, 2010-08-31 at 22:58 -0500, Marsh Ray wrote:
> On 08/31/2010 09:25 PM, Ryan Sleevi wrote:
> > This would apply both to 'simple' authentication
> > (Root->Intermediate->EE) and to the more complex scenario of bridge CAs,
> > where the client may have Root A->Intermediate->EE, but the server has
> > Root B->Intermediate'->EE, where Intermediate' is the cross-certified
> > certificate.
> >
> > If the client feeds in the list supplied by the server into the list of
> > certificates to consider when building/evaluating a path to one of the
> > specified trusted CAs (as NSS does implicitly, AFAICT, and which OpenSSL,
> > Secure Transport, and SChannel all support), then the end-user should be
> > able to successfully build a path that contains one of the server
> > requested CAs.
> 
> OK, so I'm an end user. I have a pop up dialog box with a yellow warning 
> triangle. It has a bunch of words on it I don't understand. Or I thought 
> I understood these words but they don't make any sense to me now. Words 
> like: "credentials", "client", "server", "certificate", "authority", and 
> "authentication".
> 
> It is clear though that I am being presented with a choice of great 
> consequence. Probably if I make the wrong choice my computer will get 
> infected again and I'll have to endure being spoken to condescendingly 
> by my 14 year old nephew who's the family computer whiz. So:
> 
> "Do you wish to allow the use of your user certificate client 
> authentication credentials for building a path that contains one of the 
> certifying authorities requested by the server? Note: You will not be 
> prompted again for this session unless make a clear cookie cache."
>    * Click "OK" to spin the barrel and pull the trigger.
>    * Click "Cancel" to definitely not succeed.

That message just describes client-certificate authentication.

> What does it mean when you suggest that I "successfully build a path 
> that contains one of the server requested CAs"?

The server sends a CertificateRequest message for Root B, so the client
must send a chain from its certificate to Root B.  The only such chain
goes through the Intermediate' cross-certificate.  The client's local
database does not contain this certificate, so if path discovery only
uses the local database, the client will be unable to construct an
acceptable chain.  But if path discovery also uses the server's chain,
the client will construct the chain Client-Intermediate'-Root B, which
is acceptable to the server.  The client's chain is for the server's
consumption only, so there is no risk to the client in changing the way
it is constructed.

-- 
Matt


From matt@mattmccutchen.net  Tue Aug 31 22:33:28 2010
Return-Path: <matt@mattmccutchen.net>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E45B63A6AAB for <tls@core3.amsl.com>; Tue, 31 Aug 2010 22:33:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 o6DAuV825H2m for <tls@core3.amsl.com>; Tue, 31 Aug 2010 22:33:24 -0700 (PDT)
Received: from homiemail-a61.g.dreamhost.com (caiajhbdcahe.dreamhost.com [208.97.132.74]) by core3.amsl.com (Postfix) with ESMTP id DFB163A694F for <tls@ietf.org>; Tue, 31 Aug 2010 22:33:23 -0700 (PDT)
Received: from homiemail-a61.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a61.g.dreamhost.com (Postfix) with ESMTP id 1381A57806C; Tue, 31 Aug 2010 22:33:45 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=mattmccutchen.net; h=subject:from :to:cc:in-reply-to:references:content-type:date:message-id :mime-version:content-transfer-encoding; q=dns; s= mattmccutchen.net; b=XdxLZUixLas6dDN3NExgY0fRRUem+y7Jw282OluBOIq n/iJ/GV6GwvZMA2Plt35B5HCrAegKqHckTJ9yjX/pTqz2Y3r4IYo4QXoixWBPDOp XjDj69O0xjDIPLFXU/UcAorrKdYhjRkPVzIgUOefS+IsN0oPpKlv7JdR2xjJwL0g =
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=mattmccutchen.net; h= subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:content-transfer-encoding; s= mattmccutchen.net; bh=Q1wFhQNTS4PEPd+mbsOwX5RY0/E=; b=keAJ5c6tCm nwS64YWoKFrBxB3Yu60Y2l17GKyTJym6xRdbF/zkqZ+p1PsYz8oUvYd3WOxWIuIL AF9jBZgOExymBIUrv9NOSgofmlYaXKlF0T0loMRCM01DCZqjbIOku7ij8n2wrQ2x mF82N6O1fLLBqrqPZGz/NfEBJS/wjudE0=
Received: from [129.2.249.209] (ml2.student.umd.edu [129.2.249.209]) (Authenticated sender: matt@mattmccutchen.net) by homiemail-a61.g.dreamhost.com (Postfix) with ESMTPA id 83A2C578069;  Tue, 31 Aug 2010 22:33:44 -0700 (PDT)
From: Matt McCutchen <matt@mattmccutchen.net>
To: ryan-ietftls@sleevi.com
In-Reply-To: <2eda4b7b6eb5c5a0a61b2caf2c7d97bf.squirrel@webmail.sleevi.com>
References: <2eda4b7b6eb5c5a0a61b2caf2c7d97bf.squirrel@webmail.sleevi.com>
Content-Type: text/plain; charset="UTF-8"
Date: Wed, 01 Sep 2010 01:33:43 -0400
Message-ID: <1283319223.2175.52.camel@mattlaptop2.local>
Mime-Version: 1.0
X-Mailer: Evolution 2.30.2 
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Root certificates in server certificate chains
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 05:33:28 -0000

On Tue, 2010-08-31 at 22:25 -0400, Ryan Sleevi wrote:
> What about the edge case of a server requesting a client certificate from
> a trusted list of CAs, for which the client does not have the trusted root
> in their list. This would apply both to 'simple' authentication
> (Root->Intermediate->EE) and to the more complex scenario of bridge CAs,
> where the client may have Root A->Intermediate->EE, but the server has
> Root B->Intermediate'->EE, where Intermediate' is the cross-certified
> certificate.
> 
> If the client feeds in the list supplied by the server into the list of
> certificates to consider when building/evaluating a path to one of the
> specified trusted CAs (as NSS does implicitly, AFAICT, and which OpenSSL,
> Secure Transport, and SChannel all support), then the end-user should be
> able to successfully build a path that contains one of the server
> requested CAs.
> 
> Of course, such an implementation puts the onus on the clients to do this,
> and there are alternatives that you could configure at the server (eg: by
> specifying a request for Intermediate/Intermediate', rather than Root B),
> but it seems valid/useful use case.

This isn't a use case for the server sending a root certificate.  I
would assume that the client's chain, like the server's chain, MAY omit
the root certificate.  Then, the client can take Intermediate' from the
server's chain and simply send Client-Intermediate', where the issuer of
Intermediate' is Root B, matching the CertificateRequest.  The client
does not need the actual Root B certificate.

> It can also act as a hint to the client of how much of the chain they need
> to send. Consider if the client had EE->Intermediate->Root A->Root
> A'->Root B, and the server indicated trust for Root A. If the client sent
> EE->Intermediate->Root A->Root A' in their response, [...]

The server's CertificateRequest will contain Root A's distinguished
name, and the client should use that as the indication of where to stop.
Again, there is no benefit to sending the actual certificate for Root A.

-- 
Matt


From marsh@extendedsubset.com  Tue Aug 31 22:47:30 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 180753A6AB1 for <tls@core3.amsl.com>; Tue, 31 Aug 2010 22:47:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.383
X-Spam-Level: 
X-Spam-Status: No, score=-1.383 tagged_above=-999 required=5 tests=[AWL=-0.273, BAYES_05=-1.11]
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 kEeYOj9rNBhT for <tls@core3.amsl.com>; Tue, 31 Aug 2010 22:47:07 -0700 (PDT)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by core3.amsl.com (Postfix) with ESMTP id D79E83A68F8 for <tls@ietf.org>; Tue, 31 Aug 2010 22:47:01 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OqgAV-00003m-8f; Wed, 01 Sep 2010 05:47:32 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 34E0C6091; Wed,  1 Sep 2010 05:47:30 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX18SkaGXAmB2T3M8cAJ5Nboe7YoozMo9+mE=
Message-ID: <4C7DE8F2.2000807@extendedsubset.com>
Date: Wed, 01 Sep 2010 00:47:30 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
References: <20100901030551.242EC6092@xs01.extendedsubset.com>
In-Reply-To: <20100901030551.242EC6092@xs01.extendedsubset.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: "'tls@ietf.org'" <tls@ietf.org>
Subject: Re: [TLS] Root certificates in server certificate chains
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 05:47:31 -0000

On 08/31/2010 10:05 PM, Blumenthal, Uri - 0668 - MITLL wrote:
> Probability (greater than 1/2^80) comes into play when you need to
> make a decision based on incomplete information

Here's the one bit of information we don't have:
Is this an attack, or is it legitimate access?

Shall we flip a coin?

Shall we look at historical rates of attack?
OK, 9999/10000 similar access attempts have been accepted as legitimate 
without incident, therefore go ahead and let this one in. Note that the 
bad guy can inundate you with attacks (both obvious and subtle) tomorrow 
and completely redefine that ratio. So now you're put in the unfortunate 
position of having to choose between denying a large set of 
previously-accepted requests from legitimate users, or letting one or 
more of the attacker's attempts slip through with near certainty.

> - and responses like
> "call back when you have your form DD-xxxx and token YYY in hand,
> until then take a hike" are not acceptable.

And why not? In fact, I'd go farther than to say such a response is 
acceptable, I'd say it's a necessary feature of any secure system.

The fundamental mechanism by which access controls implement security is 
by denying access to the protected resource!

I know this is at odds with almost every other part of the system which 
shares the wonderful goals of making the system powerful and easy to 
use. It can be lonely at times, but when we work on security we must 
come to terms with the fact that the entire purpose of auth-n and auth-z 
is to unambiguously say "NO" when the requirements for access are not met.

Any system for which it is the least bit difficult to receive an "access 
denied" result is simply not providing a meaningful degree of access 
control. It is not a reasonable design goal that "the user never sees 
any failures" and any attempt to "design for usability" in this respect 
is probably crossing the line and resulting in a misguided weakening of 
security.

The best that can be achieved from a usability standpoint is when the 
user is able to comply with the requirements of the access control 
mechanisms with as little additional complexity and overhead as 
possible. This may involve usability hints "oh by the way your caps lock 
is on" but it must avoid ever leaking protected information "this is a 
valid username but the supplied password was wrong".

> Re. How can an unattended system know - by the virtue and power of
> flexible dynamic and complex policy that takes these aspects into
> consideration. The required complexity of such policies is one reason
> they now exist mostly in theory. I personally think such complex
> policies are inevitable, but their time (and our ability to deal with
> them) hasn't come yet. In fact we still have problems with simplistic
> policies.

Complexity favors the attacker.

I'm not saying there's not a place for  a "3 out of 5" scheme or even a 
"one item from column A or two from column B" scheme. But in my 
experience, any "flexible and dynamic policy" is going to end up both 
incomprehensible for humans ("so why exactly did the system decide to 
grant access in this case and what switch do we flip to reliably disable 
it for next time?") and it will have all the interoperability magic of a 
90s-era "flexible" HTML parser.

When was the last time you got a corrupted application data record out 
of a properly set up connection over TLS or IPsec?  Possibly never? 
These protocol layers simply reject the imperfections and possibly drop 
the connection, at most reporting a syslog message. They would never 
bubble up a checksum error all the way to the user and ask if he wants 
to use the bad data anyway.

It would be ludicrous for a DNS resolver library to ask the user:

"A response was received which looks like it could match a recent query, 
but one or more of the transaction ID and source port do not match the 
expected values. Would you like to use this possibly attacker-supplied 
query response anyway? [Cancel], [OK] [x] don't ask me again".

That's why functional DNS is nearly universal, yet the net is full of 
https links to servers presenting non-validatable trust chains. DNS is 
now being looked to to solve the key distribution problems of TLS and 
SSH by publishing them in signed DNSSEC records. How ironic that DNS 
wasn't supposed to be the cryptographically secure protocol here anyway! 
It was TLS and IPsec that were supposed to be the things that saved you 
from hijacking at the IP and DNS layers.

> We can discuss home-grown CA offline if you wish.

OK

- Marsh

From marsh@extendedsubset.com  Tue Aug 31 22:57:33 2010
Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 568F73A68F5 for <tls@core3.amsl.com>; Tue, 31 Aug 2010 22:57:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.122
X-Spam-Level: 
X-Spam-Status: No, score=-2.122 tagged_above=-999 required=5 tests=[AWL=0.477,  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 VEpvbnDp1p-D for <tls@core3.amsl.com>; Tue, 31 Aug 2010 22:57:24 -0700 (PDT)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id 410473A6A79 for <tls@ietf.org>; Tue, 31 Aug 2010 22:57:24 -0700 (PDT)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1OqgKQ-00048V-Bn; Wed, 01 Sep 2010 05:57:46 +0000
Received: from [192.168.1.15] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id C070B608D; Wed,  1 Sep 2010 05:57:44 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX18X64lRbKbgZgVjDfBOhXPGZSarabR0sDQ=
Message-ID: <4C7DEB59.3020108@extendedsubset.com>
Date: Wed, 01 Sep 2010 00:57:45 -0500
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: Matt McCutchen <matt@mattmccutchen.net>
References: <90e6ba1818805af088048f262265@google.com>	 <1283299784.1923.145.camel@mattlaptop2.local>	 <4C7DB2E5.6030307@extendedsubset.com>	 <1283307359.1923.195.camel@mattlaptop2.local>	 <4C7DBF2E.8010100@extendedsubset.com> <1283316888.2175.14.camel@mattlaptop2.local>
In-Reply-To: <1283316888.2175.14.camel@mattlaptop2.local>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Root certificates in server certificate chains
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 05:57:33 -0000

On 08/31/2010 11:54 PM, Matt McCutchen wrote:
> On Tue, 2010-08-31 at 21:49 -0500, Marsh Ray wrote:
>>
>> My guess is that an attacker could tell whether or not the client was
>> "taking the bait" and so he wouldn't pass the Finished messages at all
>> unless they were expected to validate at one or both ends.
>>
>> An aborted attack might not look much different to the legitimate client
>> and server than ordinary packet loss.
>
> What attack are you describing?  If the attacker replaces the entire
> Certificate message with one containing his public key chained to a
> bogus root certificate, that is just a MITM attack.

Yes, at times a very effective one.

> If the attacker
> does some tampering but does not replace the server's public key with
> his own, he has no way to generate valid Finished messages.

Why would he do something like that? Why even bring it up?

I don't know if this is what you had in mind, but on example might be 
that he only cares about a valid Finished message in one direction. For 
non-resumption handshakes, the client is forced to transmit his valid 
Finished message before he has a chance to validate much of anything 
about the server's identity or the handshake. Under certain conditions, 
certain servers will perform some "highly non idempotent" actions upon 
the receipt of the clients valid Finished verify_data.

- Marsh


From matt@mattmccutchen.net  Tue Aug 31 23:07:07 2010
Return-Path: <matt@mattmccutchen.net>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 80EEC3A68EC for <tls@core3.amsl.com>; Tue, 31 Aug 2010 23:07:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000,  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 C-NURbHO7e54 for <tls@core3.amsl.com>; Tue, 31 Aug 2010 23:07:04 -0700 (PDT)
Received: from homiemail-a6.g.dreamhost.com (caiajhbdcbef.dreamhost.com [208.97.132.145]) by core3.amsl.com (Postfix) with ESMTP id B8BDB3A68DA for <tls@ietf.org>; Tue, 31 Aug 2010 23:07:04 -0700 (PDT)
Received: from homiemail-a6.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a6.g.dreamhost.com (Postfix) with ESMTP id C7471598077; Tue, 31 Aug 2010 23:07:34 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=mattmccutchen.net; h=subject:from :to:cc:in-reply-to:references:content-type:date:message-id :mime-version:content-transfer-encoding; q=dns; s= mattmccutchen.net; b=FLjRFnr2uPTT8mTKs4FG0QNH4qMt53iszsuYYnlTCcu EnlmNGYKH9UDS+JwDQ87++xWe8AxAzteU9X9jQNNNOJ/467sNCFjakesqmrZ2kIg KceMpCWbJDPSrJ52TOQCkqAAj5EGVdCzCSTDebo6D52tOCpNklR/DoxUpem9C+TY =
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=mattmccutchen.net; h= subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:content-transfer-encoding; s= mattmccutchen.net; bh=sPnnDKuZaxP1oraf1o4+KyPNOpU=; b=bku8dDCR7H wQWwKkyoHJaPdVLhwSa+jIbbjFEnb6pgozBYsr85LhfqDedIrdfR2U7x40ptTeay Yzt1+uIkAyBYi5fdJGANT0z+cOYKYpv4+FS9GBVdxcEwkC9DM7ovYVqMpXnP12/4 YKj0o+uBaMlgFXhBouJFnU2SRCtuKjbG8=
Received: from [129.2.249.209] (ml2.student.umd.edu [129.2.249.209]) (Authenticated sender: matt@mattmccutchen.net) by homiemail-a6.g.dreamhost.com (Postfix) with ESMTPA id 6D56A598070; Tue, 31 Aug 2010 23:07:34 -0700 (PDT)
From: Matt McCutchen <matt@mattmccutchen.net>
To: Marsh Ray <marsh@extendedsubset.com>
In-Reply-To: <4C7DEB59.3020108@extendedsubset.com>
References: <90e6ba1818805af088048f262265@google.com> <1283299784.1923.145.camel@mattlaptop2.local> <4C7DB2E5.6030307@extendedsubset.com> <1283307359.1923.195.camel@mattlaptop2.local> <4C7DBF2E.8010100@extendedsubset.com> <1283316888.2175.14.camel@mattlaptop2.local> <4C7DEB59.3020108@extendedsubset.com>
Content-Type: text/plain; charset="UTF-8"
Date: Wed, 01 Sep 2010 02:07:33 -0400
Message-ID: <1283321253.2175.57.camel@mattlaptop2.local>
Mime-Version: 1.0
X-Mailer: Evolution 2.30.2 
Content-Transfer-Encoding: 7bit
Cc: tls@ietf.org
Subject: Re: [TLS] Root certificates in server certificate chains
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tls>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 06:07:07 -0000

On Wed, 2010-09-01 at 00:57 -0500, Marsh Ray wrote:
> On 08/31/2010 11:54 PM, Matt McCutchen wrote:
> > If the attacker
> > does some tampering but does not replace the server's public key with
> > his own, he has no way to generate valid Finished messages.
> 
> Why would he do something like that? Why even bring it up?

I thought that was what 1.41421 originally proposed, but maybe I
misunderstood.

> I don't know if this is what you had in mind, but on example might be 
> that he only cares about a valid Finished message in one direction. For 
> non-resumption handshakes, the client is forced to transmit his valid 
> Finished message before he has a chance to validate much of anything 
> about the server's identity or the handshake. Under certain conditions, 
> certain servers will perform some "highly non idempotent" actions upon 
> the receipt of the clients valid Finished verify_data.

I did not have that in mind, and a modification to the handshake will
break /both/ Finished messages, so it is not a problem.

-- 
Matt

