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

Scott Ferguson <ferg@caucho.com> Wed, 06 October 2010 01:29 UTC

Return-Path: <ferg@caucho.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 591E93A6D27 for <hybi@core3.amsl.com>; Tue, 5 Oct 2010 18:29:20 -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 mcdaqqHcsnTc for <hybi@core3.amsl.com>; Tue, 5 Oct 2010 18:29:18 -0700 (PDT)
Received: from n14.bullet.mail.mud.yahoo.com (n14.bullet.mail.mud.yahoo.com [68.142.206.41]) by core3.amsl.com (Postfix) with SMTP id 2EA0E3A6C73 for <hybi@ietf.org>; Tue, 5 Oct 2010 18:29:17 -0700 (PDT)
Received: from [68.142.200.221] by n14.bullet.mail.mud.yahoo.com with NNFMP; 06 Oct 2010 01:30:13 -0000
Received: from [68.142.201.245] by t9.bullet.mud.yahoo.com with NNFMP; 06 Oct 2010 01:30:13 -0000
Received: from [127.0.0.1] by omp406.mail.mud.yahoo.com with NNFMP; 06 Oct 2010 01:30:13 -0000
X-Yahoo-Newman-Id: 230677.32573.bm@omp406.mail.mud.yahoo.com
Received: (qmail 16965 invoked from network); 6 Oct 2010 01:30:13 -0000
Received: from [192.168.1.11] (ferg@66.92.8.203 with plain) by smtp111.biz.mail.mud.yahoo.com with SMTP; 05 Oct 2010 18:30:13 -0700 PDT
X-Yahoo-SMTP: L1_TBRiswBB5.MuzAo8Yf89wczFo0A2C
X-YMail-OSG: NwnK_XkVM1m4r.nZZziUfZ0nwuQsXZ5utWxPxKb7tYGWzJV qCklOy4cEZb2NYvP_wdjdzeGJ0qL3_Zxkr3pdyTeWFs1Xwpyckv7Jtp7zbGy .1Y4pkv1zYzCKPN_ZX5TT1gMwlXmXQRz1LEpHtQsbTjYquZcu7S6BEpu6yxG qKKJFli_Pt3SfQVhzqnT8lG79CLn0o8uuo4nsOSOJFoQQB8_DyZyMwgnmn4V qLb_AIt59W7IZ5nYPtnADMtffNbf1.B73SAYl4c8z_T24pqSbFHRc9EvbM9s YPW.er1duLDUI_h5tuAi6SupKixrpXQ--
X-Yahoo-Newman-Property: ymail-3
Message-ID: <4CABD11F.3060500@caucho.com>
Date: Tue, 05 Oct 2010 18:30:07 -0700
From: Scott Ferguson <ferg@caucho.com>
User-Agent: Thunderbird 2.0.0.24 (X11/20100411)
MIME-Version: 1.0
To: Adam Barth <ietf@adambarth.com>
References: <AANLkTikszM0pVE-0dpZ2kv=i=y5yzS2ekeyZxtz9N=fQ@mail.gmail.com> <4FAC5C93-9BDF-4752-AFBC-162D718397AB@apple.com> <AANLkTikcH1W3bQwumqHbe-Yqa3XdoJqCa2b-mZuvoQ7g@mail.gmail.com> <9746E847-DC8B-45A7-ADF3-2ADB9DA7F82E@apple.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>
In-Reply-To: <AANLkTi=5wbCXWpOtUQT1MndgCxt9gj6uR_3U=nONpjKc@mail.gmail.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
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
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: Wed, 06 Oct 2010 01:29:20 -0000

Adam Barth wrote:
> On Tue, Oct 5, 2010 at 6:08 PM, Scott Ferguson <ferg@caucho.com> wrote:
>   
>> Adam Barth wrote:
>>     
>>>
>> If you assume the hijacker has control of a DNS server to act as a proxy,
>> you may as well assume he has control of an actual WebSocket server to act
>> as a proxy.
>>     
>
> Huh?  That doesn't make any sense.  If you run a stock DNS server, it
> will proxy lots of information from authoritative DNS servers around
> the world.  That's the whole point of DNS.
>   

C1: Browser at 192.168.1.10 makes TCP websocket connection with local 
port 8888 to DNS server 10.0.0.1.

S2: DNS server returns DNS response to 192.168.1.10:8888 which contains 
H(c-nonce, "WebSocket") somewhere in the payload

C3: Browser notices that DNS reponse does not have the same syntax as a 
WebSocket  response, and closes the connection.

How is this an attack?

-- Scott



> Adam
>
>
>
>