Skip to content
SSRF Write-up Beginner

This Simple GraphQL SSRF Bug Earned $3,000 (3/30 DAYS)

A GraphQL query parameter accepted a URL and made server-side GET requests without validation, allowing an attacker to direct requests to arbitrary external or internal domains. The attacker could probe internal networks and perform blind HTTP requests.

zerodaystories Follow

Published on medium.com

I’m a security researcher, and I’ve taken on the challenge of explaining one bug bounty report every day for the next 30 days — 30 days, 30 reports!

0day stories, 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 source parameter of the allTicks GraphQL query was passed directly to a server-side HTTP client without validating or restricting the destination URL.

Impact

Attackers could probe internal networks and perform blind HTTP GET requests, potentially gathering information that could lead to further exploitation, though responses were not returned.

What the attacker needed

Access to the GraphQL endpoint; ability to send queries with a URL parameter

The fix

The GraphQL endpoint should validate and restrict the source parameter to an allowlist of permitted URLs, blocking internal and arbitrary external destinations.

How it was found

  1. Identify the GraphQL endpoint and the allTicks query with its source parameter.
  2. Replace the legitimate URL with a Burp Collaborator domain to test for external requests.
  3. Monitor incoming DNS and HTTP requests to the Collaborator server to confirm the server made the request.
  4. Add GET parameters to the source URL to manipulate the server request further.
  5. Replace the URL with an internal IP address to demonstrate access to internal network services.

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.

A server-side request forgery (SSRF) bug happens when a website takes a web address from a user and fetches it on the server's behalf without checking where it points. Here, a GraphQL query field called allTicks had a source parameter that was used as a URL for a server-side request. An attacker could supply their own address, or an internal one, and make the server connect to it.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

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.