Submit #1082660: https://github.com/0xERR0R/ blocky commit ef95d592b323a06ad95ce10daeb53b534a8a8e79 Exposure of Sensitive Informationinfo

Titlehttps://github.com/0xERR0R/ blocky commit ef95d592b323a06ad95ce10daeb53b534a8a8e79 Exposure of Sensitive Information
Descriptionpprof debug/profiling endpoints are exposed unauthenticated whenever the HTTP port is enabled, with no way to disable them Affected versions: confirmed on commit `ef95d592b323a06ad95ce10daeb53b534a8a8e79`. ## Summary Whenever an operator enables blocky's HTTP port (`ports.http` in config), which is the documented, standard way to get the REST API, web UI, and Prometheus metrics, the server unconditionally mounts Go's `net/http/pprof` profiler at `/debug/` on that same, unauthenticated listener. There is no configuration option to disable this, no authentication gate, and the root index page itself links directly to it as "Go Profiler". This exposes live runtime internals (heap/goroutine/CPU profiling data) and provides a CPU/memory exhaustion vector to any network client that can reach the HTTP port, with zero credential required. ## Details `configureDebugHandler()` (`server/server_endpoints.go:303-305`) is one of the handler-registration calls `createHTTPRouter()` makes unconditionally when building the HTTP router: it calls `router.Mount("/debug", middleware.Profiler())`, `go-chi/chi`'s wrapper around Go's standard `net/http/pprof` handlers (`/debug/pprof/`, `/debug/pprof/cmdline`, `/debug/pprof/profile`, `/debug/pprof/heap`, `/debug/pprof/goroutine`, `/debug/pprof/trace`, etc.). There is no `if` condition, feature flag, or config check anywhere around this call; it is mounted on the exact same router that serves DoH queries, the OpenAPI REST API, and the Prometheus metrics endpoint. The root page's own `configureRootHandler()` adds a `{URL: "/debug/", Title: "Go Profiler"}` link to the HTML index it serves, confirming this is an intentional, advertised feature rather than a forgotten debug leftover - just one shipped with no access control. The HTTP listener itself binds to all interfaces by default under the project's own documented quick-start configuration. `config.ListenConfig.prefixPorts()` only prepends a bare `:` to a port-only value (e.g. `4000` becomes `:4000`), which is Go's wildcard-bind syntax (equivalent to `x.x.x.x:4000` / `[::]:4000`), not a loopback-only bind. `docs/installation.md`'s own quick-start example sets exactly this: `ports: { dns: 53, http: 4000 }` with no host prefix, so following the project's own installation guide produces a `/debug/pprof/` endpoint bound to all interfaces with no authentication of any kind. ## Steps To Reproduce (available upon request) ## Impact Any blocky deployment that follows the project's own documented installation guide (enabling the HTTP port to get the REST API, web UI, or Prometheus metrics, a mainstream and expected configuration) exposes Go's full pprof profiling surface to the network the HTTP port reaches, with no authentication and no way to disable it. This allows: - Information disclosure (CWE-200): heap/goroutine profile dumps can reveal in-process memory contents and full internal goroutine stack traces revealing code structure, to any network client. Confirmed: `/debug/pprof/cmdline` returns the full process command line, `/debug/pprof/heap` returns a live heap dump. - Denial of service / resource exhaustion (CWE-400): the CPU-profiling and execution-trace endpoints (`/debug/pprof/profile`, `/debug/pprof/trace`) can be invoked repeatedly and concurrently by an unauthenticated remote caller to consume CPU for attacker-chosen durations, on devices this ad-blocking DNS proxy is specifically marketed to run on (resource-constrained home routers/single-board computers), degrading or disrupting DNS resolution for every client relying on it. CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor), CWE-400 (Uncontrolled Resource Consumption). CVSS 3.1: `AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L` (6.5, Medium).
Source⚠️ https://github.com/0xERR0R/blocky/issues/2314
User
 carfeii (UID 97470)
Submission11/09/2026 14:35 (21 days ago)
Moderation11/30/2026 17:03 (21 days later)
StatusAccepted
VulDB entry445869 [0xERR0R blocky up to 0.35.0 server_endpoints.go configureDebugHandler information disclosure]
Points20

Might our Artificial Intelligence support you?

Check our Alexa App!