Skip to content
SSRF Write-up Intermediate

Easy SSRF from Wayback Machine

A web application accepted a URL parameter and fetched it server-side to generate a PDF, allowing the attacker to make requests to internal addresses. The attacker used this to reach the AWS instance metadata service and retrieve secret and access tokens.

Khaled Mohamed Follow

Published on web.archive.org

Khaled Mohamed

Khaled Mohamed, on web.archive.org

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 application fetched user-supplied URLs without validating or restricting them to external, allowed destinations.

What the attacker needed

A URL parameter that the server fetches; The server can reach internal or metadata addresses

How it was found

  1. Find a URL parameter that the application fetches server-side.
  2. Replace the URL with an external callback URL to confirm the server makes the request.
  3. Check the callback IP to identify the cloud provider.
  4. Request the cloud metadata endpoint to read internal data.
  5. Retrieve secret and access tokens from the metadata service.

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.

Server-Side Request Forgery (SSRF) happens when a website takes a web address from you and fetches it from its own servers. If the site does not check where that address points, an attacker can make the server visit internal systems that are not meant to be reachable from the internet, such as cloud metadata services that hold credentials.

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 Khaled Mohamed

View all

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