Use this when an application fetches URLs supplied by users (OWASP A10).
SSRF · OWASP
SSRF in the OWASP Top 10 (A10:2021) is when an application fetches a user-supplied URL and can be tricked into reaching internal systems or cloud metadata endpoints. Allow-list destinations and block internal ranges.
1. SSRF (OWASP A10:2021).
2. Validate and allowlist destinations.
3. Block internal ranges.
4. Segment app servers.
5. Monitor unusual outbound requests.
user-supplied URL → validation → restricted egress
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Testing for SSRF Verify boundary
- Point URL parameters at a collaborator/OAST server (Burp Collaborator, interactsh) and watch for callbacks.
- Try
http://127.0.0.1,http://169.254.169.254/latest/meta-data/,http://[::1]and decimal/hex IP forms. - Test redirects from an allowed domain to an internal address.
- Check whether responses or timing reveal internal ports (blind SSRF).
Step 2 Common mistakes Narrow the fault
- Letting servers fetch user-supplied URLs without allow-lists.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Attackers reach internal services and cloud metadata.
- Allow-list destinations.
- Block internal ranges at the network too.
- URL fetch allowlist — SSRF prevention
- Network egress restrictions for app servers — defence
- Metadata service protection (IMDSv2) — cloud
ReferenceWhy it matters1 section · depth on demand
Examples and defences
Example: an image-preview feature fetches http://169.254.169.254/latest/meta-data/iam/security-credentials/ and leaks cloud credentials.
Defences:
- Allowlist destination hosts and schemes; reject everything else.
- Resolve the hostname and block private, loopback and link-local addresses (and re-check after redirects; watch for DNS rebinding).
- Run the fetcher in a network segment without access to internal services.
- Require IMDSv2 on AWS (session token) so a simple GET cannot read metadata.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Server-Side Request Forgery (SSRF) became its own Top 10 category because cloud architectures made it more dangerous: a server tricked into making requests can reach internal services and cloud metadata endpoints that expose credentials.
Prevention in application design:
| Control | Purpose |
|---|---|
| Avoid fetching user-supplied URLs | Remove the feature or use allow-lists |
| Validate resolved IP addresses | Block internal, loopback, link-local ranges; re-check after redirects |
| Disable redirects or re-validate them | Prevent bypass |
| Separate network for fetching services | Limit reachable targets |
| Cloud metadata protection | IMDSv2 (token required), block metadata from containers |
Network egress controls are an important backstop when application validation fails.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in OWASP → SSRF. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://owasp.org/www-project-application-security-verification-standard/ · confidence 94%