Set-Cookie and commas in extension attributes

Martin Thomson <mt@lowentropy.net> Fri, 15 January 2021 05:50 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 51D713A0CD5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 14 Jan 2021 21:50:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.752
X-Spam-Level:
X-Spam-Status: No, score=-7.752 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.248, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=lowentropy.net header.b=TfmYkmDL; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=EMoI6TIZ
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 JuJKqHEymObM for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 14 Jan 2021 21:50:16 -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 A7F263A0CD4 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 14 Jan 2021 21:50:16 -0800 (PST)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1l0HxW-0005ww-SI for ietf-http-wg-dist@listhub.w3.org; Fri, 15 Jan 2021 05:47:42 +0000
Resent-Date: Fri, 15 Jan 2021 05:47:42 +0000
Resent-Message-Id: <E1l0HxW-0005ww-SI@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 <mt@lowentropy.net>) id 1l0HxV-0005w9-Sg for ietf-http-wg@listhub.w3.org; Fri, 15 Jan 2021 05:47:41 +0000
Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <mt@lowentropy.net>) id 1l0HxT-0007pt-MA for ietf-http-wg@w3.org; Fri, 15 Jan 2021 05:47:41 +0000
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 053E75C00FD for <ietf-http-wg@w3.org>; Fri, 15 Jan 2021 00:47:29 -0500 (EST)
Received: from imap10 ([10.202.2.60]) by compute1.internal (MEProxy); Fri, 15 Jan 2021 00:47:29 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lowentropy.net; h=mime-version:message-id:date:from:to:subject:content-type; s= fm1; bh=PcPx2I2vi8QBypm47kxHPtFLLy9UGyxEXYQbsy1aCcc=; b=TfmYkmDL z0AUxQWoC64+qGb7L2dG42JY94BOu2rSSpkhb+YUOqDWXHKuP664O4PMBuXyK0V6 q2Go/3wlPlSJ3XdIUDzwfpNEFOGu1VScLOQEqyXH2C2bv38uunp5/HnACZFD+0Zw YH62X6Dr+Y0piisnCOA0yjoKbk3yhZqNCsDhXkZCFwr35xaZ1ZZOBDkOIIxSUxxN VlVfniQqMU6yhJpETqUPCDYIb389JnoXKVh74QlIQndaHaoqyIuyJZhOrWnl+xeq uVHpZC7HKbqbjJvQ1bpYqu/UFCQQsDOxhfofK8T/BH0mjuWrKEFDhPl7CFOx6D5n 1Ny3sOtIAnWegQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=PcPx2I2vi8QBypm47kxHPtFLLy9UG yxEXYQbsy1aCcc=; b=EMoI6TIZh4+a6PL1j/E1aOawJTU6TUrDdWSRaizZhu+YX szMELaz/4/Py7iPbgsiyzD+sBfUQ4/N0dVNNaDz2z3ylbNKv167+4QfRk5kv8O0e t3TFjDzYumMJrt5AJm6w0ZgJZsKFVnC2aZnqRPkuYsixJ075D2+1d3C1j7/VhD4e hIwDLkfT3jYQaZuld8nd4uyrGIBKEFBIhocvEGywbXIpUFGMsZmm3zygN21jq+Qe S703QlUMFQbcpRwJMs1JKArBYX4oE5NQDkX8knyVxdClzD6OSUa55eVqkIlDTvRh GxGYmKtefENB01cnOKjq8/ZRcdY+ZGezkD6OH/37g==
X-ME-Sender: <xms:cCwBYL_YbQT-SWOmZmtRpGgC1L6zTAmoSUqcDNHM42KHkv0LUzyhfQ> <xme:cCwBYHv_ik0pUV45AHT2z-PiIdCHLy9-dMi3dtOBhTKY0ncCV0kTpaqQwNYEpkKXi Xs5jGikSWjfkdQcosw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrtddugdekjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesthdtredtre ertdenucfhrhhomhepfdforghrthhinhcuvfhhohhmshhonhdfuceomhhtsehlohifvghn thhrohhphidrnhgvtheqnecuggftrfgrthhtvghrnheptdduledujeelueeikefhteeihf fgkeeghedtgfdttdejuefhhfevieejhfelvdevnecuffhomhgrihhnpehhthhtphifghdr ohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hmtheslhhofigvnhhtrhhophihrdhnvght
X-ME-Proxy: <xmx:cCwBYJChewx1aePihGo_ByAmr5hnluY0vldTSZ2kLXaaM9JVUuBA2Q> <xmx:cCwBYHeWbnlDNzvprc3Hzar5fALjx3TIO0e6697llDWgyuzf5VSOWA> <xmx:cCwBYAO_PDO2pMRgAnvIxMDvCT-K32nn4Y-pfU5RIRLsSJ89CWdZkQ> <xmx:cSwBYGb8skytCoKMqXHKUXpmbIknhxzAfmQQsnbpe34zIuc3mXv5iQ>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9E09F20209; Fri, 15 Jan 2021 00:47:28 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.5.0-alpha0-45-g4839256-fm-20210104.001-g48392560
Mime-Version: 1.0
Message-Id: <d0db0447-1665-4d7c-90a0-9bcd2c5afc86@www.fastmail.com>
Date: Fri, 15 Jan 2021 16:47:09 +1100
From: Martin Thomson <mt@lowentropy.net>
To: ietf-http-wg@w3.org
Content-Type: text/plain
Received-SPF: pass client-ip=66.111.4.25; envelope-from=mt@lowentropy.net; helo=out1-smtp.messagingengine.com
X-W3C-Hub-Spam-Status: No, score=-6.8
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1l0HxT-0007pt-MA 9dc0e7af007c4c9d5bbd8246313605de
X-Original-To: ietf-http-wg@w3.org
Subject: Set-Cookie and commas in extension attributes
Archived-At: <https://www.w3.org/mid/d0db0447-1665-4d7c-90a0-9bcd2c5afc86@www.fastmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/38375
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>

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