Re: Set-Cookie and commas in extension attributes

Julian Reschke <julian.reschke@gmx.de> Fri, 15 January 2021 06:36 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 63CB53A0D25 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 14 Jan 2021 22:36:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.914
X-Spam-Level:
X-Spam-Status: No, score=-2.914 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.248, MAILING_LIST_MULTI=-1, NICE_REPLY_A=-0.262, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gmx.net
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 M0k5c-AbV5bW for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 14 Jan 2021 22:36:11 -0800 (PST)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2818C3A0D24 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 14 Jan 2021 22:36:10 -0800 (PST)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1l0IgQ-0008S3-On for ietf-http-wg-dist@listhub.w3.org; Fri, 15 Jan 2021 06:34:06 +0000
Resent-Date: Fri, 15 Jan 2021 06:34:06 +0000
Resent-Message-Id: <E1l0IgQ-0008S3-On@lyra.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <julian.reschke@gmx.de>) id 1l0IgP-0008Pu-Kq for ietf-http-wg@listhub.w3.org; Fri, 15 Jan 2021 06:34:05 +0000
Received: from mout.gmx.net ([212.227.17.22]) by mimas.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <julian.reschke@gmx.de>) id 1l0IgN-0000Pm-T0 for ietf-http-wg@w3.org; Fri, 15 Jan 2021 06:34:05 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1610692431; bh=4qJ0ZFq/QGyrHLonyrKzm6i8D+ZY/lAx9qEfmdNDnbQ=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=P3UQ00kaM3XXewONCYKkPpygMgZeqjD7y139oSmNZpNV9+bkHY0qTMe1Blk4a7Px1 RXvm7kmaAIv4v8jeQzeAYbNcewo2+RxCr+8Z7BHpYOMNIuvtGAW6hJ6NAKrcB5S+D8 SQySCBiZb9tnDLC1uziIMJhw20F4rU9+F+yuzR1I=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.178.182] ([91.61.61.86]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M7sDq-1l5EMf33ju-0054jg for <ietf-http-wg@w3.org>; Fri, 15 Jan 2021 07:33:51 +0100
To: ietf-http-wg@w3.org
References: <d0db0447-1665-4d7c-90a0-9bcd2c5afc86@www.fastmail.com>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <fd19b134-3787-f466-acc8-4c8803cae4e9@gmx.de>
Date: Fri, 15 Jan 2021 07:33:51 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1
MIME-Version: 1.0
In-Reply-To: <d0db0447-1665-4d7c-90a0-9bcd2c5afc86@www.fastmail.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:8dgb3C169l/enP/s0nXtHyKUTCog8qnecdLJrev5ad1i3AbqV6I brlvv5oX7UYzZBZKMZqEbcU2NB2y22/n/vCph7zdBJIwKVAujYJUkAJrP/y0UaoYVrAGqFO v24hqg4SshmER0lud8cueVYF081wgOy0zAHM60kuVNRzwpT0RJ4xbFONGWmqoyoP2xSmzUp CX8DI/TdbYlvUNEYBJa7w==
X-UI-Out-Filterresults: notjunk:1;V03:K0:+idMYRmM1Jc=:TQlp1FhtsJy7osj1eGxOO7 2si2jiLlUfY7qIL3yRtchF8Sjb2GAPRiIsi0Ujwhl80o3Of3hYkfUelHO1/jYbr706faCUqzG rFIPeUctBFfycXIVHPEdMyBcSGqOmO9UXjEHlmuXz4pE1oN2UQf8wzGuBBGuDR93MkI8HTx4j 3mY7sbfN80oq2LZQ2T1kJgDc2FEhKRHUlIb3E1Kpp1ykytpULAMyUbmUbfZi4tc+7UiSG4nYH pCEru4OjQjQFrDpnG3Yd0MpvF487uBKCHecmEJJTrILwQ9uafGZOjECNfoWQRNyMfE7Ap8Xb6 JxagEzKqkpn/FsPw3xuALVJHV6XNOoRf41jdzFlR1/M8qrbXbE13ef+fWUcOFCoce2LT1Sti9 x68b/eJIApHERVAwY1Rrhp8txAqyPH8Fo0oxRYR3lL6WFqGyQZBja4NbPgwCF65LFlPjf2w06 SpaGRK2GeBmBYt2YAncScIUkXVaLMVbXvlJK1PuG9iUKNf6QnDYwZLA7J8H3s6D1AQ5cl8Wd0 Yx4EsCBQpAbwGJxS6NShaLMaDZKF4CfYS0e72Ju27atvNeuGACFEXcm3lKxRN9UPmF/GzuwsE wVfk/3vGJQA+mvL2v1UpVs8GXzjGZejV23sKxxwWFYHWVWtbUB8NbFzvFvxdvl6uA5ZLuYCso JIJtNfjAxt0+IrreE1Olh31Bl1z/Wcq42EAKiYtmCB7YH+tLccinwh2163A2qrzV5I4fwIWpJ w0mbr0+Ba2ArYLTdgz4CHIyxCWimCoBLJ4wRNQ+TdNcl3NWIVlx2V6vcC9RciDj4Ka3aTg8LV IDFxVQyc0Walo+2d5WzcvAAmMN4tD2lGL1jH/NFcxdLI/kHCvimSTDx2DUwtNjqAvdXxucHoY Be7PVAtlCImays67Rr0g==
Received-SPF: pass client-ip=212.227.17.22; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-5.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.237, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1l0IgN-0000Pm-T0 57077dd43606fc70902ce9eb11f78764
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Set-Cookie and commas in extension attributes
Archived-At: <https://www.w3.org/mid/fd19b134-3787-f466-acc8-4c8803cae4e9@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/38378
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: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Am 15.01.2021 um 06:47 schrieb Martin Thomson:
> Just confirming this, but it appears as though comma is a valid character in an extension to Set-Cookie.  What happens if an intermediary combines two Set-Cookie header fields as permitted by the core specification[1]?
>
> [1] https://httpwg.org/http-core/draft-ietf-httpbis-semantics-latest.html#field.lines

The core specs already say not do that, but maybe rfc6265bis should
point that out as well.

Best regards, Julian