Re: 2.2. Interaction with "https" URIs | Re: Op-sec simplification

Erik Nygren <erik@nygren.org> Wed, 02 November 2016 20:07 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C56A61298AF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 2 Nov 2016 13:07:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.397
X-Spam-Level:
X-Spam-Status: No, score=-8.397 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-1.497, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KvYd9b7_hZXU for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 2 Nov 2016 13:07:43 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C0F021298A9 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 2 Nov 2016 13:07:43 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1c21kj-0007Aq-IC for ietf-http-wg-dist@listhub.w3.org; Wed, 02 Nov 2016 20:03:17 +0000
Resent-Date: Wed, 02 Nov 2016 20:03:17 +0000
Resent-Message-Id: <E1c21kj-0007Aq-IC@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <nygren@gmail.com>) id 1c21ke-00077l-8Y for ietf-http-wg@listhub.w3.org; Wed, 02 Nov 2016 20:03:12 +0000
Received: from mail-yw0-f176.google.com ([209.85.161.176]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <nygren@gmail.com>) id 1c21kX-0003Fp-Q7 for ietf-http-wg@w3.org; Wed, 02 Nov 2016 20:03:06 +0000
Received: by mail-yw0-f176.google.com with SMTP id t125so22649853ywc.1 for <ietf-http-wg@w3.org>; Wed, 02 Nov 2016 13:02:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=+ZKWwlWeHou/jbDU1jBOMdNat3xhxhiU33TH86OeXmg=; b=KTtfU9y8sNM/1xdheMy1an6IOUsTqNzUaMgmy2s/1qukkTzAfzVgFmlOPkSXW4VUQT 9V2/ut5s8eQKQrRRFAPsYJyULri8nnAqdbR0Ab0X2wb2E0uRHlObe02VbygkHC84NAmO 1MqLzuVpjg5bsPaw8S1r78G8/fealPUWeobxiOnbUn9DyXeRtg2N9LEJbBA3qD/xOBp4 9KActCKcdv1vHehJjp1tECY4j/2hK5igAV7jw4Zh3bup/wRwUeI3mZ1sRjXzcjuBntqp Ds1tfNnEh6CGywbN72UxerfWG9wPTPAyUQZj6S99aC7udUAvwiMWHhbOHRodMb+iX6wU hp6g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=+ZKWwlWeHou/jbDU1jBOMdNat3xhxhiU33TH86OeXmg=; b=XdL60O59f5OwRBI+0PmolstDESct+WbXcBHRlmRaKY1OlF+oDH/ctRZB+IqRjETsZI R7d8r2QrL2Xu9tjursmlFBb3s0YKSh9GLOtXdinb3Tao2cNpcSB1tUXlNl+WCGjYoYw7 QxVoMOcKp0k/hlhusr9L6/2v7/3dt1rbHSGEIXT3kGQ0KKGLMZe0dz+PyYhYHZd74UuG neYnGCTgFKcfsogH5eb/76UBuiYqlUkNK+58J8i5tw3oF4AmzFkMULi4cJrfn8Fwnfte nnrCnaPNBkK2r+DWg1zwmKaO54cwE+GAV9Cwt7RcItrswZOH/ckp7n9DmzPm7aT5DrwL BMMg==
X-Gm-Message-State: ABUngvcYtUe+8hiFWlyRUGXXZtYf3/DJHbbZwr3bQdJhw1av7D7S3p9NRXA+ZF9/hJYV31T9kJDpGPKqWQvltA==
X-Received: by 10.36.30.204 with SMTP id 195mr3976657itt.90.1478116959628; Wed, 02 Nov 2016 13:02:39 -0700 (PDT)
MIME-Version: 1.0
Sender: nygren@gmail.com
Received: by 10.107.141.23 with HTTP; Wed, 2 Nov 2016 13:02:38 -0700 (PDT)
In-Reply-To: <CABkgnnUL+AJEi=92K95f22vrx17Rmm0j1rEahhwu-my3DPcEwA@mail.gmail.com>
References: <20161031053239.E9C6D12F5D@welho-filter3.welho.com> <20161101172202.BE19F12310@welho-filter1.welho.com> <CABkgnnWhcp_tVx9M9FTOdSF-U5EoAzdNNVZaYzjdxUGhHydX7w@mail.gmail.com> <201611020548.uA25m4Wm026906@shell.siilo.fmi.fi> <CABkgnnUL+AJEi=92K95f22vrx17Rmm0j1rEahhwu-my3DPcEwA@mail.gmail.com>
From: Erik Nygren <erik@nygren.org>
Date: Wed, 02 Nov 2016 16:02:38 -0400
X-Google-Sender-Auth: Y1HdevtAmQNu1Wfr1dBgy2QQ1NE
Message-ID: <CAKC-DJiGp3g26nDZJg4tor4B7-om+BZZp=Hgp4JXNik_ibDPkQ@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Kari Hurtta <hurtta-ietf@elmme-mailer.org>, HTTP working group mailing list <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a1144847450b464054056eced"
Received-SPF: pass client-ip=209.85.161.176; envelope-from=nygren@gmail.com; helo=mail-yw0-f176.google.com
X-W3C-Hub-Spam-Status: No, score=-4.9
X-W3C-Hub-Spam-Report: AWL=-1.028, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1c21kX-0003Fp-Q7 4be4a6bfb705d98845bced77cd259f96
X-Original-To: ietf-http-wg@w3.org
Subject: Re: 2.2. Interaction with "https" URIs | Re: Op-sec simplification
Archived-At: <http://www.w3.org/mid/CAKC-DJiGp3g26nDZJg4tor4B7-om+BZZp=Hgp4JXNik_ibDPkQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32820
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, Nov 2, 2016 at 2:13 AM, Martin Thomson <martin.thomson@gmail.com>
wrote:

> On 2 November 2016 at 16:48, Kari Hurtta <hurtta-ietf@elmme-mailer.org>
> wrote:
> > In these cases on these bad examples that http: -probe determined
> > routing.  I guess that bad examples are NOT concern for op-sec, but it
> > may be concern for browser (some secure cookie is then served
> > to http: -routing for example when broser sent it to for
> > https: -scheme).
>
> I'm willing to say that (contrary to previously-held opinions), that
> this is a risk that is worth taking.  If we find that the probe
> triggers a bad route AND that bad route responds favourably to that
> probe, THEN we have to assume that the bad route is smart enough to
> handle requests with a slightly odd scheme.
>

It's not just the "confusion" factor.  There are other reasons why a server
operator may not want mixed-scheme (ie, mixed origin) on the same
connection.  Clients must at least expect that a server will 421 for
mixed-scheme on a connection, and the perf impact and bug risk from this
could be a blocker to some using Opp Sec.

An example of why this could be bad would be a CDN server that terminates
both HTTP and HTTPS over TLS but demuxes them such that HTTPS requires TLS
to content origin but HTTP is allowed to go cleartext to content origin.
When a single TLS connection demuxes to a mixture of TLS and cleartext
traffic, this feels like asking for increased trouble and attack surfaces.
Prohibiting mixed-scheme on the incoming connection makes this feel much
safer.

Another example would be client cert authentication for HTTPS requests
against a TLS connection.  Having these also apply to HTTP requests feels
"weird" somehow (and could be another attack surface).

      Erik