Server-side request forgery (SSRF)

A flaw in which an attacker makes a server send requests to a destination of the attacker's choosing, often internal systems or cloud metadata services that the attacker cannot reach directly.

Server-side request forgery (SSRF) occurs when an application fetches a resource from a URL or address that a user supplies, without checking that the destination is one it should contact. MITRE catalogues it as CWE-918. The attacker usually cannot reach internal systems directly but the server can, so the attacker uses it as a proxy: to read internal pages, probe the internal network, or query a cloud metadata service that may return temporary credentials. Link previews, image fetching and webhooks are common entry points.

SSRF was its own category, A10, in the 2021 OWASP Top 10. The 2025 edition rolls it into Broken Access Control: the server reaches resources the requester should not. Unlike cross-site request forgery, where the victim’s browser sends the forged request, here the server sends it. Defences commonly combine an allowlist of destinations checked after the address is resolved, refusing redirects, not returning raw responses, and network segmentation that limits what the server can reach. Input validation alone is weak, as internal addresses can be disguised.

Exam relevance: a scenario in which a web server is made to request an internal address or a cloud metadata endpoint is likely to point to SSRF. Candidates are expected to tell it apart from CSRF by asking which side sends the forged request.