Skip to content
Access control Write-up Beginner

From GraphQL Introspection to Critical Data Exposure: Discovering Unauthenticated Access to KYC…

A publicly reachable GraphQL endpoint had introspection enabled and no authentication or authorization checks on its queries. An unauthenticated attacker could read KYC verification OTP values and payment transaction records directly from the exposed tables.

chotaliyasavan754 Follow

Published on medium.com

While performing security research on a public bug bounty program, I came across what initially appeared to be a routine GraphQL configuration issue. However, a few minutes of investigation revealed something much more serious: unauthenticated access to sensitive KYC verification data and payment records.

savan-025, 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 service was deployed without authentication or per-object authorization checks, leaving every query and table reachable by anonymous users.

Impact

Because no authentication was required, anyone who knew the endpoint could read KYC one-time codes and payment records, which could undermine identity verification and expose financial data.

What the attacker needed

Knowledge of the GraphQL endpoint; no account or token needed

The fix

The service should require authentication and enforce per-object authorization on every GraphQL query, and introspection should be disabled in production unless it is genuinely needed.

How it was found

  1. Enumerate public assets and subdomains and find a database-related subdomain hosting a GraphQL service.
  2. Identify the publicly accessible GraphQL endpoint.
  3. Send a schema introspection query and receive the full schema.
  4. Review the schema to find KYC, payment and transaction tables.
  5. Issue simple read-only queries against those objects without any credentials.
  6. Observe KYC OTP values and payment records returned in the responses.

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.

GraphQL is a way for apps to ask a server for exactly the data they need. This server let anyone ask for data without logging in, and it also let anyone see a map of all the data it stored. That meant private identity-check codes and payment records could be read by anyone who found the address.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by chotaliyasavan754

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.