Caddy: Windows `file_server` path authorization bypass via encoded backslash
caddyserver caddy
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/caddyserver/caddy/v2 Go |
|
|
| github.com/caddyserver/caddy Go |
| No fix yet |
Original description
Caddy is an extensible server platform that uses TLS by default. Prior to 2.11.4, on Windows, Caddy path matchers treat /private\secret.txt as outside /private/*, but file_server later resolves the same request path as private\secret.txt on disk. An unauthenticated remote client can bypass Caddy path-scoped auth/deny routes protecting /private/*. This vulnerability is fixed in 2.11.4.