Medium severityGoInsecure ConfigurationMEDIUM confidence
pprof Handler Exposed
The net/http/pprof profiling handlers are registered, exposing /debug/pprof/ (CWE-489).
Standards mapping
- OWASP Top 10
- A05:2021 - Security Misconfiguration
- OWASP ASVS
- V14.3.2 (L1)
Vulnerable vs. safe
Flagged by this check
import _ "net/http/pprof"Passes - the safe pattern
mux.HandleFunc("/healthz", handler)Why it matters & how to fix it
The net/http/pprof profiling handlers are registered, exposing /debug/pprof/ (CWE-489). These endpoints reveal goroutine stacks, memory profiles, and command-line arguments and allow resource-intensive profiling that can be abused for DoS. Do not expose pprof on a public listener; bind it to localhost or an authenticated admin-only mux, and gate it behind a build flag.
References
Rule ID integsec-go-pprof-handler-exposed - engine: Opengrep - license: MIT - Copyright (c) IntegSec Inc.
TurboPentest runs this check automatically
Connect a GitHub repo and this check runs on every white-box pentest - AI-validated and reported with proof, from $99 per target.
Start a pentestRelated checks
- JavaScript / TypeScript - Insecure ConfigurationCORS Acao Wildcard Header
- JavaScript / TypeScript - Insecure ConfigurationCORS Wildcard Origin
- JavaScript / TypeScript - Insecure ConfigurationCORS Wildcard With Credentials
- JavaScript / TypeScript - Insecure ConfigurationCSRF Protection Disabled
- JavaScript / TypeScript - Insecure ConfigurationExpress Trust Proxy All
- JavaScript / TypeScript - Insecure ConfigurationExpress X Powered By Enabled