SSRF to credential theft
Your task
Your WAF/app logs show a public image-fetch feature ('preview URL') being called with internal/loopback targets: http://169.254.169.254/latest/meta-data/iam/security-credentials/. Shortly after, CloudTrail shows the web tier's instance role making API calls (s3:GetObject across multiple buckets, then sts:GetCallerIdentity) from an external IP that is NOT your infrastructure. The image-preview feature shipped last sprint and fetches any user-supplied URL server-side. How do you triage, contain, and remediate this SSRF-to-credential-theft incident?
It covers
- Ssrf
- Metadata theft