WIZ Bug Bounty Master Class: SSRF Vulnerability on Major Gaming C
A content-fetching service accepted a user-supplied URL and made a server-side request to it without validating the destination. An attacker could point it at the cloud metadata endpoint and read the instance's IAM role credentials.
Published on jareddouville.medium.com
AWS Metadata Hack exploits a Server-Side Request Forgery (SSRF) vulnerability to trick an EC2 instance into revealing temporary IAM credentials via the local metadata service at 169.254.169.254. This allows attackers to assume the instance’s identity, potentially accessing sensitive data and moving laterally within…
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
Impact
An attacker could obtain temporary IAM credentials for the instance, potentially accessing sensitive data and moving laterally within the AWS environment.
What the attacker needed
Access to the content fetcher feature; ability to supply a URL
How it was found
- Identify the content fetcher service and its url parameter.
- Submit a request to the metadata endpoint at 169.254.169.254.
- Observe the server returning a directory listing of internal metadata.
- Request the IAM security credentials path to extract temporary credentials.
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 website had a feature that fetched content from a web address you gave it. The server did the fetching, not your browser. Because it did not check where it was connecting, someone could make it connect to a special internal cloud address that holds secret login keys for the server.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.