GRC Careers

HomeResourcesServer-Side Request Forgery (SSRF)

CS-061 · Application Security

Server-Side Request Forgery (SSRF)

An attack that makes a server send requests to targets the attacker chooses.

Executive Summary

Server-side request forgery, or SSRF, is an attack in which an application is tricked into making requests to a destination the attacker controls or chooses, including internal systems the attacker could not reach directly. Because the request comes from a trusted server, it can bypass network boundaries and reach sensitive internal services. The core defenses are strict allowlists for outbound requests and network controls that limit what the server can reach.

What It Is

SSRF occurs when an application takes a user-supplied address or resource identifier and fetches it on the server side without properly restricting where it can go. Applications legitimately fetch remote resources for many reasons, such as loading a URL, importing a file, or calling a webhook. If the destination is not tightly controlled, an attacker can point it at internal addresses, cloud metadata services, or other systems that trust requests coming from inside the network. The server becomes a proxy that reaches places the attacker cannot reach from the outside. SSRF has become especially significant in cloud environments, where an internal metadata endpoint may expose sensitive configuration if it can be reached.

Why It Matters

SSRF is dangerous because it defeats the assumption that internal systems are safe simply because they are not directly exposed to the internet. By abusing a trusted server, an attacker can scan internal networks, reach administrative interfaces, and in cloud environments potentially retrieve credentials or configuration from internal metadata services. That can escalate from a single flawed feature to broad access. SSRF has been recognized as a distinct, high-priority web application risk, which means anyone building features that fetch remote resources needs to understand and prevent it.

How It Works

At a conceptual level, SSRF works because the application trusts a destination that the attacker can influence. The strongest defense is to restrict outbound destinations to a strict allowlist of known, required hosts rather than trying to block bad ones, since blocklists are easily bypassed through alternate encodings and redirects. Validate and resolve the destination safely, and reject requests to internal address ranges and metadata endpoints. Network controls add a critical layer: place the fetching component where it cannot reach sensitive internal services, and require internal services to authenticate rather than trusting any request from inside. Handling redirects carefully and not returning raw fetched responses to the user further reduce what an attacker can learn or reach.

Architecture Diagram

User supplies a destination to fetchApplication fetches it on the server sideUnsafe: server reaches internal or metadata addressSafe: allowlist rejects non-approved destinationsNetwork controls block access to sensitive internal services
SSRF turns a trusted server into a proxy; an allowlist and network limits stop it reaching internal targets.

Visual Workflow

Find every feature where the server fetches a user-influenced destination.Restrict destinations to a strict allowlist of required hosts and protocols.Reject internal address ranges and cloud metadata endpoints explicitly.Resolve and validate addresses safely, and control how redirects are followed.Isolate the fetching component so it cannot reach sensitive internal services.Require internal services to authenticate, then test and re-test the controls.

Common Attacks

Common Mistakes

Best Practices

Quick Checklist

Recommended Tools

Egress network controls
Limit which destinations a server component can reach outbound
Dynamic application security testing (DAST)
Probes remote-fetch features for SSRF behavior
Static application security testing (SAST)
Flags user-influenced destinations passed to fetch operations
Network segmentation
Separates fetching components from sensitive internal services

Industry Standards

OWASP Top 10
SSRF is recognized as a distinct high-priority web application risk
OWASP Application Security Verification Standard (ASVS)
Testable requirements for controlling server-side requests
CWE-918
The Common Weakness Enumeration entry for server-side request forgery

Career Relevance

SSRF is a priority topic for application security engineers, penetration testers, and secure code reviewers, especially in cloud-heavy environments where the impact can be severe. Developers building importers, webhooks, and preview features are expected to prevent it with allowlists and isolation, and cloud and platform engineers enforce the network controls that contain it. For the AI-Governance-Jobs.com audience, SSRF has become a frequent modern interview topic.

Interview Questions

Related Certifications

GIAC Web Application Penetration Tester (GWAPT) Offensive Security Web Assessor (OSWA) CompTIA Security+

Further Reading

Key Takeaways

Download PDFDownload PNG

FAQ

Why is SSRF a bigger deal in the cloud?

Cloud environments often expose an internal metadata service that can return configuration and credentials to requests from inside the instance. If SSRF can reach that endpoint, an attacker may retrieve sensitive material, which is why blocking metadata access is a priority.

Why not just block internal addresses?

Blocklists are fragile. Attackers use alternate encodings, unusual hostnames, and redirects to slip past them. A strict allowlist of approved destinations, combined with network egress controls, is far more reliable.

Is SSRF only about fetching URLs?

No. Any feature where the server acts on a user-influenced destination can be at risk, including webhooks, file importers, document converters, and link previewers. Each should restrict where the server is allowed to reach.

Get all 116 reference sheets
The complete AGJ Cybersecurity Professional Reference Library, print-ready PDFs and PNGs.
Browse the library

Related Careers

Related certifications

GIAC Web Application Penetration Tester (GWAPT)Offensive Security Web Assessor (OSWA)CompTIA Security+

Current openings

Live openings appear on the web version. Browse the job board for current GRC and security roles.
Browse all jobs

Suggested learning path

  1. Ground the basics with CS-001 Cybersecurity
  2. Study this sheet: Server-Side Request Forgery (SSRF)
  3. Go deeper: OWASP Top 10
  4. Go deeper: SQL Injection
  5. Validate it: work toward GIAC Web Application Penetration Tester (GWAPT)
  6. Find the role: browse current openings

Related sheets

More in Application Security

Share this LinkedIn Facebook X Email