]> git.ipfire.org Git - thirdparty/squid.git/commit
Enforce token characters for field-name (#700)
authorAmos Jeffries <yadij@users.noreply.github.com>
Tue, 4 Aug 2020 04:34:32 +0000 (04:34 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Tue, 4 Aug 2020 23:19:50 +0000 (23:19 +0000)
commitb453677bc1de131d88bf865d01afdc69dcef37a2
treed364e86bd1845cec8c142502c9ab1c61a02837f8
parent123cad133d8a8982f529821c5606a16460997332
Enforce token characters for field-name  (#700)

RFC 7230 defines field-name as a token. Request splitting and cache
poisoning attacks have used non-token characters to fool broken HTTP
agents behind or in front of Squid for years. This change should
significantly reduce that abuse.

If we discover exceptional situations that need special treatment, the
relaxed parser can allow them on a case-by-case basis (while being extra
careful about framing-related header fields), just like we already
tolerate some header whitespace (e.g., between the response header
field-name and colon).
src/HttpHeader.cc