[secdir] Re: Secdir telechat review of draft-ietf-httpbis-rfc6265bis-19

Valery Smyslov <valery@smyslov.net> Fri, 26 September 2025 06:34 UTC

Return-Path: <valery@smyslov.net>
X-Original-To: secdir@mail2.ietf.org
Delivered-To: secdir@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 799D8692A047; Thu, 25 Sep 2025 23:34:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.798
X-Spam-Level:
X-Spam-Status: No, score=-2.798 tagged_above=-999 required=5 tests=[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_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=smyslov.net
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C-SWqmWMI2zy; Thu, 25 Sep 2025 23:34:46 -0700 (PDT)
Received: from direct.host-care.com (direct.host-care.com [198.136.54.115]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id B4D60692A037; Thu, 25 Sep 2025 23:34:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smyslov.net ; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:Subject:In-Reply-To:References:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=UOlQtOLRVyZ3nxWGOpoDrLpO9dhORjMXlYQWcMdXjX4=; b=xJtEGs3aHkwO2GrhNdKKomkxp3 FzywHwJQKPH3u0Gnl9ZQNmGxt8GoHuMCZZt/c+oO8fumRbB9AIQshM2f/jlJYXCnoty0N2NShGS0h XUXKGpqYgV34AvHAnm0x4UWZBNfMMOU3HYp6t9j1BKLPR8oGu/pO041V3IqJ7+bqWXeQnkbhOqrAf rlYXC9SWJqT0qbfzB/XzswEKYcN3mau5wrjF/W0mrIEfe3bUp9p/DTcFCrsbEMIr7KBvOwr6giz7E u8dflUUv6UkytKv18wQ3wfdDyM2FocCI23ec8FDwC3euSIpAeq3UC/ZdDVH0ZsEaaErVs+fHyrXBi A2VPbICg==;
Received: from [93.188.44.204] (port=64784 helo=BuildPC) by direct.host-care.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from <valery@smyslov.net>) id 1v222O-0007K0-3L; Fri, 26 Sep 2025 02:34:36 -0400
From: Valery Smyslov <valery@smyslov.net>
To: 'Steven Bingler' <bingler@chromium.org>
References: <173928072730.554181.11643604175051228621@dt-datatracker-75c44cbbdf-pxnd6> <0b1901dc2890$d0e2abf0$72a803d0$@smyslov.net> <CAKvzGWeU=c8w1-gOzNsKPdgNvxHXNgEa86Yubep=b54LbMUzBg@mail.gmail.com>
In-Reply-To: <CAKvzGWeU=c8w1-gOzNsKPdgNvxHXNgEa86Yubep=b54LbMUzBg@mail.gmail.com>
Date: Fri, 26 Sep 2025 09:34:33 +0300
Message-ID: <123901dc2eaf$a0ed8f30$e2c8ad90$@smyslov.net>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Outlook 16.0
Content-Language: ru
Thread-Index: AQFcxNKZV7raJ9qIR8PhXu9PCb9WbQGix608AXrs4gu1iuW6UA==
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - direct.host-care.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - smyslov.net
X-Get-Message-Sender-Via: direct.host-care.com: authenticated_id: valery@smyslov.net
X-Authenticated-Sender: direct.host-care.com: valery@smyslov.net
Message-ID-Hash: BDWMVQMDHCWVG5NT2GLIH6CWF7GGQ3TB
X-Message-ID-Hash: BDWMVQMDHCWVG5NT2GLIH6CWF7GGQ3TB
X-MailFrom: valery@smyslov.net
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-secdir.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: secdir@ietf.org, draft-ietf-httpbis-rfc6265bis.all@ietf.org, ietf-http-wg@w3.org, last-call@ietf.org
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [secdir] Re: Secdir telechat review of draft-ietf-httpbis-rfc6265bis-19
List-Id: Security Area Directorate <secdir.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/secdir/YfGrFAmRYr7uTTXg1AI2Sp-fKOk>
List-Archive: <https://mailarchive.ietf.org/arch/browse/secdir>
List-Help: <mailto:secdir-request@ietf.org?subject=help>
List-Owner: <mailto:secdir-owner@ietf.org>
List-Post: <mailto:secdir@ietf.org>
List-Subscribe: <mailto:secdir-join@ietf.org>
List-Unsubscribe: <mailto:secdir-leave@ietf.org>

Hi Steven,

> Hi Valery,
> 
> > It seems that Steven responded to my review, but forgot to include CC:secdir@ietf.org
> 
> Yes, my mistake.
> 
> > I still have issue with the following sentence (In the Overview section of Security Considerations):
> 
> I'd prefer to keep this text because it sets up the later sections
> which go into greater detail.
> 
> I have a PR with my proposed change, please take a look and let me
> know if it resolves your concern:
> https://github.com/httpwg/http-extensions/pull/3256

This explanation is helpful, thank you.
I just wonder whether "must" should be "MUST" in the sentence:

    This means that
    a cookie must explicitly specify any protective attributes.

If this is not a requirement (in RFC 2119 sense) then I suggest
to change it to "has to" or "needs" so that no such questions arise.

Regards,
Valery.

> - Steven
> 
> On Fri, Sep 19, 2025 at 11:21 AM Valery Smyslov <valery@smyslov.net> wrote:
> >
> > [It seems that Steven responded to my review, but forgot to include CC:secdir@ietf.org
> > and I didn't see the response until Deb has pointed me out to it:
> > https://mailarchive.ietf.org/arch/msg/httpbisa/BaKETLBU05ID_DOOl87ZCwqTZzE/ ]
> >
> > Hi Steven,
> >
> > thank you for addressing my concerns. I used the following two links from your message to evaluate
> > changes in the document (I don't know if new I-D is published):
> >
> > https://github.com/httpwg/http-extensions/commit/4b5c5242984434dcbea153247ec7f7d9a509d0c9
> > https://github.com/httpwg/http-extensions/commit/f9881b3290e3edf7faeff933c8a49b0966285c55
> >
> > I still have issue with the following sentence (In the Overview section of Security Considerations):
> >
> > "In addition, by default, cookies do not provide confidentiality or integrity from network attackers, even when
> used in conjunction with HTTPS."
> >
> > I think that it should either be elaborated (what "default" do you mean? does it mean that cookies are secure for
> "non-default" and how to reach it?
> > "in addition" to what, given that previous text states basically the same - weak confidentiality and weak integrity
> of cookie?) or deleted.
> >
> > My other concerns are either addressed or explained.
> >
> > Regards,
> > Valery.
> >
> >
> > > -----Original Message-----
> > > From: Valery Smyslov via Datatracker <noreply@ietf.org>
> > > Sent: Tuesday, February 11, 2025 4:32 PM
> > > To: secdir@ietf.org
> > > Cc: draft-ietf-httpbis-rfc6265bis.all@ietf.org; ietf-http-wg@w3.org; last-call@ietf.org
> > > Subject: [secdir] Secdir telechat review of draft-ietf-httpbis-rfc6265bis-19
> > >
> > > Reviewer: Valery Smyslov
> > > Review result: Has Nits
> > >
> > > I have reviewed this document as part of the security directorate's ongoing
> > > effort to review all IETF documents being processed by the IESG.  These
> > > comments were written primarily for the benefit of the security area directors.
> > > Document editors and WG chairs should treat these comments just like any other
> > > last call comments.
> > >
> > > This document defines the HTTP cookie protocol. The document is well written
> > > and easy to read.
> > >
> > > The Security Considerations section is mostly taken intact from RFC 6265
> > > (except that considerations for newly introduced SameSite cookies are added),
> > > and only overviews "a few of the more salient issues". This is a bit
> > > disappointing, I would have expected that more considerations are added based
> > > on 14 years experience since RFC 6265 was published. However, I understand that
> > > the list of security considerations would have been very long and still hardly
> > > complete. Since it seems to be next to impossible to accurately list all the
> > > possible cookie exploits, I wil mark the document as "Ready", but with a
> > > reservation, that the the Security Considerations section is intentionally not
> > > complete and this seems not possible to fix.
> > >
> > > I still have some easy to address suggestions that I think would be helpful for
> > > readers.
> > >
> > > 1. Please, make it more clear that the restrictions on the cookie use, that the
> > > server imposes via attributes, are not guaranteed to be honored even by a
> > > honest user agent. For example, if the clocks on the server and on the client
> > > are out of sync, then the user agent may innocently try to use cookie beyond
> > > its lifetime. Thus, the imposed restrictions for the received cookies MUST be
> > > checked by the server.
> > >
> > > 2. Section 8.1 states that "by default, cookies do not provide confidentiality
> > > or integrity from network attackers, even when used in conjunction with HTTPS".
> > > In my reading this sounds like HTTPS is useless for cookies security. I think
> > > that this needs a clarification. While use of HTTPS cannot prevent network
> > > attacks using cookies mounted by other participants in HHTP communications
> > > (like cross-site attacks), it does prevent eavesdropping and manipulation of
> > > cookies by on-path entities that don't participate in these communications. I
> > > believe it should be emphisized that encrypted transport does reduce the attack
> > > surface using cookies.
> > >
> > > 3. Section 8.3 lists security risks when cookies are sent in clear and clause 3
> > > states: "A malicious client could alter the Cookie header before transmission,
> > > with unpredictable results". I failed to understand how this is concerned with
> > > the use of TLS. In my understanding, malicious clients can do this in any case,
> > > regardless on whether TLS is used or not. Am I missing something?
> > >
> > > 4. Section 7.1, last para states that "it is RECOMMENDED that user agents adopt
> > > a policy for third-party cookies that is as restrictive as compatibility
> > > constraints permit". This gives no concrete recommendations, and no examples,
> > > thus making this requirement vague and subjective. I think this requirement
> > > should be provided with more details how to deal with it.
> > >
> > > Just out of curiosity - the draft adds a requirement that cookie SHOULD NOT be
> > > greater than 400 days. I wonder why this particular margin was chosen. Why not
> > > 365 days (a year) - it looks like a natural equivalet to "very long, but not
> > > infinite"?
> > >
> > >
> > > _______________________________________________
> > > secdir mailing list -- secdir@ietf.org
> > > To unsubscribe send an email to secdir-leave@ietf.org
> > > wiki: https://wiki.ietf.org/group/secdir/SecDirReview
> >
> >
> >
> >