Exposure template · low
Go expvar debug endpoint exposed
Go's expvar endpoint (/debug/vars) is reachable, publishing the process command line and memory statistics as JSON. It discloses internal details (paths, flags, runtime state) that aid an attacker; it should not be public.
What it checks
On every web host the scan discovers, Spiderfootplus sends one GET request and reports a finding when the response matches. It only reads; it never logs in, writes or exploits.
/debug/vars
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 templatestemplate_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
- Disable debug mode and developer tooling in the production configuration.
- If the endpoint is needed for operations, bind it to localhost or an internal network and require authentication.
- 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.