]> cat aescling's git repositories - httpd-execline.git/commit
clean-dot-directories: fix: clear arg envvars on loop
authorcat æscling <11325618-aescling@users.noreply.gitlab.com>
Thu, 27 Jul 2023 07:53:41 +0000 (03:53 -0400)
committercat æscling <11325618-aescling@users.noreply.gitlab.com>
Thu, 27 Jul 2023 07:53:41 +0000 (03:53 -0400)
commit03411d9cc82b785893e261bf3f276ce016a2b5c7
treed648e3bf0b9f2e4309537378e764808d9db0e5ce
parent314d197e2450768a62cd0e1c101cc780d82535d8
clean-dot-directories: fix: clear arg envvars on loop

Otherwise, with mischevious client requests, we run out of room for all
the cut up versions of the requested resource we store copies of. This
actually crashes in a way the client does not notice, though all the
extra string processing does have a noticable performance cost.

It is possible that the result of crashing could be a request that
exposes files outside subdirectories of supported_domains, as the
remaining dot-dots would be interpreted literally. Instead of attempting
this exploit I have simply fixed the bug.

Perhaps we *should* have been using sed(1) all along...
visible-to-httpd/binaries/clean-dot-directories.execline