caddy/modules/caddyhttp
Matthew Holt c3fab6576f caddyhttp: keep escaped path cursor at wildcard span start
When an escape sequence was followed by a wildcard in the pattern, the
path cursor had already skipped to the last hex digit, so an encoded
slash could be swallowed into the wildcard span. Advance the cursor by
the escape width only when the character is consumed.

Addresses scan report 0e63a0fe7fea5ef7.

Code written by GitHub Copilot (GPT-6.1 Sol, Claude Opus 5.5); reviewed by mholt.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-11 11:06:40 -07:00
..
caddyauth caddyauth: cache only successful password comparisons 2026-11-11 11:06:40 -07:00
encode encode: use httpguts to look for Accept-Encoding in Vary (#8329) 2026-11-01 16:59:21 -05:00
fileserver fileserver: hide the config directory when it is relative (#8398) 2026-11-10 14:56:52 +00:00
headers headers: compile dynamic replacement regexes once per operation 2026-11-11 11:06:40 -07:00
intercept
logging
map
proxyprotocol
push
requestbody requestbody: enforce max_size early using Content-Length (#8337) 2026-11-03 18:18:40 +10:00
reverseproxy fastcgi: rewrite to index.php only if it exists (#8372) 2026-11-08 22:04:20 +00:00
rewrite rewrite: escape decoded original and component path placeholders 2026-11-11 11:06:40 -07:00
standard
templates templates: use the earliest front matter closing fence (#8259) 2026-10-20 17:07:07 +10:00
timeouts
tracing
app.go caddyhttp: enforce bounded host metric labels on HTTPS 2026-11-11 11:06:40 -07:00
app_test.go
autohttps.go
autohttps_test.go
caddyhttp.go caddyhttp: presize buffers in hot paths to reduce allocations (#7842) 2026-11-04 20:26:53 +00:00
caddyhttp_bench_test.go caddyhttp: presize buffers in hot paths to reduce allocations (#7842) 2026-11-04 20:26:53 +00:00
caddyhttp_test.go
celmatcher.go
celmatcher_test.go caddyhttp: add CEL expression support to the tls matcher (#8088) 2026-10-24 08:01:24 -04:00
errors.go
errors_randstring_test.go
http2listener.go
httpredirectlistener.go
idletimeout.go caddyhttp: fix min_rate credit overflow on transfers over 9.2 GB (#8396) 2026-11-10 14:57:57 +00:00
idletimeout_test.go caddyhttp: fix min_rate credit overflow on transfers over 9.2 GB (#8396) 2026-11-10 14:57:57 +00:00
incremental.go
incremental_test.go
invoke.go
ip_matchers.go
ip_range.go
logging.go
logging_test.go
marshalers.go
matchers.go caddyhttp: keep escaped path cursor at wildcard span start 2026-11-11 11:06:40 -07:00
matchers_test.go caddyhttp: keep escaped path cursor at wildcard span start 2026-11-11 11:06:40 -07:00
metrics.go caddyhttp: enforce bounded host metric labels on HTTPS 2026-11-11 11:06:40 -07:00
metrics_test.go caddyhttp: enforce bounded host metric labels on HTTPS 2026-11-11 11:06:40 -07:00
replacer.go fastcgi: keep the php_fastcgi directory redirect on the same origin (#8285) 2026-10-28 09:45:37 +00:00
replacer_test.go
responsematchers.go
responsematchers_test.go
responsewriter.go caddyhttp: detach streams at the server writer boundary (#8346) 2026-11-04 17:36:00 +10:00
responsewriter_test.go caddyhttp: detach streams at the server writer boundary (#8346) 2026-11-04 17:36:00 +10:00
routes.go
server.go caddyhttp: detach streams at the server writer boundary (#8346) 2026-11-04 17:36:00 +10:00
server_bench_test.go
server_test.go caddyhttp: reject invalid and dots-only hosts on every protocol (#8328) 2026-11-03 06:12:03 +00:00
staticerror.go
staticresp.go
staticresp_test.go
subroute.go
urlpatternmatcher.go
urlpatternmatcher_test.go
vars.go
vars_test.go