Re: Issue #356: Form-encode Expect-CT report bodies?

Martin Thomson <martin.thomson@gmail.com> Fri, 09 June 2017 15:04 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 80EDC126D74 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 9 Jun 2017 08:04:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.502
X-Spam-Level:
X-Spam-Status: No, score=-6.502 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-0.001, 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 Z_oZUpL4boVS for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 9 Jun 2017 08:04:40 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 257A8126E3A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 9 Jun 2017 08:04:40 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.84_2) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1dJLQT-0007ab-Gs for ietf-http-wg-dist@listhub.w3.org; Fri, 09 Jun 2017 15:02:13 +0000
Resent-Date: Fri, 09 Jun 2017 15:02:13 +0000
Resent-Message-Id: <E1dJLQT-0007ab-Gs@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1dJLQH-0007ZG-Ae for ietf-http-wg@listhub.w3.org; Fri, 09 Jun 2017 15:02:01 +0000
Received: from mail-lf0-f42.google.com ([209.85.215.42]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1dJLQA-0001eD-UD for ietf-http-wg@w3.org; Fri, 09 Jun 2017 15:01:56 +0000
Received: by mail-lf0-f42.google.com with SMTP id o83so30861969lff.3 for <ietf-http-wg@w3.org>; Fri, 09 Jun 2017 08:01:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=SbhLjLoGzwcCQE8kzZ3+Ioen7XkAzQrT5+IPmp88x7g=; b=PpHyNuUDeW5FZ2jLPOTHc+IsW1N6Qb64Su+fU8hizPooSYZCSLnX8a3jGRtuY6/qyh LW0KLZfmvcY/mUxKKZviCgfx6NOJ+G+bcjiy4oZp9AoaK1JoFH2sjcAVY/6J3Ki8Q+Us keKrPZ1JvLUFpNdinT2baHtbI6k0aWxgBRfz5Gq24ufHuLNSpQ303MxGoo1QasFvB45m ZVvuhHCNq5tunegHbNkIaVhPkzRFpk0OgPqylpnvH46Syv9qvezpNm+K95egAL9RszsP VRw5zRnV9azIYD0EXyqcQ5+jxiiEpK2hIlCnRcp7tRSAFvjFlSsja20s+VG50sKzYVTH L3xQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=SbhLjLoGzwcCQE8kzZ3+Ioen7XkAzQrT5+IPmp88x7g=; b=gAfU21P7Z506P9w6g6U9KcHHlE/vsCo5td4DCeL78vBUXJYvLcvauHNO1UgC/rkh79 XjOhGa4whiIhNya8Nnn+NxKAA0LHZ8Ti/t5CXpGSQ9lvQ1uruOobWbpPLjKA6oW94417 QTOlsMyahlJuoiS9iHq8gBahGLZVyO1bi5sDpmzqhmY2vNDAjWyYPI/g73V22muMapeA jjbddRTPtHOArzp2owOX/5efVsUqW0QDvjeYJhNUtVB0D+X+zkhitKVSqvphy5K9ZyJZ l61CR7dfvM8nS1U3rOoLYdFYZqfZCt38xUHXT0kL3EworSosXQhWWePmQGFofJ6AicYs Kfow==
X-Gm-Message-State: AODbwcDYc/ZF3XsWQwW+3tt+Rk6M6R5ZmLv4ZVzulwNVucWSQ0R5WsoV oskuR+1X9CkTQDeJkOW0pclnZqMViQ==
X-Received: by 10.25.201.18 with SMTP id z18mr9903418lff.172.1497020486678; Fri, 09 Jun 2017 08:01:26 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.46.8.66 with HTTP; Fri, 9 Jun 2017 08:01:26 -0700 (PDT)
In-Reply-To: <CAPP_2Sa7b3XTgFE0VcF7-ffxYMOuhR8vHTROL88RDus4foP8CA@mail.gmail.com>
References: <CAPP_2Sa+6eSAChgp8KrzabPJUkMmiKBhWp1dFhS0zOVnXrenLw@mail.gmail.com> <CAOdDvNoStrOu=SSZJrKMsQFjG2YVtiLqMdvXP_1PKJ_a+58Mfw@mail.gmail.com> <CABkgnnUVYB1Dqh4efe25bKx=-2iOBXHZg=3fgXjvbRn28b6nuw@mail.gmail.com> <CAOdDvNqquZymrmE3i3DFfdgVUuq-iWxr0+jvO3AF0NymnJK9Zg@mail.gmail.com> <CAPP_2SYNkReoDOjRKdEWtrP=ZGhPO2mKCoQm9Pm7LjcNLyoC+Q@mail.gmail.com> <CAPP_2SYLpKBo-rWV4oMG7V3FeN4aZ7fZEOdFgwFC8ASmFKmvqA@mail.gmail.com> <CABkgnnWU09-kV8gAu6xZV7n-rvrmL6R98EzA7O7nxTjBMFntpQ@mail.gmail.com> <CAPP_2Sa7b3XTgFE0VcF7-ffxYMOuhR8vHTROL88RDus4foP8CA@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Fri, 09 Jun 2017 17:01:26 +0200
Message-ID: <CABkgnnU-c4FbBNGz4V-jpO-Rwc5Evy7DFzmBdsT0xkZFv+Drxg@mail.gmail.com>
To: Emily Stark <estark@google.com>
Cc: Patrick McManus <mcmanus@ducksong.com>, httpbis <ietf-http-wg@w3.org>, Anne van Kesteren <annevk@annevk.nl>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.215.42; envelope-from=martin.thomson@gmail.com; helo=mail-lf0-f42.google.com
X-W3C-Hub-Spam-Status: No, score=-6.0
X-W3C-Hub-Spam-Report: AWL=0.041, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=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_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1dJLQA-0001eD-UD 104dc9e6b2dcebdbdc3b1a2cf571bb8a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Issue #356: Form-encode Expect-CT report bodies?
Archived-At: <http://www.w3.org/mid/CABkgnnU-c4FbBNGz4V-jpO-Rwc5Evy7DFzmBdsT0xkZFv+Drxg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33973
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 9 June 2017 at 16:53, Emily Stark <estark@google.com> wrote:
> CSP reporting isn't added to the CORS whitelist. It's been in violation of
> CORS for years and there are some vague plans to fix it by sending
> preflights, but adding it to the whitelist hasn't really been discussed.
> Anne has said that he prefers not to add more to the whitelist, which I
> think is a reasonable stance. (see
> https://lists.w3.org/Archives/Public/public-webappsec/2017Feb/0009.html --
> though to be fair, the same text/plain idea is rejected in that thread as
> well)
>
> In addition to the fact that there's not really any principled reason for
> expanding the whitelist, it would mean that, say, an XHR can send the new
> header value, which shouldn't really be allowed.

Ahh, I remembered that discussion, but failed to get that critical
detail.  My point is that if you want to avoid a preflight, then make
sure that you have an analysis to back it up, don't just dodge the
issue by using a whitelisted MIME type.

If that means using a preflight, then great.  If we go back to first
principles, the "POST to intranet site" case would seem to suggest
that some preflighting is warranted.

Ultimately, I want the same answer for this and for CSP reports.  I
would rather not add this to the pile of violating mechanisms though.