SSRF
Server-Side Request Forgery
A vulnerability that tricks a server into sending unauthorized requests, often to internal systems.
In Simple Terms
SSRF is a security weakness that lets an attacker make a server send requests to places it was never meant to reach. For example, if a feature loads an image from a URL, someone could enter the address of an internal company system, and the server would go and access it on their behalf. This can make secret information easy to leak, so a common defense is to limit which destinations the server is allowed to contact.
Behind the Name
SSRF is short for Server-Side Request Forgery. The name describes the technique itself: the attacker gets the server to create a forged request and then abuses it.
Take a Closer Look!
SSRF is a security weakness that tricks a website's server into sending requests to a place the attacker chose.
Put simply, the attacker uses a trusted server as a stepping stone to reach places they normally couldn't get into.
Many web services have features where the server fetches an image or some data from elsewhere, based on a URL the user typed in.
An attacker slips in a URL that points not to an outside site, but to the company's internal network or to the server itself.
If the protections are weak, the server assumes it's just doing its job, sends a request inside, and ends up reading secret data.
When SSRF is exploited, customer data and configuration files that were never made public can be stolen.
In systems running in the cloud, important management keys can be taken, which can lead to the whole system being hijacked.
To prevent this, common defenses include narrowing the destinations the server may contact to a predefined range and blocking requests to internal addresses.