Re: Host header checks and case sensitivity
Julian Reschke <julian.reschke@gmx.de> Tue, 12 December 2023 16:59 UTC
Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=ietf.org@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 C1233C151061 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 12 Dec 2023 08:59:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.755
X-Spam-Level:
X-Spam-Status: No, score=-2.755 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.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, 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=gmx.de
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 sqBlRMRPjDdH for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 12 Dec 2023 08:59:37 -0800 (PST)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1A699C14F5E9 for <httpbisa-archive-bis2Juki@ietf.org>; Tue, 12 Dec 2023 08:59:36 -0800 (PST)
Received: from lists by lyra.w3.org with local (Exim 4.94.2) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1rD66O-0008iQ-LO for ietf-http-wg-dist@listhub.w3.org; Tue, 12 Dec 2023 16:59:24 +0000
Resent-Date: Tue, 12 Dec 2023 16:59:24 +0000
Resent-Message-Id: <E1rD66O-0008iQ-LO@lyra.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by lyra.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <julian.reschke@gmx.de>) id 1rD66M-0008hJ-PQ for ietf-http-wg@listhub.w3.org; Tue, 12 Dec 2023 16:59:22 +0000
Received: from mout.gmx.net ([212.227.17.21]) by mimas.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <julian.reschke@gmx.de>) id 1rD66L-005bz6-3S for ietf-http-wg@w3.org; Tue, 12 Dec 2023 16:59:22 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1702400356; x=1703005156; i=julian.reschke@gmx.de; bh=DkfEl8Qokeuht51OTxNnMIIgdZkePvUV7gCid4YY1/4=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=B1eEuHTs/ED8BrOqnFrmKT/+rO0gVVMb0Zy8AA9FpotYaxswk0AR0V2/hH8Jiehg YM1zr4XHC7J57gFUVJB+/QsJTFr+ngfxOVH31Q3XT0C+jhAKoPKGxFapo457hd5sd OeL+0MvkRfYhGyj/qk4grj5dZ3VxfKnC0w5qk+54hiqgMTTC9jycKMklxtUFIIomc dh9oQJf9Eajh7Amw6W6cYPlV8XA+VX6xosR7UlImGE3+2Xp7c5JiHZaquNTMi3lWS +9KgM0+L1dTgDjESr6InNkgSFzpa/j8H7aNMH0Bt5h8Sq45zHih0G5pYiR12darNk VYPhFFKvjXzvc+YPHQ==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from [192.168.178.182] ([84.171.144.227]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MoO24-1rWmj60OQC-00ompA for <ietf-http-wg@w3.org>; Tue, 12 Dec 2023 17:59:16 +0100
Message-ID: <7196ffc5-0399-432d-8ed1-443f1fd314d0@gmx.de>
Date: Tue, 12 Dec 2023 17:59:14 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: ietf-http-wg@w3.org
References: <6a859256-70fc-48c3-b213-5695ecc15a5b@apache.org>
From: Julian Reschke <julian.reschke@gmx.de>
In-Reply-To: <6a859256-70fc-48c3-b213-5695ecc15a5b@apache.org>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:DLnVxPzO6vVgwtykfeEWRczSYOEMRvDXsMUVm8gV99xaQN7OyY5 JCZArlzk0bN+/a7WjKgItCU0jLRCMA33bYCxdx0r1D5rV2uJvNQ55I0mqlti/DdO/RkHek6 goCXbmWmsKEbJ/98b015pSGkkkgP8mWcOxohGbvlgbX/PYoho2+MDjVgZzcnuBjld7GjRIg 1l2gzp3VIgydfSRtnp42w==
UI-OutboundReport: notjunk:1;M01:P0:VgyvU4Wpg2A=;ciOmVH0WkHDEnJStHTVX1DjuQDO +ugoANOgTL5ZuL26++w8TgohOCpttLiSHeB3UchZyISOpqjSe9wPUpTXvGtPj0S0TUrE9hO5i H9ph7NRNpLn3rTuGfFtApemWFk32tmAnrTsOa5RK07fhRGwn/Hal5+Z32rYA9iEkZAXE0upf/ DVTk/WV+16Bhlba/uCAvSo4BSViKi43DqIoQJVIiYLTBjGUJmHSP908B3UtxWOLFRMqWH+BZs HYZkDl94C/6hRdHTtBY9TuNdef9DZGbkM+COqblK36v1ykjzb33h2Zj7HTksUUfFLVYhCz8Lu SHN9jkZhvFGa0grTMN37yX3qzalFQ799ZG11xjtXByCKVK7tQWUbJ+FRDbuJHlnSKHMe/Vg4f jyODL7XAQqncxyzmYi2NGUWJbJ+w/ZENVanx1fBcCb1rm9ImC3pOBXID3w65NMkP50mXUxOTx 7KZWNr7/NooUw5JlhHgni2senUzERUdVSM5diaBGJolKdWR4V0h9Ay5sfwKAb+6x/n8skiM76 ya5VzhmpsvNqTa+BX0XOH6T6xD/Se5BfZBCF8+WjFUERQEWfLpboSyzEnE2cFE8BrgyoirAA+ uxOXSJfinSUQaeld9jlmTmeWIsuSmSNmEG+EKWqDqlws6j2VyErE43zuF94FgIQ8mP1wBIAKl g2aNbDI97JRXSVbMi92W538NTraI/HOcmq3/TlvoX7FzSuV06incZ8SVugyl/XeH1bTAPOsgK ygIJUwlsbc+CVJwovLVO+Utcw5V7OYR5Knv40eBPq9AnlroYxRY2C5KM8APqzAEn+sGvkXZtx 3cxjUk39zIMvBD99m/j9BjgAyH3BzwbevFdQbwYJvSKuOS6yXmrvc+TnuFXNNplD6yX4ruRPO SRG7B8PifSX7QseocDTjxsiD27Hslurb6zatasbV3g6JPfaidWME30aqOnBtNvYUqPgj05Aan d/0ryPXJwaGhl3RWbwW80dReHIo=
Received-SPF: pass client-ip=212.227.17.21; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-DKIM-Status: validation passed: (address=julian.reschke@gmx.de domain=gmx.de), signature is good
X-W3C-Hub-DKIM-Status: validation passed: (address=julian.reschke@gmx.de domain=julian.reschke@gmx.de), signature is good
X-W3C-Hub-Spam-Status: No, score=-5.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1rD66L-005bz6-3S d99cc52a315ef69bb327a259ea3160ab
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Host header checks and case sensitivity
Archived-At: <https://www.w3.org/mid/7196ffc5-0399-432d-8ed1-443f1fd314d0@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/51674
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>
On 12.12.2023 15:12, Mark Thomas wrote: > Hi all, > > A (hopefully) quick question. > > In RFC 9112, section it states that: > > "If the target URI includes an authority component, then a client MUST > send a field value for Host that is identical to that authority > component..." > > Given that host is case insensitive, is the intention that "identical" > in the text above means "identical, ignoring differences in case"? > > I can't think of any reason why this particular check needs to be case > sensitive but wanted to check in case I was missing something. > ... The text seems to lack clarity here. Are you concerned about client requirements, or do you want to add strict checks to a server? Best regards, Julian
- Host header checks and case sensitivity Mark Thomas
- Re: Host header checks and case sensitivity Julian Reschke
- Re: Host header checks and case sensitivity Mark Thomas
- Re: Host header checks and case sensitivity Willy Tarreau