Skip to content
SSRF Write-up Intermediate

How I Turned a Low Blind SSRF Into a Critical Vulnerability With

A profile picture URL parameter was vulnerable to blind SSRF, and the fetched content was saved to a publicly accessible S3 bucket as an HTML file. An attacker could use this to read AWS instance metadata, steal IAM credentials, and upload a stored XSS payload to the bucket.

DrakenKun Follow

Published on medium.com

السلا� عليك� , My Name is Amr Mustafa and happy to share with you my latest critical finding on this writeup. Don’t forget to grab a cup of coffee, and let’s get started !!

DrakenKun, on medium.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 server fetched a user-supplied URL without validating or restricting the destination, and then stored the response in a publicly accessible location.

Impact

An attacker could steal AWS IAM credentials, read instance metadata, and upload a stored XSS payload to the public S3 bucket, though the IAM user had low privileges and could not list the bucket.

What the attacker needed

A free account; a connected Facebook account; ability to intercept requests

How it was found

  1. Create an account and connect a Facebook account.
  2. Intercept the profile update request and note the profile_picture_url parameter.
  3. Replace the URL with a Collaborator link and observe HTTP and DNS interactions.
  4. Visit the profile page source and find the fetched content saved as an HTML file in the S3 bucket.
  5. Replace the URL with the AWS metadata endpoint to retrieve IAM credentials.
  6. Use the stolen credentials with the AWS CLI to list and upload files to the S3 bucket.

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 let users give a link to a profile picture, and the server fetched that link without checking where it pointed. Because the server saved whatever it fetched into a public file, an attacker could make the server fetch secret internal cloud information and then read it from the public file.

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 DrakenKun

View all

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