On Mon, Nov 30, 2026 at 10:49 AM Ruediger Pluem via dev <[email protected]> wrote: > > > > On 11/30/26 4:13 PM, Eric Covener wrote: > > While requests with URL-encoded nulls, CR, and LF's are valid and the > > encoded octets may actually be non-UTF8 multi-byte characters, I would > > like to propose we no longer accept them by default. > > > > Most folks are familiar with AllowEncodedSlashes which has specific > > behavior for %2F (off, on, NoDecode). I think for re-enabling stuff > > like NULL/CR/LF I would want to force people to opt in via something > > like a regex (too early to use normal config sections) and document > > that it requires great care if the URL is further manipulated. I > > think these would implicitly be NoDecode equivalent only. > > > > Anyone opposed in concept or have other ideas about the externals? > > As far as I can tell encoded nulls are already forbidden. > (https://github.com/apache/httpd/blob/16d5db8ef09c9a56160bc14489f76ec0259f2dcf/server/util.c#L1915) > With regards to CR/LF are there further encoded control characters that we > should not allow by default?
thanks! I think the main concern is http1 splitting as this stuff gets copied around, so it would be limited I think. There are similar URL oriented issues, but those even sometimes involve sub-delims that don't need encoding/decoding to be problematic. I am thinking @, #, and ; for example. The legitimate use of these in URL's is not zero, but copying them around causes problems.
