Re: [Technical Errata Reported] RFC9110 (8138)

"Roy T. Fielding" <fielding@gbiv.com> Sun, 13 October 2024 18:07 UTC

Received: by ietfa.amsl.com (Postfix) id 9B4B4C14F6F2; Sun, 13 Oct 2024 11:07:05 -0700 (PDT)
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 91DC9C14F6EF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 13 Oct 2024 11:07:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.358
X-Spam-Level:
X-Spam-Status: No, score=-2.358 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, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLACK=0.5, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=w3.org header.b="YjuMTHfW"; dkim=pass (2048-bit key) header.d=w3.org header.b="Cy62iiFZ"; dkim=pass (2048-bit key) header.d=gbiv.com header.b="UrtTG0pL"
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W2kyVAJ9WTm4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 13 Oct 2024 11:07:01 -0700 (PDT)
Received: from mab.w3.org (mab.w3.org [IPv6:2600:1f18:7d7a:2700:d091:4b25:8566:8113]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 158D4C14F6AB for <httpbisa-archive-bis2Juki@ietf.org>; Sun, 13 Oct 2024 11:07:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=w3.org; s=s1; h=Subject:References:To:Cc:In-Reply-To:Date:Mime-Version:Content-Type: Message-Id:From:Reply-To; bh=1WBcT03pifN8//Zt90tg0T/4MwRb7FtgzHe+iPO5A00=; b= YjuMTHfWZ6fM0/ONHxIzqNcVxnhJYsj8Flgj+n6MK+Juafqi/GXWzGmuo+rZrvJEeojhp+qvxOIs9 6U5sK6qMZZrwqKEfjbfzkiQN2hX/paSZtmLhPXS1SszW7K6AVZLlPZGbpskr6LCdjs9WMhBIr1PC4 jv110ptRxjhKe04gCCXzHx3IFcDUhc2bhgh0ELTRg4DTiiBRdojQlmoKKqwCOs9UZCxI8kVzsvI64 pzAaBNBY5dCc2Xnpu8z7gPh8oeAQiGbQrM2i+fyHuMOmftNSBcEH6vSbqKBTdZqskksL/5e9jrbry fSX6C8HZvgYvKG5wq14iBxvMAIe7QN+yww==;
Received: from lists by mab.w3.org with local (Exim 4.96) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1t02yg-004qyO-3B for ietf-http-wg-dist@listhub.w3.org; Sun, 13 Oct 2024 18:06:02 +0000
Resent-Date: Sun, 13 Oct 2024 18:06:02 +0000
Resent-Message-Id: <E1t02yg-004qyO-3B@mab.w3.org>
Received: from ip-10-0-0-224.ec2.internal ([10.0.0.224] helo=puck.w3.org) by mab.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <fielding@gbiv.com>) id 1t02yd-004qxF-2G for ietf-http-wg@listhub.w3.internal; Sun, 13 Oct 2024 18:05:59 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=w3.org; s=s1; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type: Message-Id:From:Reply-To; bh=1WBcT03pifN8//Zt90tg0T/4MwRb7FtgzHe+iPO5A00=; t=1728842759; x=1729706759; b=Cy62iiFZrJetHnjCG5dhgay4/oZ2e2U0emOzotWXTrKwdms MBI2S7PtQZjAYeQehHNkh6zpe19YENaLV9FgLYB9KigbN9Q1EpHoMUjRbvwvPoJqT5nc3cmk175Rk FEd1Vmr/As8vNVV40eFxkPTybV0uCOpFmqP/inGtFY4fZbeqvtvTsNerAotHxehpvjrcLJRK4hxa4 k94IoRi5WRofh58mFHz0tULPmmsm3K/iCj8yHhgk+vixFJ4scSp4zHM6snoMF8ay4iIrRGJCJFOpo AS3p5OmISzGFnXNpzqK/X7YTpiM624/zHjM87Xucm8X9Q0J+A57z3rptoRPgfkow==;
Received-SPF: pass (puck.w3.org: domain of gbiv.com designates 23.83.212.46 as permitted sender) client-ip=23.83.212.46; envelope-from=fielding@gbiv.com; helo=cross.elm.relay.mailchannels.net;
Received: from cross.elm.relay.mailchannels.net ([23.83.212.46]) by puck.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <fielding@gbiv.com>) id 1t02yc-00Fiye-2w for ietf-http-wg@w3.org; Sun, 13 Oct 2024 18:05:59 +0000
X-Sender-Id: dreamhost|x-authsender|fielding@gbiv.com
Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id A05477832EC; Sun, 13 Oct 2024 18:05:54 +0000 (UTC)
Received: from pdx1-sub0-mail-a259.dreamhost.com (100-99-0-125.trex-nlb.outbound.svc.cluster.local [100.99.0.125]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 388B37834C6; Sun, 13 Oct 2024 18:05:54 +0000 (UTC)
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1728842754; a=rsa-sha256; cv=none; b=B7I+jSGhnac5a1G2LB040v2QChe8she2MhF+cAayRuAaxK+EiEq3PMayfJvVdZE4IimcBp PxXaIfCY1qjTWAU6CKhOfHj1IrCBYFnz3026TCdIx9zE6ZRQhTLc/W8sI13EUfJTg3N/mV GxErK9AisqWpyhIvsawl+hpG4DEO5SgdnJbRZ5GjKTC1yrGojV0riB8txIVi9M+JEOxfE9 H1RbH8gKDQ1TEAZ0eJoqZVGNR83+OCWrXeU1D+PCKb44Q1NJWdCSNPg+EP5qfvqXr5hCBH ZkjL8yafQaxEGVjq480CL3ThJ4QPh7TSQ+Limj0h04apiBILamSoRH3y8QS5Rw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1728842754; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=O+u8AQcmfwcCdi7SmZ7YmU+PLD4a5oqh853dge1YuUY=; b=hEKho4EhZoQdl97c9//0PL7/BCtDAZ3QU2YZ/ctpUGa/5o1sR4/e/to2syi5+xr5JlFeqB q+R2AnYLcedBlVbdvFEIpEq/6PZ0XVVYCM/HCtJzQPd/jNmxAmP/Okd+xP0N1EUpG6BFmd ypQkd2zxu+q4DKLyyJXg7vsS5uUABxPBfTImMwO2FznUKnb2+t9/bn8v47vPcJWSnJhZp0 qag1Jr7xX5djr5kEInISaZeidWXzjq34SahZV0LXOQT2OYkZrv1BW2hL7vcX4R3fPpDfjT HJ23On/E3CLHDhDocSjtpStyX4JVAWYa2cTvD2XDapaxgAafKlIRl1goEbvOLg==
ARC-Authentication-Results: i=1; rspamd-5b4c8788b8-w62m8; auth=pass smtp.auth=dreamhost smtp.mailfrom=fielding@gbiv.com
X-Sender-Id: dreamhost|x-authsender|fielding@gbiv.com
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|fielding@gbiv.com
X-MailChannels-Auth-Id: dreamhost
X-Company-Troubled: 49d7393949a1b7e8_1728842754510_3361271810
X-MC-Loop-Signature: 1728842754509:3996318733
X-MC-Ingress-Time: 1728842754509
Received: from pdx1-sub0-mail-a259.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.99.0.125 (trex/7.0.2); Sun, 13 Oct 2024 18:05:54 +0000
Received: from smtpclient.apple (ip72-194-73-53.oc.oc.cox.net [72.194.73.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by pdx1-sub0-mail-a259.dreamhost.com (Postfix) with ESMTPSA id 4XRSw14yybz3h; Sun, 13 Oct 2024 11:05:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gbiv.com; s=dreamhost; t=1728842754; bh=1WBcT03pifN8//Zt90tg0T/4MwRb7FtgzHe+iPO5A00=; h=From:Content-Type:Subject:Date:Cc:To; b=UrtTG0pLaFZahQOB8hfQU7nMU3TDQXjR2k0zhwgjjkBagl4q7zTce/NAxIhsyphd2 K0ebnHxP2rPH8kBiCcv7Rk81A60fE47rEcjMvElQ2I95cJc9CumY8SHuRGayzA0nIu /42xz0Wf9ci3+lHCtmXUbmVOUBCRg4GineY5xQ9OF9MAJxMpz1Zp/5y6satrPuKc9c uClyuqNaXrd6dfCK5Di5NVRsvK4ulfNM4wtyziRmdBPOclD427Uww5wK4QPoqGJMf4 NW7VpR7j2QINLZaohJOrltclNvf8muNkT105wotl2GRdW8jLxupjofbbhfKjHXjBHv MjjtKqroF7ukA==
From: "Roy T. Fielding" <fielding@gbiv.com>
Message-Id: <7C500D58-C41D-4869-85A0-30A8C9B0BB1D@gbiv.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_9AF00FF2-954F-4231-B141-C0ABFA82C723"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3818.100.11.1.3\))
Date: Sun, 13 Oct 2024 11:05:42 -0700
In-Reply-To: <20241012143241.110553B873@rfcpa.rfc-editor.org>
Cc: Mark Nottingham <mnot@mnot.net>, Julian Reschke <julian.reschke@greenbytes.de>, httpbis-ads@ietf.org, Tommy Pauly <tpauly@apple.com>, roybarkayyosef@gmail.com, ietf-http-wg@w3.org
To: RFC Errata System <rfc-editor@rfc-editor.org>
References: <20241012143241.110553B873@rfcpa.rfc-editor.org>
X-Mailer: Apple Mail (2.3818.100.11.1.3)
X-W3C-Hub-DKIM-Status: validation passed: (address=fielding@gbiv.com domain=gbiv.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-7.5
X-W3C-Hub-Spam-Report: ARC_SIGNED=0.001, ARC_VALID=-0.1, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, DMARC_MISSING=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLACK=1.7, URIBL_DBL_BLOCKED_OPENDNS=0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: puck.w3.org 1t02yc-00Fiye-2w 81f8abd4322a1311dbddfa21c5333a77
X-Original-To: ietf-http-wg@w3.org
Subject: Re: [Technical Errata Reported] RFC9110 (8138)
Archived-At: <https://www.w3.org/mid/7C500D58-C41D-4869-85A0-30A8C9B0BB1D@gbiv.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/52398
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/email/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

REJECT

The errata includes the wrong original text, since the comment is suggesting
an additional requirement for text after bullet 5. The actual original text is
already after bullet 5:

A client SHOULD detect and intervene in cyclical redirections (i.e., "infinite" redirection loops).
Note: An earlier version of this specification recommended a maximum of five redirections ([RFC2068 <https://www.rfc-editor.org/rfc/rfc9110.html#RFC2068>], Section 10.3 <https://www.rfc-editor.org/rfc/rfc2068#section-10.3>). Content developers need to be aware that some clients might implement such a fixed limitation.

 <https://www.rfc-editor.org/rfc/rfc9110.html#section-15.4.1>
There is no requirement on servers to prevent cyclical redirections because sending
the wrong instruction to a client is self-defeating (and can be configured in any
number of of ways that are outside the scope of this protocol). A client, OTOH,
will stop an infinite cycle simply by counting the requests.

A server that does not validate its own configuration files is not a protocol error.
A client that makes infinite requests is a normal DoS attack.

....Roy

> On Oct 12, 2024, at 7:32 AM, RFC Errata System <rfc-editor@rfc-editor.org> wrote:
> 
> The following errata report has been submitted for RFC9110,
> "HTTP Semantics".
> 
> --------------------------------------
> You may review the report below and at:
> https://www.rfc-editor.org/errata/eid8138
> 
> --------------------------------------
> Type: Technical
> Reported by: Roy Yosef Barkay, Tomer Yair <roybarkayyosef@gmail.com>
> 
> Section: 15.4
> 
> Original Text
> -------------
>   5.  If the request method has been changed to GET or HEAD, remove
>       content-specific header fields, including (but not limited to)
>       Content-Encoding, Content-Language, Content-Location,
>       Content-Type, Content-Length, Digest, Last-Modified.
> 
> Corrected Text
> --------------
> 6.If a redirect request includes a target uri of 
> redirect link (a recursive redirect request) 
> such as: http://example.com/reditectto=
> ""http://example.com/redirecto="http://bad.examaple.com"" 
> a redirect to http://example.com/redirecto="http://bad.examaple.com" 
> should be made and than to 
> http://bad.examaple.com that way the security 
> messures to redirect to another domain may take place
> 
> Notes
> -----
> currently the rfc doesn't indicate how web server and 
> browsers should handle recursive rerdirect such as 
> http://example.com/reditectto="http://example.com/redirecto="http://bad.examaple.com"" 
> therefore i was able to abuse this behavior to gain 
> cve and exploitation on web server for 2 main resoans 
> 1. redirect allowed only to same domain logic : with regex on 
> the parameter "gooddomain.com/.*" which works as intended for the escape of the domain part in the uri but doesnt handle a case where there is a recursive request which is handled by server side.
> 2. out of domain control which gives the user a choice to know and 
> approve the moving to another domain because the server views the 
> request as to the same domain
> 
> the correct text should come after number 5
> 
> Instructions:
> -------------
> This erratum is currently posted as "Reported". (If it is spam, it 
> will be removed shortly by the RFC Production Center.) Please
> use "Reply All" to discuss whether it should be verified or
> rejected. When a decision is reached, the verifying party  
> will log in to change the status and edit the report, if necessary.
> 
> --------------------------------------
> RFC9110 (draft-ietf-httpbis-semantics-19)
> --------------------------------------
> Title               : HTTP Semantics
> Publication Date    : June 2022
> Author(s)           : R. Fielding, Ed., M. Nottingham, Ed., J. Reschke, Ed.
> Category            : INTERNET STANDARD
> Source              : HTTP
> Stream              : IETF
> Verifying Party     : IESG
>