Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

SSRF · OWASP

Direct answer

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.

When to use this

Use this when an application fetches URLs supplied by users (OWASP A10).

First 30 seconds

1. SSRF (OWASP A10:2021).

2. Validate and allowlist destinations.

3. Block internal ranges.

4. Segment app servers.

5. Monitor unusual outbound requests.

Operational verification

user-supplied URL → validation → restricted egress

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Security architecture and operations
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformSecurity architecture and operations
Scope / prerequisiteUse this when an application fetches URLs supplied by users (OWASP A10).
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Attackers reach internal services and cloud metadata.
  • Allow-list destinations.
  • Block internal ranges at the network too.
Key checks
  • 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:

ControlPurpose
Avoid fetching user-supplied URLsRemove the feature or use allow-lists
Validate resolved IP addressesBlock internal, loopback, link-local ranges; re-check after redirects
Disable redirects or re-validate themPrevent bypass
Separate network for fetching servicesLimit reachable targets
Cloud metadata protectionIMDSv2 (token required), block metadata from containers

Network egress controls are an important backstop when application validation fails.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docSecurity architecture and operations current

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%
Confirmation

Confirm action

Continue?