server-side request forgery
An attack where a server is tricked into fetching a URL the attacker chose, reaching internal systems the attacker cannot reach directly.
The server's network position and credentials are used against your own internal systems.
In more detail
A common target is the cloud instance metadata service at 169.254.169.254, which can hand out credentials. The fix is an allowlist of hosts the server may contact, checked after resolving the address.
Example
In the course the server fetches http://169.254.169.254/latest, the cloud instance metadata service that can hand out credentials.Related terms
- instance metadata service — An endpoint inside every cloud virtual machine, at 169.254.169.254 on AWS, that hands the machine its settings and its role's temporary credentials.
- allowlist — An allowlist names exactly what is permitted and a denylist names what is forbidden, with everything else allowed.
Taught in
- The Bill That Jumped Overnight: Spotting Attacks — CompTIA Cloud+ (CV0-004) Exam Prep
- Server-Side Request Forgery — Application Security & Threat Modeling for Engineers