IAM UpdateLoginProfile PrivEsc
Exploit iam:UpdateLoginProfile to get access to an Amazon S3 bucket containing sensitive data that your IAM user should not have been able to access. This is very similar to iam:CreateLoginProfile with the only difference being the command that you issue. However, to make this lab more interesting, we've increased the difficulty just a little bit. The flag is the credit card number for "Joshua Lee" from the exfiltrated customers file.
- 5 guided tasks
- Capture the flag
- Terminal in the browser

Scenario
You have AWS CLI access as a low-privilege IAM user. The account holds an S3 bucket with sensitive customer data that your user cannot read. One other user can read that bucket, and your permissions let you reset that user's console password. You capture the flag when you read the sensitive S3 data and submit Joshua Lee's credit card number from the customers.txt file.
What you will learn
- Configure the AWS CLI with the access keys the lab gives you.
- Enumerate your IAM permissions to find your group policy.
- Read the allow and deny rules to pick the user you can target.
- Reset that user's console password with iam:UpdateLoginProfile.
- Sign in as that user and read the sensitive S3 data to capture the flag.