Pcornel
Security · OWASP

SSRF

Cheat sheet · https://pcornel.dk/topic.php?topic=4776

Back to the Topic

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.

Remember

  • Attackers reach internal services and cloud metadata.
  • Allow-list destinations.
  • Block internal ranges at the network too.

First checks

  • URL fetch allowlist — SSRF prevention
  • Network egress restrictions for app servers — defence
  • Metadata service protection (IMDSv2) — cloud

Verify in this order

user-supplied URL → validation → restricted egress

Where it usually breaks

First mismatch in asset/subject identity → trust/authentication → authorization/policy → enforcement/control → telemetry/detection → protected outcome/response; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4776

Confirmation

Confirm action

Continue?