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

Bjoern Hoehrmann <derhoermi@gmx.net> Sun, 10 October 2010 01:21 UTC

Return-Path: <derhoermi@gmx.net>
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 1F87A3A68F0 for <hybi@core3.amsl.com>; Sat, 9 Oct 2010 18:21:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.81
X-Spam-Level:
X-Spam-Status: No, score=-2.81 tagged_above=-999 required=5 tests=[AWL=-0.211, 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 y+Srn403vIPv for <hybi@core3.amsl.com>; Sat, 9 Oct 2010 18:21:41 -0700 (PDT)
Received: from mail.gmx.net (mailout-de.gmx.net [213.165.64.23]) by core3.amsl.com (Postfix) with SMTP id 7787C3A68D1 for <hybi@ietf.org>; Sat, 9 Oct 2010 18:21:40 -0700 (PDT)
Received: (qmail invoked by alias); 10 Oct 2010 01:22:47 -0000
Received: from dslb-094-223-184-138.pools.arcor-ip.net (EHLO hive) [94.223.184.138] by mail.gmx.net (mp011) with SMTP; 10 Oct 2010 03:22:47 +0200
X-Authenticated: #723575
X-Provags-ID: V01U2FsdGVkX186L1IJsu0634LtBKZdBALy4ctbO0n22imBeMvaXt Kt4YAJZ2NlGttq
From: Bjoern Hoehrmann <derhoermi@gmx.net>
To: Scott Ferguson <ferg@caucho.com>
Date: Sun, 10 Oct 2010 03:22:44 +0200
Message-ID: <6o32b65n4kjrueo7e5fb1n9n3m2g7lfg5r@hive.bjoern.hoehrmann.de>
References: <4CAFA043.10101@caucho.com> <AANLkTi=eo-cjBz160FN0cn53v4-CpDSYaEneqkr_ZP7k@mail.gmail.com> <AANLkTi=B1rGBgi4jYZ_TqX9Qt1xtXoyneZtztnLOkW6b@mail.gmail.com> <4CAFBD75.4020004@caucho.com> <r7gva6tv01olonop6co9ftn63dlqmhnts3@hive.bjoern.hoehrmann.de> <4CB0915A.1030400@caucho.com> <at41b6tsldo70ddhkokv8laoie5m99p35s@hive.bjoern.hoehrmann.de> <4CB0A27D.9000307@caucho.com> <m2c1b6dkeesdbh66no4hdfn86mhkq1mfiv@hive.bjoern.hoehrmann.de> <4CB10E6D.8000706@caucho.com>
In-Reply-To: <4CB10E6D.8000706@caucho.com>
X-Mailer: Forte Agent 3.3/32.846
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Y-GMX-Trusted: 0
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: Sun, 10 Oct 2010 01:21:43 -0000

* Scott Ferguson wrote:
>To sum up, the following are required for the attack to work:
>
> 1. the attacker has an account on the same physical/virtual machine as 
>the target server
> 2. the attacker has hijacked a browser inside the target's office IP 
>2.2.2.*
> 3. the target restricts access to the office IP 2.2.2.*
> 4. the target is too cheap to pay $11/month for a virtual instance for 
>security
> 5. the ISP is too lazy to add <Limit WEBSOCKET>
> 6. the target has an open DELETE method with no authentication

Well, points 1, 5, and 6 are not quite correct. For 1, both hosts must
be behind the same IP address, how they achieve that is irrelevant. It's
perfectly possible to run them on mutually disconnected machines. For 5,
if the ISP blocks WEBSOCKET requests, that means none of the sites it is
hosting can do Websocket over port 80. If it allows it for some then the
protection is meaningless, as the WEBSOCKET request goes to the attacker
(and similarily on point 6, the DELETE request goes to the attacker). I
do not quite understand point 4, but I agree you need 2 and 3, where to
hijack a browser it is sufficient to trick someone on the office network
to open a specific web page.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/