mirror of
https://github.com/caddyserver/caddy.git
synced 2026-11-16 13:12:08 +00:00
Caddy's underscore header filter (GHSA-f59h-q822-g45g) only checked for `_`. PHP folds `.` to `_` when registering $_SERVER keys the same way CGI/FastCGI folds `-` to `_`, so a dotted alias (e.g. Remote.User) survived the filter and collided with the legitimate hyphenated header once it reached a PHP/FastCGI backend, bypassing forward_auth copy_headers the same way the underscore alias did. Extends the filter to drop `.` symmetrically, adds an `expected_dot_headers` allowlist mirroring `expected_underscore_headers`, and handles header names containing both separators (only an exact allowlist entry is honored there, since a prefix glob's free-form suffix can't be vetted for an embedded second separator). Root cause identified by @iliaal in the FrankenPHP advisory GHSA-49wc-4hcv-v58q. |
||
|---|---|---|
| .. | ||
| caddyfile_adapt | ||
| testdata | ||
| acme_test.go | ||
| acmeserver_test.go | ||
| autohttps_test.go | ||
| caddyfile_adapt_test.go | ||
| caddyfile_test.go | ||
| forwardauth_test.go | ||
| h2listener_test.go | ||
| handler_test.go | ||
| intercept_test.go | ||
| leafcertloaders_test.go | ||
| listener_test.go | ||
| map_test.go | ||
| mockdns_test.go | ||
| panic_test.go | ||
| pki_test.go | ||
| proxyprotocol_test.go | ||
| reverseproxy_test.go | ||
| sni_test.go | ||
| stream_test.go | ||