Re: [hybi] Handshake was: The WebSocket protocol issues.

Ian Fette (イアンフェッティ) <ifette@google.com> Mon, 11 October 2010 20:33 UTC

Return-Path: <ifette@google.com>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 651B23A6B79 for <hybi@core3.amsl.com>; Mon, 11 Oct 2010 13:33:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.501
X-Spam-Level:
X-Spam-Status: No, score=-105.501 tagged_above=-999 required=5 tests=[AWL=0.175, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.3, 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 gs-tBSxzzbWe for <hybi@core3.amsl.com>; Mon, 11 Oct 2010 13:33:04 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id 3D6F63A6B3B for <hybi@ietf.org>; Mon, 11 Oct 2010 13:33:00 -0700 (PDT)
Received: from wpaz21.hot.corp.google.com (wpaz21.hot.corp.google.com [172.24.198.85]) by smtp-out.google.com with ESMTP id o9BKYCKT024619 for <hybi@ietf.org>; Mon, 11 Oct 2010 13:34:12 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1286829252; bh=E4vU8HZdkaZLQMAjV3SnmDQr97Q=; h=MIME-Version:Reply-To:In-Reply-To:References:Date:Message-ID: Subject:From:To:Cc:Content-Type; b=T4UMGIXgnEwmTgvuZ5F03BKXMSbBdLtbyIR/i+PRQi4aXz87oPM9k8OjmM53J/nqi QYEdQWpzha0Q617cj+AYg==
Received: from qwb8 (qwb8.prod.google.com [10.241.193.72]) by wpaz21.hot.corp.google.com with ESMTP id o9BKX6ZM010334 for <hybi@ietf.org>; Mon, 11 Oct 2010 13:34:11 -0700
Received: by qwb8 with SMTP id 8so1816613qwb.0 for <hybi@ietf.org>; Mon, 11 Oct 2010 13:34:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=domainkey-signature:mime-version:received:received:reply-to :in-reply-to:references:date:message-id:subject:from:to:cc :content-type; bh=JxeYB214SNDL/XMm/+un2BEuix6WVOtxwxdwb2UxftA=; b=UXnGejJPJPM3R7DtR0sRqVX+VxwAVj0IZxrYDYYJxo7g+UHvBHMLZqDce8YLoJTWU8 KQoIS/gAL5lHQosthMJg==
DomainKey-Signature: a=rsa-sha1; c=nofws; d=google.com; s=beta; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=PvBJs9vLZD4ZrPMMXvgOpKTvYCAH1G9/5Jg2aJTJoiXOMAeEhkpw5OA4wGcrw3QxPG paxufYR9fV/XF8ChatzA==
MIME-Version: 1.0
Received: by 10.224.28.211 with SMTP id n19mr3998018qac.289.1286829250751; Mon, 11 Oct 2010 13:34:10 -0700 (PDT)
Received: by 10.229.13.225 with HTTP; Mon, 11 Oct 2010 13:34:10 -0700 (PDT)
In-Reply-To: <A16867C7-1F27-4027-BFBF-B13A23B754A5@apple.com>
References: <AANLkTikszM0pVE-0dpZ2kv=i=y5yzS2ekeyZxtz9N=fQ@mail.gmail.com> <AANLkTik9igUwoxVrktoBoZrPoUW=Tjh7HyVbGJgQYes-@mail.gmail.com> <9F595226-FA0A-4C38-A6D0-0F4214BD7D21@apple.com> <4CA4BE10.1010709@caucho.com> <AANLkTi=wKFnNOuM+U3fktAFRn3R5OZ7c6PR2W3EAy7tm@mail.gmail.com> <4CA53E6B.1040808@caucho.com> <AANLkTikOyvF5AHTf4sDD=rWmK2FTD6R6LaHa4KTqkbcm@mail.gmail.com> <4CA68098.8010404@caucho.com> <AANLkTinYhW9MnnM3tkbCWziePyM7mFUEteKhw5OGp-eS@mail.gmail.com> <AANLkTi=_ejOCNiM49VW5q05=H7-M0jzAvXvGaKM1b7mX@mail.gmail.com> <AANLkTimyJj+Jxz1Q6fLrQ8iosGkD+0shUh3=td+jX_Do@mail.gmail.com> <4CA772A1.2090808@caucho.com> <AANLkTi=nLixtxMEd4B58Zp5FRbquNX2C_=7gCf9BGGQs@mail.gmail.com> <4CABCBFA.6020100@caucho.com> <AANLkTi=5wbCXWpOtUQT1MndgCxt9gj6uR_3U=nONpjKc@mail.gmail.com> <4CABD11F.3060500@caucho.com> <AANLkTiksehiSp7DB17MBVBb457p6pN5E8vma6FHz1c9j@mail.gmail.com> <4CACA667.3040309@caucho.com> <4CAF9589.1060007@caucho.com> <AANLkTinnnT5Oib7FvDdZF2q_WUT8=q8KNmfkfajE0Mor@mail.gmail.com> <AANLkTim9JWH15Cc9esL4hCP5cAcK=VvHLU-_9TFe=Gr_@mail.gmail.com> <A16867C7-1F27-4027-BFBF-B13A23B754A5@apple.com>
Date: Mon, 11 Oct 2010 13:34:10 -0700
Message-ID: <AANLkTim7Rk=3J8rC54j93FOUoo8+mK1J9fxfEffxYF7k@mail.gmail.com>
From: "Ian Fette (イアンフェッティ)" <ifette@google.com>
To: Maciej Stachowiak <mjs@apple.com>
Content-Type: multipart/alternative; boundary="0015175cb2e660acbe04925d48d2"
X-System-Of-Record: true
Cc: hybi <hybi@ietf.org>
Subject: Re: [hybi] Handshake was: The WebSocket protocol issues.
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: ifette@google.com
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Oct 2010 20:33:05 -0000

I would really like to be able to just use NPN and call it a day. FWIW.

On Sat, Oct 9, 2010 at 8:41 PM, Maciej Stachowiak <mjs@apple.com> wrote:

>
> On Oct 9, 2010, at 2:46 PM, Greg Wilkins wrote:
>
> >
> > With regards to my null trial - I agree that such "surveys" (specially
> > with a sample size of 1) are not really indicative, only somewhat
> > informative.      However, I do think we need to analyse our framing
> > from the perspective of could WS frames be mistaken for HTTP requests.
>
> If we encrypt the connection, as in Adam and Eric's proposal, or as
> suggested earlier by me, then such an analysis is not required. From the
> attacker's perspective, every frame they send would look like random bytes.
> It would not be possible to control the bytes to look like an HTTP message.
> Conversely it would also be impossible to make a chosen HTTP message body
> look like WebSocket frames.
>
> If the attacker is unable to send specific chosen bytes as a message frame,
> that is a much stronger defense against cross-protocol attacks than relying
> on a coincidence of valid message frames not looking like an HTTP request.
> Or at least, it is easier to have a high degree of confidence in the
> analysis.
>
> I note in passing that this defense is somewhat independent of whether to
> use a CONNECT-based or Upgrade-based handshake.
>
> Regards,
> Maciej
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>