Classification
- CWE-918 Server-Side Request Forgery.
- OWASP Top 10 2021: A10 Server-Side Request Forgery.
- OWASP API Security Top 10 2023: API7 Server Side Request Forgery.
Where SSRF hides
- Parameters named url, uri, link, callback, webhook, feed, image, avatar or import.
- Link previews, PDF and image renderers, and document converters that fetch embedded resources.
- Webhook configuration in SaaS integrations.
- XML parsers resolving external entities (XXE can act as SSRF).
- Redirect-following HTTP clients, where an allowed host redirects to a forbidden one.
How SSRF is proven
The most reliable first proof is out-of-band: point the parameter at a unique hostname on infrastructure you control and record the DNS lookup or HTTP request from the target's IP address. That shows the server dereferences the parameter even when the response says nothing (blind SSRF). Stronger, agreed-in-advance proof shows reach into something internal, such as a localhost-only status page. A missing callback does not prove safety: egress filtering or a slow job queue can hide it.
Remediation
Prefer not to fetch user-supplied URLs at all; where you must, allow-list destinations rather than block-listing. Resolve the hostname once, validate the IP against private, loopback and link-local ranges, and connect to that IP to avoid DNS rebinding. Disable redirects or revalidate each hop. Enforce IMDSv2 or equivalent on cloud instances and restrict egress at the network layer.
How Pentest-Swarm tests for SSRF
SSRF is one of the classes Pentest-Swarm proves with an out-of-band oracle that sits outside any model.
- The exploit agent's adaptive sweep finds URL and host sink parameters (url, redirect, webhook, image, and any URL-shaped value).
- Each is pointed at an interactsh callback; a request from the target to that callback is the proof and badges the finding VERIFIED.
- Silence is never reported as a finding or as safe, because an out-of-band oracle cannot disprove.
- Requires interactsh-client on the PATH; scope checks apply before any probe leaves the process.
- A safe verify chain exists for the SonicWall SMA1000 SSRF-to-RCE chain.
Where it falls short
Pentest-Swarm proves that the server makes the request; it does not, by default, go on to pull cloud credentials or pivot into internal systems, which is the right default for production. If you need impact demonstrated (for example, metadata access), agree it in the rules of engagement and have a tester do it deliberately. Egress-filtered environments may leave real SSRF unproven.
Questions
What is blind SSRF?
SSRF where the response to the attacker shows nothing about the fetched content. It is proven with an out-of-band callback instead.
Why is SSRF dangerous in AWS?
With IMDSv1, a GET to the metadata address can return temporary IAM credentials for the instance role. IMDSv2 requires a session token that simple SSRF usually cannot obtain.
Is a block-list of internal IPs enough?
Rarely. Alternative IP encodings, IPv6, DNS rebinding and redirects routinely bypass block-lists.