Re: [hybi] I-D Action: draft-ietf-hybi-thewebsocketprotocol-13.txt

"Richard L. Barnes" <rbarnes@bbn.com> Fri, 09 September 2011 13:55 UTC

Return-Path: <rbarnes@bbn.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E7BF621F8B3E for <hybi@ietfa.amsl.com>; Fri, 9 Sep 2011 06:55:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.56
X-Spam-Level:
X-Spam-Status: No, score=-106.56 tagged_above=-999 required=5 tests=[AWL=0.039, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id knWnuSkvYV6K for <hybi@ietfa.amsl.com>; Fri, 9 Sep 2011 06:55:05 -0700 (PDT)
Received: from smtp.bbn.com (smtp.bbn.com [128.33.1.81]) by ietfa.amsl.com (Postfix) with ESMTP id 9F01D21F8AFA for <hybi@ietf.org>; Fri, 9 Sep 2011 06:54:59 -0700 (PDT)
Received: from ros-dhcp192-1-51-76.bbn.com ([192.1.51.76]:52693) by smtp.bbn.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.74 (FreeBSD)) (envelope-from <rbarnes@bbn.com>) id 1R21Za-0008Lw-Ii; Fri, 09 Sep 2011 09:56:50 -0400
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset="us-ascii"
From: "Richard L. Barnes" <rbarnes@bbn.com>
In-Reply-To: <20110908211638.GD27297@1wt.eu>
Date: Fri, 09 Sep 2011 09:56:48 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <462EDFEF-9BAF-4509-96AF-61D450FCD425@bbn.com>
References: <20110831184207.1514.64093.idtracker@ietfa.amsl.com> <0fc901cc6878$1681eec0$0a00a8c0@Venus> <CAH9hSJb2rH+fX0AnekYxsEkHKzb15aHrg_hDQw1baWLiWBF-3w@mail.gmail.com> <CA566BAEAD6B3F4E8B5C5C4F61710C11448BCD04@TK5EX14MBXW604.wingroup.windeploy.ntdev.microsoft.com> <20110908211638.GD27297@1wt.eu>
To: Willy Tarreau <w@1wt.eu>
X-Mailer: Apple Mail (2.1084)
Cc: "hybi@ietf.org" <hybi@ietf.org>, Gabriel Montenegro <Gabriel.Montenegro@microsoft.com>
Subject: Re: [hybi] I-D Action: draft-ietf-hybi-thewebsocketprotocol-13.txt
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/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: Fri, 09 Sep 2011 13:55:06 -0000

> - clients are not required to accept masked frames, so the server MUST NOT
>  send masked frames. Whether clients accept or not masked frames has no
>  importance.
> 
> - In order to ensure intermediary protection, clients MUST mask outgoing
>  frames, and servers MUST NOT accept unmasked frames.

Let's not fool ourselves that having servers reject unmasked frames does anything about intermediary protection. 

If there's a WS stack out there that an attacker can force to send unmasked frames, then the game is already over.  The attacker just connects to a server under his control that will accept the unmasked frames, and the gig is up.


> However, it would be nice if we insist that those requirements are made for
> the public internet and are not a structural protocol requirement, so they
> MAY be adapted in very specific environments if there is any benefit from
> doing so.

In which case, you might as well make it a SHOULD, with an operational note that says that c2s masking is strongly RECOMMENDED.

--Richard