Skip to content
SSRF Write-up Intermediate

️ DNS and Deception: How SSRF and Metadata Gave Me Cloud Access

An internal PDF export endpoint accepted external URLs and was vulnerable to server-side request forgery (SSRF). The attacker used this to access cloud metadata services and exfiltrate IAM credentials via DNS or webhook, potentially gaining cloud access.

iski Follow

Published on infosecwriteups.com

Free Link 🎈

Iski, 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 PDF export endpoint did not validate or restrict the URLs it fetched, allowing requests to internal IP addresses such as the cloud metadata service.

Impact

The attacker could obtain cloud IAM credentials, potentially leading to full cloud account access, though the text does not specify the exact extent of access achieved.

What the attacker needed

Internal PDF export endpoint accessible; endpoint accepts external URLs; no authentication required

The fix

The endpoint should be fixed by blocking internal IPs, implementing SSRF protection with allowlists and DNS pinning, and applying least privilege to IAM roles.

How it was found

  1. Found an internal PDF export endpoint via recon.
  2. Confirmed SSRF by pointing it to a request bin and receiving a GET request.
  3. Targeted the AWS metadata URL for IAM security credentials.
  4. Used DNS or webhook exfiltration to leak the IAM role name and credentials.
  5. Retrieved cloud tokens and submitted an impactful bug report.

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 PDF export tool fetched any web address given to it, including internal cloud addresses that hold secret keys. The attacker made the server fetch its own cloud metadata and send the secret keys out through a DNS lookup or webhook, which could let them control cloud resources.

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 iski

View all

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