Not Just a Ping: How SSRF Opened the Gateway to Internal Secrets
An endpoint that fetched user-supplied URLs allowed server-side requests to the cloud metadata service, exposing temporary AWS credentials. The attacker could then use those credentials to access cloud resources.
Free Link🎈
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 URL-fetching endpoint did not restrict which addresses it could reach, allowing requests to the cloud metadata service.
Impact
The attacker obtained valid AWS credentials that could be used to access S3 buckets, EC2 and RDS, potentially leading to full infrastructure compromise.
What the attacker needed
Access to the fetch_url endpoint; no authentication mentioned
How it was found
- Find the fetch_url endpoint that takes a url parameter.
- Point the url parameter at an external callback server and confirm the server makes the request.
- Change the url parameter to the cloud metadata address and retrieve the metadata root.
- List the IAM role name from the metadata service.
- Request the credentials for that role and obtain the access key, secret key and token.
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 took a web address from the user and fetched it on the server's behalf. The attacker pointed it at a special internal address that cloud servers use to hand out temporary passwords, and the server returned them. With those passwords, the attacker could reach the 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.