Detection of internal IP, hostname and filesystem-path leakage through headers, redirects, errors and responses that expose backend topology. Tier 1. Use while reviewing headers/errors on any authorized web/API target.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Server Leaks?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-server-leaks)
---
name: server-leaks
description: Detection of internal IP, hostname and filesystem-path leakage through headers, redirects, errors and responses that expose backend topology. Tier 1. Use while reviewing headers/errors on any authorized web/API target.
---
# Server / Internal Leakage (IPs, hostnames, paths)
Backends leak their own topology — private IPs, internal DNS names, absolute paths, upstream server IDs — which maps the network behind the edge and enables SSRF/spoofing.
## Trigger phrases
`internal ip leak, hostname leak, path disclosure, server leak, private ip, backend hostname, header leak`
## Method
1. Dump all response headers across endpoints: look for `X-Powered-By`, `Server`, `Via`, `X-Backend-Server`, `X-Served-By`, `X-Cache`, `X-AspNet-Version`, `X-Forwarded-*` echoes, `Content-Location`, custom `X-*` with internal names.
2. **Redirect leaks**: request `/` or dirs without trailing slash; a `Location:` with an internal IP/hostname (`http://10.x`, `.internal`, `.local`, container names) exposes the origin. Send `Host:` variants and watch where it redirects.
3. **Error/path leaks**: force errors (`info-disclosure`) to surface absolute paths (`/var/www/...`, `C:\inetpub\...`), DB host strings, and internal URLs.
4. **Reflected infra**: SSRF/metadata responses, PDF/exports/webhooks revealing the fetching host; mail headers (`Received:`) exposing internal relays/IPs.
5. Grep responses/JS for RFC1918 ranges, `*.internal/.corp/.svc.cluster.local`, cloud-internal (`*.compute.internal`, `metadata.google.internal`), and k8s service names.
## Modern / rare techniques
- **Host-header-reflected origin IP** → bypass CDN/WAF by hitting the origin directly (`waf-bypass`).
- **ETag/`Last-Modified` + server ID** correlation to fingerprint load-balanced backends.
- **TLS SAN / cert leaks** and default vhost responses exposing internal names → `vhost-discovery`.
## Escalation / chaining
Internal IPs/hosts seed `web-ssrf` targets, `network-pentest` scope, and origin-IP WAF bypass. Chains with `info-disclosure`, `server-ident`, `host-header-injection`.
## Backend & tooling
Kali/HexStrike (curl/httpx -include-response-header/Burp). Proxy history to diff headers across hosts.
## Verification (background, before reporting)
Reproduce the leak independently; confirm the leaked IP/host is genuinely internal (not public) and consistent. Where it enables origin access, verify reachability via OAST/direct connect within RoE.
## Evidence
Request/response showing the leak, the internal IP/host/path, how it aids further attack, remediation (strip internal headers, use public hostnames in redirects, sanitize errors).