mirror of
https://github.com/cloudflare/cloudflared.git
synced 2026-11-17 19:26:14 +00:00
VULN-176088: Allowlist debug endpoints on the metrics server
## Summary The metrics server mounted all of `http.DefaultServeMux` under `/debug/` and blocked only `/debug/pprof/cmdline` (TUN-10513). Any imported package can register handlers on the default mux, and `expvar` (pulled in by `prometheus/client_golang`) serves `/debug/vars` with a `cmdline` variable containing `os.Args`, including `--token` / `--credentials-contents` when they are passed on the command line. This MR replaces the blocklist with an explicit allowlist of debug handlers.
This commit is contained in:
parent
ee83189f85
commit
8cc81c7fcc
3 changed files with 216 additions and 58 deletions
Loading…
Add table
Add a link
Reference in a new issue