Skip to content
Info disclosure Write-up Beginner

How a GraphQL Invitation Flow Exposed Users at Scale

The GraphQL invitation mutation returned full user details (identifier, email, full name) for email addresses that belonged to existing accounts, while returning null for unknown addresses. An authenticated attacker could submit many emails in one request to enumerate registered users at scale and collect their identifiers and profile metadata.

medium.com

Published on medium.com

In today’s article, I want to walk you through a real-world vulnerability I found while testing a GraphQL-based invitation feature on target.com. What made this finding interesting was how normal it looked at first.

Ehtesham Ul Haq, 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

The invitation mutation's response exposed a nested invitee object containing user fields, so the API disclosed account existence and user metadata instead of only confirming that invitations were created.

Impact

An attacker could reliably identify registered users at scale and collect their identifiers, emails and full names, which could support targeted phishing, credential stuffing, employee identification or further testing against other API endpoints; the text does not state that a fix was applied.

What the attacker needed

An authenticated account; ability to create a community and invite users

The fix

The invitation response should be limited to what the workflow needs, without returning whether an email belongs to a real user or any user identifiers, emails or names.

How it was found

  1. Log in and capture the normal community invitation request sent to the GraphQL endpoint.
  2. Craft the mutation so its selection set also requests the nested invitee object and its user fields.
  3. Submit an email address and observe that invitee is null for unknown addresses but a user object for registered ones.
  4. Add several email addresses to the emails array and confirm one result is returned per address.

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.

When you invite someone by email, the server checks whether that email already has an account. Here it also sent back that person's internal ID, email and full name, and it did so for a whole list of emails at once. Anyone with a normal account could therefore find out who is registered and gather their details.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.