SSRF (Server-Side Request Forgery)
SSRF (Server-Side Request Forgery) is a vulnerability where an attacker gets the server to make outbound requests to URLs of the attacker's choice — commonly to cloud metadata endpoints, internal services, or file:// URIs.
Why it matters
SSRF is category A10 in the OWASP Top 10 for Web Applications and a recurring root cause of cloud breach incidents. The server has network access to resources the attacker does not — cloud metadata services, internal admin consoles, private VPC endpoints, container orchestration APIs — and SSRF turns any outbound-fetch functionality (URL preview, PDF rendering, webhook delivery, file import) into a conduit.
Variants
- Basic SSRF — the server fetches the attacker-supplied URL and returns the response body.
- Blind SSRF — the response body is not returned, but side channels (DNS, timing, error messages) still reveal reachability.
- Cloud metadata SSRF — target
169.254.169.254for IMDS credentials. IMDSv2 and session-token requirements mitigate. - Protocol smuggling —
gopher://,dict://,file://to reach non-HTTP services or read local files.
Defence
Allow-list of destinations; block loopback / link-local / RFC1918 ranges; resolve DNS once and validate the resolved IP; disable unused protocols at the HTTP client; use IMDSv2 on AWS; isolate outbound-fetch workloads from sensitive internal networks.
For a technical deep-dive see our SSRF cloud exploitation post.