Premium Hands-on labintermediatered teamAWS
Exploiting Lambda SSRF to Access S3 Buckets
Exploit a Lambda function’s SSRF vulnerability to compromise an e-commerce application, gaining unauthorized access to an S3 bucket. Capture the flag by retrieving a specific object stored in the bucket.
- 8 guided tasks
- Capture the flag

Scenario
This lab simulates an attack path where an attacker can access an object in an S3 bucket by taking advantage of an e-commerce web application and its serverless API via an SSRF vulnerability hosted on AWS Lambda with public URL.
What you will learn
- Explore the Dragon Shop app and reach its serverless API directly
- Enumerate hidden endpoints with a directory brute-force scan
- Find and confirm the SSRF flaw in the image-fetch endpoint
- Read the Lambda's environment through file:// and steal its temporary AWS credentials
- Use the stolen credentials to reach the private S3 bucket and capture the flag
Hands-on lab
Exploiting Lambda SSRF to Access S3 Buckets
Included in Cybr Premium.