Nullify

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Product Security Terms›
Server-Side Request Forgery

Product Security Terms

Server-Side Request Forgery

NT
Tim Thacker
November 29, 2026

What Is
Server-Side Request Forgery
?

Server-side request forgery (SSRF) is a vulnerability in which an application fetches a URL or other remote resource that a user controls without checking where the request goes. An attacker can make the server send requests to internal services, cloud metadata endpoints or other systems the attacker can't reach directly.

Also known as:

SSRF, CWE-918

What Server-Side Request Forgery Means

Many applications fetch remote resources on a user's behalf: they preview a link, import a file from a URL, call a webhook or load an image from another host. Server-side request forgery happens when the application takes that destination from user input and doesn't make sure it points where it should. MITRE tracks it as CWE-918 and describes a server that receives a URL from an upstream component and retrieves its contents without ensuring the request is sent to the expected destination. OWASP listed SSRF as its own category, A10, in the OWASP Top 10 2021.

How an SSRF Attack Works

Suppose an endpoint accepts ?url=https://example.com/logo.png and downloads the file from the server. An attacker swaps the value for http://localhost:8080/admin or an internal host name, and the server makes the request for them. Because the request comes from the server, it can reach hosts and ports that a firewall, VPN or network access control list blocks from the internet. MITRE notes that the server acts as a proxy, which hides where the attack really came from. In a full SSRF the attacker sees the response. In a blind SSRF they only learn from side effects, such as timing or a callback to a server they control.

Where SSRF Shows Up

  • URL fetchers and link previews. Features that download a page, image or document from an address the user supplies.
  • Webhooks and integrations. Settings that let a user register a callback URL the server will call later.
  • File and document importers. Import-from-URL features, PDF renderers and image processors that follow embedded links.
  • Proxies and API gateways. Services that forward requests to a host or path taken from the request.
  • XML parsers. XML external entity (XXE) flaws can make a parser fetch an attacker-chosen URL, which turns them into SSRF.

Why SSRF Matters

SSRF is most dangerous in the cloud. Cloud instances expose a metadata service at a link-local address that can return details about the instance, and in some setups temporary credentials for the role it runs as. If an attacker can make the server call that address, a single SSRF flaw can turn into access to cloud resources. AWS built version 2 of its Instance Metadata Service (IMDSv2), which requires a session token, partly to add protection against SSRF. SSRF can also reach internal admin panels, databases and other services that were never meant to face the internet, and it is often the first step in a longer attack chain.

How to Prevent SSRF

  • Validate and sanitize every URL that comes from a client, and enforce an allowlist of permitted schemes, hosts and ports. OWASP advises against relying on deny lists or regular expressions, because attackers have many ways around them.
  • Resolve the host name and check the resulting IP address, so redirects and DNS tricks can't point the request at an internal range.
  • Don't follow HTTP redirects by default, and don't send raw responses back to the client.
  • Segment the network so the service that fetches remote resources can't reach internal systems, and use deny-by-default firewall rules.
  • On AWS, require IMDSv2 and give instances only the permissions they need.

How Nullify Finds SSRF

Nullify code analysis covers server-side request forgery (CWE-918). It detects pivot chains that reach cloud metadata services, internal control planes or partner APIs. Its top-down analysis traces user input such as HTTP requests, API calls and file uploads through application logic to find unsafe data flows, and its bottom-up analysis works backward from vulnerable operations to determine whether untrusted data can reach them. Nullify reviews the changed code when a pull request is opened or updated, so a new unchecked fetch is caught before it merges. Nullify pentests also test for SSRF with cloud metadata access. Explore Nullify Code Security.

Key Takeaways

  • Server-side request forgery means an application fetches a user-controlled URL without checking where the request goes.
  • MITRE tracks it as CWE-918, and OWASP listed it as A10 in the OWASP Top 10 2021.
  • Attackers use it to reach internal services and cloud metadata endpoints that aren't exposed to the internet.
  • URL allowlists, IP checks after DNS resolution, network segmentation and IMDSv2 are the main defenses.

Read More About
Server-Side Request Forgery

Code Security

See Nullify in Action

Find user input reaching outbound requests before it ships.

Explore Code Security

Reduce your vulnerability backlog and lower your MTTR

The AI harness that finds, proves and fixes vulnerabilities across your codebase.

Book a demo