Skip to content
Spiderfootplus

Type to search. Press / or Ctrl K from any page.

Exposure template · medium

Go pprof debug endpoint exposed

Go's net/http/pprof profiling endpoint is reachable. It leaks runtime internals (goroutine stacks, memory, command line) and the CPU profile can be abused to stall the process; it should never be exposed publicly.

What it checks

On every web host the scan discovers, Spiderfootplus sends 2 GET requests and reports a finding when the response matches. It only reads; it never logs in, writes or exploits.

/debug/pprof//debug/pprof

Detect it

# Every exposure template, with the rest of the web checks$ spiderfootplus scan example.com -p web # List the templates and their severities$ spiderfootplus templates

template_scan is marked invasive: it requests paths a normal visitor would not. Only scan hosts you are authorised to test.

Fix it: turn off debug and diagnostics in production

  1. Disable debug mode and developer tooling in the production configuration.
  2. If the endpoint is needed for operations, bind it to localhost or an internal network and require authentication.
  3. Review recent logs for requests to the endpoint; debug pages often leak environment variables and secrets.

Write your own

Templates are YAML in a nuclei-compatible format. See Write a vulnerability template to add a check like this one.