Interview Prep/DevSecOps/Foundations, Threat Modeling and OWASP

What is SSRF and why is it especially dangerous in cloud environments?

AdvancedConceptFoundations, Threat Modeling and OWASP
Answer

SSRF makes the server issue requests on the attacker's behalf, for instance a "fetch image from URL" feature pointed at http://169.254.169.254/latest/meta-data/iam/security-credentials/. In cloud, the instance metadata service hands out IAM role credentials, so SSRF becomes credential theft.

Mitigations: enforce IMDSv2 (HttpTokens=required, hop limit 1), egress allow-lists, URL validation that resolves DNS and blocks private and link-local ranges (including after redirects), and least-privilege instance roles so stolen creds are not catastrophic.

All DevSecOps questions Roadmap: Security in the pipeline

More on Foundations, Threat Modeling and OWASP