OSWA · Module 13
Server-side Request Forgery
Discover and exploit SSRF to reach internal services, steal cloud metadata credentials, read local files, and bypass destination filters.
~2 h 2 resources Last updated September 26, 2026
Server-side request forgery (SSRF) tricks the server into making HTTP or other requests on the attacker's behalf. Because the request originates from the server, it can reach internal services, cloud metadata endpoints, and resources that are firewalled off from the internet. SSRF is a high-impact bug: it turns a web application into a proxy into the internal network and, in cloud environments, into a path to credential theft and full account compromise.
SSRF Discovery
Detection looks for any feature where the server fetches a URL: webhooks, URL previews, PDF generators, image loaders, and XML input. Out-of-band callbacks confirm the server makes the request, cloud metadata probes test for high-value internal endpoints, and redirect chains and XML-based vectors expose less obvious SSRF. Cataloging every server-initiated request is the core of discovery.
SSRF Exploitation
Exploitation targets cloud metadata services (AWS IMDS, GCP, Azure) for credential theft, reaches internal-only services, reads local files via file://, and uses the gopher protocol for raw TCP to interact with non-HTTP services. Blind SSRF requires inference techniques, and filter bypasses (alternate encodings, DNS rebinding, redirect abuse) defeat allowlists and blocklists that try to constrain the destination.
Read
The core material for this module. Where a guide goes deeper than needed, the relevant sections are highlighted.
Practice
Apply the module hands-on.
- OWASP NodeGoat Standalone Training
- SSRF (Server-Side Request Forgery) PortSwigger Mixed
- Editorial HackTheBox Easy
- Intro to SSRF TryHackMe Easy
- Forge HackTheBox Medium
- Kotarak HackTheBox Hard
- Nimbus HackTheBox Hard