Skip to content

QuizNot attempted

Why SSRF is dangerous

Your server runs await fetch(req.body.url) to preview links. Why is that dangerous?
1–4 to choose, Enter to submit
Show answer & explanation

Correct answer:

  • The server can reach internal services (databases, 169.254.169.254 cloud metadata) that the attacker cannot reach directly
  • With SSRF your server becomes the attacker's proxy inside your network: it can reach internal services and the cloud metadata endpoint (169.254.169.254), which can hand out credentials.
  • Not slower page loads: a performance concern, not a vulnerability.
  • Not users' cookies: a server-side fetch doesn't carry browsers' cookies.
  • Not Windows-only: it is OS-independent.
  • Fix with a host allowlist and by blocking private ranges and localhost (after DNS resolution).