What is SSRF? Server-side request forgery explained (2026)

SSRF tricks a server into fetching internal or cloud endpoints. How server-side request forgery works and the controls that stop it in 2026.

SSRF (server-side request forgery) is a web-application vulnerability where an attacker tricks a server into making requests to locations it should never reach — internal systems, cloud metadata endpoints, admin panels — by feeding it a URL it blindly fetches. The attack exploits trust between machines: the server does what an employee could not, because from inside the network, 'internal' means trusted.

TL;DR

What SSRF means in plain terms

Most web apps fetch things on a user's behalf: pull a preview image from a pasted link, generate a PDF from a URL, accept webhook callbacks, import data from a remote address. SSRF abuses that fetch. Instead of pointing the server at a normal address, the attacker points it at something the server can reach that a browser cannot — internal admin panels, databases, or the cloud provider's own metadata service.

Two variants:

Why SSRF is dangerous for any business running web apps

  1. Internal trust is the prize. Systems that assume 'internal = safe' — admin panels, databases, internal APIs — accept requests from the compromised server without authentication.
  2. Cloud metadata is the jackpot. On AWS, GCP and Azure, a special internal address serves instance credentials. SSRF against it has produced some of the largest cloud breaches on record — Capital One in 2019 is the canonical case.
  3. It chains. SSRF alone is a probe; combined with a stolen credential, a misconfigured container or an exposed API, it becomes a full intrusion path.

Australian context for why web-app security belongs in every security conversation: the Australian Signals Directorate logged more than 84,700 cybercrime reports in 2024-25 — one every six minutes — with small business averaging $56,600 per self-reported incident (ASD Annual Cyber Threat Report 2024-25). A single vulnerable web app is enough to land a business in that statistic.

How an SSRF attack runs

  1. Recon. The attacker finds a feature that takes a URL — link previews, PDF export, image import, webhook configuration.
  2. The swap. They replace the legitimate URL with an internal one: 169.254.169.254 (cloud metadata), localhost admin ports, internal IP ranges, file:// schemes.
  3. The fetch. The server makes the request from inside the network, where those addresses are reachable.
  4. The harvest. Basic SSRF returns internal page content; blind SSRF is confirmed through timing or callbacks to an attacker-controlled listener.
  5. The escalation. Stolen metadata credentials or an internal token are used against the cloud account or internal services — the intrusion now has real reach.

How to prevent SSRF

  1. Validate every user-supplied URL against an allow-list of approved hosts and schemes — deny by default.
  2. Block link-local and internal ranges (169.254.0.0/16, 127.0.0.0/8, 10.0.0.0/8, 192.168.0.0/16) on any service that fetches URLs.
  3. Isolate fetch services. Run URL-fetching features in a separate, restricted network segment with no credentials attached, so even a successful SSRF reaches nothing valuable.
  4. Restrict the metadata endpoint. Cloud providers offer metadata-session protections (IMDSv2 on AWS); enabling them closes the highest-value target.
  5. Patch and pen-test web apps. SSRF appears in nearly every major vulnerability list; annual penetration testing catches it before an attacker does.
  6. Monitor outbound requests from application servers for connections to unexpected internal addresses.

SSRF vs CSRF vs XSS

VulnerabilityWho is trickedWhat the attacker gains
SSRFThe serverInternal access, cloud credentials
CSRFThe user's browserActions performed as the user
XSSThe user's browserCode running in the user's session

The rows matter because the defences differ: SSRF is fixed in server code and network policy, while CSRF and XSS are fixed in the browser-facing application layer.

Where the human layer still matters

SSRF is a developer defect, not a user mistake — but it rarely travels alone. Intrusion chains that use SSRF almost always start with a person: a phished credential, a leaked API key in a public repo, a malware-stolen session token. Technical fixes reduce the SSRF surface; trained staff remove the chain's first link. Cyber Aware's security awareness training rehearses the phishing and credential-lure patterns that start these chains, and human risk reporting tracks whether click and report rates are actually improving month by month. For the technical control stack — patching, MFA, web-app testing, network segmentation — a cyber security gap assessment shows what is evidenced before an auditor or attacker asks.

FAQ

What is SSRF in simple terms? A vulnerability where a server is tricked into making requests to attacker-chosen addresses — usually internal systems or cloud metadata — because the server blindly fetches URLs it is given.

What is the difference between SSRF and CSRF? SSRF tricks the server into fetching something; CSRF tricks the user's browser into acting as the user. The first exposes internal systems, the second performs actions in a user's session.

Why is the cloud metadata endpoint such a big target? It serves temporary credentials for the instance's cloud role. SSRF against it has enabled some of the largest cloud breaches on record, including Capital One in 2019.

How do developers prevent SSRF? Allow-list outbound fetches, block internal and link-local IP ranges, isolate URL-fetching services, enable cloud metadata protections, and include SSRF in web-application penetration tests.

Does SSRF matter for a small business? Yes, if the business runs any web application that fetches URLs on a user's behalf — link previews, PDF generators, webhooks. The vulnerability is in the code, not the company's size.

Is SSRF only a technical problem? The vulnerability is technical, but the intrusion chains that use it usually start with a phished credential or a leaked key — a human moment training addresses directly.

One last thing

If your team runs any web app that accepts a URL, ask the developer one question this week: what stops a request to 169.254.169.254? If the answer is 'nothing', that is the highest-value SSRF fix available — and enabling metadata-session protection is usually a one-line change.

Related guides

Ready to deploy

Same playbook.
Your brand.

Cyber Aware's Human Risk Score works the same way for every MSP partner - under your brand, on your cadence.