Skip to content
SSRF Write-up Intermediate

“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.

Aman Sharma Follow

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.

Aman Sharma, on infosecwriteups.com

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

  1. Identify the document converter endpoint that accepts a URL.
  2. Change the URL to an internal address and observe the response.
  3. Request the AWS metadata credentials endpoint through the same parameter.
  4. 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.

More by Aman Sharma

View all

34 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.