🚀 أصبحت CloudSek أول شركة للأمن السيبراني من أصل هندي تتلقى استثمارات منها
اقرأ المزيد
Web server that fetches a URL on request is doing something ordinary, until an attacker chooses the URL. Server-side request forgery (SSRF) abuses exactly that feature, tricking a server into sending requests to destinations the attacker picks, from internal admin panels to cloud credential stores.
Because the request comes from the trusted server, it reaches places the public internet cannot. SSRF entered the OWASP Top 10 in 2021 as the only category chosen purely by community survey. In the cloud, a single SSRF flaw is enough to expose an entire account, as it did in the Capital One breach of 106 million records.
Server-side request forgery is a web vulnerability that lets an attacker make a server send requests on their behalf to targets the attacker specifies. It turns a trusted server into an unwilling proxy, a confused deputy that carries out the attacker's instructions with its own privileges and network access.
That network position is the whole point. A server usually sits inside the perimeter, able to reach internal services, databases, and cloud metadata endpoints that block direct access from outside. SSRF borrows that reach, letting an outsider knock on internal doors through a server allowed to open them.
SSRF exploits a common feature in three steps.

Many applications accept a URL from the user, for link previews, webhooks, document conversion, or image fetching, then request that URL server-side. When the application fetches it without validating the destination, the door opens.
The attacker supplies a URL pointing somewhere unintended, an internal IP, localhost, or a cloud metadata address, instead of the expected external resource. The server, trusting its input, sends the request anyway.
The request lands on a resource the attacker cannot reach directly. Depending on the target, the response leaks internal data, service details, or cloud credentials back through the vulnerable application.
A concrete example makes the pattern clear. A link-preview feature normally fetches the external page a user names:
https://example.com/page
An attacker instead supplies an internal address, and the trusting server fetches it and returns the result:
http://169.254.169.254/latest/meta-data/iam/security-credentials/
That single request pulls the temporary cloud credentials of the server's role straight back to the attacker.
SSRF varies by how much of the response the attacker sees:
A single SSRF flaw opens several attack paths:
How far any of these reach depends on the vulnerable server's position and privileges. Finding which internet-facing apps and APIs accept URLs in the first place, through external vulnerability scanning, is what turns SSRF from an invisible risk into a fixable one.
SSRF became a cloud problem because of one address. Every major cloud provider runs an instance metadata service, reachable only from the machine itself at a fixed internal address such as 169.254.169.254. It hands out configuration and, critically, the temporary credentials for the identity role attached to the instance.
The 2019 Capital One breach followed that path exactly. An attacker exploited SSRF in a misconfigured web application firewall to reach the AWS metadata endpoint, retrieved the credentials of the firewall's over-privileged role, and used them to read storage buckets holding roughly 106 million customer records. As Krebs on Security detailed, no password was cracked; the server was simply persuaded to ask the metadata service for its own keys.
AWS answered with IMDSv2, which requires a session token obtained through a request that most SSRF cannot send. It hardens the metadata service without removing the underlying flaw, which is why SSRF stays dangerous wherever the older version remains enabled.
SSRF keeps surfacing in critical software, often chained into far worse outcomes:
Both share the SSRF fingerprint: a server persuaded to make a request it was never meant to make, against a target the attacker chose.
SSRF and CSRF sound alike and get confused constantly, yet they target opposite sides of a web transaction.
In short, SSRF abuses the server's trusted network position, while CSRF abuses a site's trust in an already authenticated user.
Naive defenses that blocklist internal addresses rarely hold, because attackers disguise the same destination in many ways:
AI infrastructure has become fresh ground for SSRF. Large language model applications, agent frameworks, and the Model Context Protocol (MCP) servers that connect AI to external tools constantly fetch URLs, call APIs, and process user-supplied content, the exact pattern SSRF abuses.
The exposure is already measurable. CloudSEK's analysis of an unauthenticated MCP server traced a chain from SSRF to local file access to AWS credential theft, and research it cited found more than a third of thousands of MCP servers examined were vulnerable to SSRF. Thousands of these servers sit exposed on the public internet.
High-severity SSRF flaws in AI-adjacent products underline the trend. A 2025 SSRF vulnerability in Azure OpenAI, scored at the maximum CVSS 10.0, let attackers retrieve managed identity tokens, extending the metadata-theft pattern from cloud servers to modern AI services.
SSRF defense works in layers, since no single control covers every bypass.

Testing for SSRF combines manual probing with out-of-band detection, supplying URLs that point to a monitored server and watching for callbacks. Tools such as Burp Suite's Collaborator confirm blind SSRF this way.
SSRF severity ranges from minor information disclosure to full cloud account takeover, and credential-theft cases routinely score 8.8 to 9.8 on the CVSS scale. Impact depends on what the vulnerable server reaches.
No, a WAF gives limited protection and often misses SSRF entirely, as the Capital One breach showed when the attack passed through a misconfigured WAF. Allowlisting and egress filtering are stronger controls.
An open redirect sends a user's browser to an attacker-chosen URL, while SSRF makes the server itself send the request. Attackers often chain an open redirect to bypass SSRF allowlists.
Yes, where the server's client supports the file scheme, SSRF reaches local files such as configuration and credential stores. Disabling unused URL schemes removes this path.
No, SSRF threatens any server that fetches URLs, whether cloud-hosted or on-premises, by reaching internal networks and services. Cloud metadata endpoints simply make the impact more severe.
