“Day 5: SSRF — How I Hacked AWS Keys & Stole $15,000 in Cloud Credits”
A document converter API accepted a user-supplied URL and fetched it server-side, allowing access to internal services and the AWS metadata endpoint. The attacker obtained IAM credentials and used them to access cloud resources, reportedly earning a $15,000 bounty.
Published on infosecwriteups.com
Three months ago, I found a “low-severity” SSRF (Server-Side Request Forgery) in a SaaS company’s API. What started as a simple internal port scan turned into full AWS access, stolen credentials, and $15,000 in free cloud credits.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the API did not validate or restrict the destination URL before making the server-side request, allowing access to internal and metadata endpoints.
Impact
The attacker could read internal services and obtain AWS credentials, potentially leading to full cloud access and exposure of customer data.
What the attacker needed
Access to the document converter API
How it was found
- Identify the document converter endpoint that accepts a URL.
- Change the URL to an internal address and observe the response.
- Request the AWS metadata credentials endpoint through the same parameter.
- Use the returned credentials to enumerate IAM roles and cloud resources.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The application had a feature that downloaded a file from a web address you gave it. The server did the downloading, so by giving it an internal address the attacker made the server talk to systems that are not normally reachable from the internet, including a special cloud address that hands out temporary passwords. With those passwords the attacker could use the company's cloud account.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.