Skip to content
IDOR Write-up Beginner

Unauthenticated Admin Profile Disclosure via GraphQL IDOR — A Real-World Bug Bounty Find.

A GraphQL query that fetched a user's profile by username did not check who was asking, so anyone could request another user's email, role and creation date without logging in. The author changed the username to another account and received that account's data, including an admin role.

yasser0hamoda1 Follow

Published on medium.com

GraphQL security misconfigurations can lead to massive data leaks if not properly secured. Recently, while testing a web application, I discovered a critical Insecure Direct Object Reference (IDOR) vulnerability in its GraphQL API that allowed unauthenticated attackers to extract admin emails, roles, and other…

Yasser Hamoda, 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 GraphQL resolver for the user query did not enforce authentication or authorisation, so it returned any profile matching the supplied username.

Impact

An unauthenticated attacker could read other users' email addresses and roles, including admin accounts, which could support phishing, credential stuffing or mass enumeration; the text does not mention any defence that limited the exploit.

What the attacker needed

No account needed to send the query; knowledge of a target username

The fix

The API should require authentication and enforce authorisation so users can only fetch their own profile, and it should avoid returning sensitive fields such as email and role in public responses.

How it was found

  1. Create an account and log in to the target website.
  2. Open the account settings page and intercept the GraphQL request that fetches your own profile.
  3. Change the username variable in that request to another user's username.
  4. Send the modified request and observe that the other user's profile data is returned.

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 GraphQL API is a way for a website to ask a server for specific pieces of data. Here, the server returned any user's profile details to anyone who asked, without checking whether the requester was logged in or allowed to see that profile. That means private information such as email addresses and admin roles could be collected by an outsider.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by yasser0hamoda1

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.