]> git.ipfire.org Git - thirdparty/squid.git/commit
Ban reserved annotations in "note", "adaptation_meta" directives (#561)
authorChristos Tsantilas <christos@chtsanti.net>
Sat, 29 Feb 2020 11:37:02 +0000 (11:37 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 2 Mar 2020 09:12:52 +0000 (09:12 +0000)
commit4668df3dc310cd1bbb9da9b7498d918c8c2bc9c0
tree97d53b3a6dc4e56b511fc45ce94b7d797790b396
parentd7ca82e66dadd85b96b7b2f21866c92e745921ef
Ban reserved annotations in "note", "adaptation_meta" directives (#561)

Squid defines a list of names used internally for exchanging name=value
pairs with various helpers. When Squid receives a name=value pair with a
reserved name, Squid stores it as if it was any other annotation; the
information can be checked with a "note" ACL and logged with %note. An
admin who configures a custom annotation with the same reserved name may
see strange/unexpected results such as seemingly corrupted access.log
record fields and mismatching ACLs.

Squid already prohibits reserved annotation names in
annotate_transaction and annotate_client ACLs. This change adds the
missing protection to the "note" and adaptation_meta directives.

This is a Measurement Factory project
src/Notes.cc
src/Notes.h
src/acl/AnnotationData.cc
src/adaptation/Config.cc