[secdir] Re: Secdir telechat review of draft-ietf-httpbis-rfc6265bis-19
Valery Smyslov <valery@smyslov.net> Thu, 18 September 2025 11:39 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 C23DB64D2891; Thu, 18 Sep 2025 04:39:08 -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 dUrd6BoPX6aN; Thu, 18 Sep 2025 04:39:08 -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 25CAF64D2888; Thu, 18 Sep 2025 04:39:05 -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=n21v4n3v8mEPwU4K3SCCISwuvFRQjtZ/F23ifwYFMFE=; b=iqQIzb6GaIMRS+QDmgwJibmTXn aOhjOoVvNNooBEDm50nlDmNOy134sAZwDDmvoddKT0Cw9E71oOtgs5QYxhxWI8JfLSEtE6jh4Ni9T Vt5Ta9aVbCChHngUOllIPJozdsn7uP79dX/b8/0hKIh3X4cKb7wM0mJhZx7iz77NhZZ8kFH5nf7X9 b7/ZKyVrzS4dHSA+tT18oBcTd/YW7XjC2unsxyayg6xLWxVEonS/6iNhrNmLujWQKrB1BzjLWxei4 Pv3nxzxlurdPaRU5QWcsiXIoZilhlZcbUUaIc+Job8hl3tI1tmYXWb+MM2PgRy6WQFVTosCKwMEqa fzk1ifLQ==;
Received: from [93.188.44.204] (port=50169 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 1uzCyV-0000zn-Qh; Thu, 18 Sep 2025 07:38:56 -0400
From: Valery Smyslov <valery@smyslov.net>
To: secdir@ietf.org
References: <173928072730.554181.11643604175051228621@dt-datatracker-75c44cbbdf-pxnd6>
In-Reply-To: <173928072730.554181.11643604175051228621@dt-datatracker-75c44cbbdf-pxnd6>
Date: Thu, 18 Sep 2025 14:38:51 +0300
Message-ID: <0b1901dc2890$d0e2abf0$72a803d0$@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: AQFcxNKZV7raJ9qIR8PhXu9PCb9WbbWXk1Ig
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: GR6BYKPVJVC2L4MAPUCQVU4A25I4LUSP
X-Message-ID-Hash: GR6BYKPVJVC2L4MAPUCQVU4A25I4LUSP
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: 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/8FMyZp6S1x2YlqJRIyonAgsyfsI>
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>
[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
- [secdir] Secdir telechat review of draft-ietf-htt… Valery Smyslov via Datatracker
- [secdir] Re: [Last-Call] Secdir telechat review o… Donald Eastlake
- [secdir] Re: [Last-Call] Re: Secdir telechat revi… Valery Smyslov
- [secdir] Re: Secdir telechat review of draft-ietf… Valery Smyslov
- [secdir] Re: Secdir telechat review of draft-ietf… Steven Bingler
- [secdir] Re: Secdir telechat review of draft-ietf… Valery Smyslov
- [secdir] Re: Secdir telechat review of draft-ietf… Steven Bingler
- [secdir] Re: Secdir telechat review of draft-ietf… Valery Smyslov