Skip to content
Info disclosure Disclosed report Beginner

Team object in GraphQL disclosed of private programs via the industry

A GraphQL query on the team object returned the industry field for private programs, which should not have been exposed. An attacker could query arbitrary team handles and learn the industry of private programs.

haxta4ok00 Follow

Originally disclosed on HackerOne

Bounty$500 Low 3.1 View original
  • Triaged in 15 days
  • Fixed in 35 days
  • Paid in 15 days
  • Disclosed after 50 days

Summary: Disclosure of private programs across the industry

If the program is private, it will show industriy

Steps To Reproduce

{"query": "query {team(handle:\"█████████\"){_id,industry}}"}

{"data":{"team":{"_id":"█████████","industry":"Computer Hardware \u0026 Peripherals"}}}

{"query": "query {team(handle:\"█████████\"){_id,industry}}"}

{"data":{"team":{"_id":"████████","industry":"Computer Software"}}}

{"query": "query {team(handle:\"███\"){_id,industry}}"}

{"data":{"team":{"_id":"████","industry":null}}}

Impact

Disclosure of private programs

The original report as published on HackerOne, by haxta4ok00. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What the report shows

The feature under test is the GraphQL team object. The researcher found that querying a team by its handle returns an industry field, and that this field is populated even for programs that are not public. In other words, querying a team by handle returns an industry value even for private programs.

The reproduction is a single GraphQL query. The handle is redacted in the report, but the shape of the request is:

Text
{"query": "query {team(handle:\"█████████\"){_id,industry}}"}

The response for the first handle returns an identifier and an industry value:

Text
{"data":{"team":{"_id":"█████████","industry":"Computer Hardware \u0026 Peripherals"}}}

A second handle, queried with the same request, returns a different industry:

Text
{"query": "query {team(handle:\"█████████\"){_id,industry}}"}
Text
{"data":{"team":{"_id":"████████","industry":"Computer Software"}}}

A third handle returns a null industry, which shows the field is not always set:

Text
{"query": "query {team(handle:\"███\"){_id,industry}}"}
Text
{"data":{"team":{"_id":"████","industry":null}}}

The report was rated low severity with a CVSS score of 3.1 and paid a bounty of 500 USD. It was disclosed on 23 November 2019. The report does not describe a fix.

Root cause

The query accepts a handle and returns the object regardless of whether the program is public, and the field selection is resolved from the underlying record.

Impact

The report states the impact plainly: disclosure of private programs. The leaked value is the industry the program belongs to, The leaked value is the industry the program belongs to.. The report does not claim access to anything beyond the _id and industry fields, and the third example shows the field can be null, so the leak is not guaranteed for every handle.

How this kind of bug works

GraphQL exposes a typed schema, and every field on a type can be selected independently. A resolver for the parent object often loads the full record and returns it, leaving each field to be resolved from that record. If access control is written as a check on the query or on the parent object, it is easy to forget that a single field can carry sensitive data. The result is a partial object leak: the caller cannot see the whole private record, but can read the fields that were never gated.

This is a form of broken object-level authorisation combined with excessive data exposure. It happens because schema design and authorisation design drift apart: fields are added to a type for internal or admin use, and the same type is served to unauthenticated or low-privilege callers. Defences are per-field authorisation, separate types for public and private views, and disabling introspection-driven guessing by not exposing identifiers that map to private records.

How to test for it

  1. Obtain the schema, through introspection if it is enabled, or by reading client code and captured traffic. List every type and every field, paying attention to fields that look administrative or organisational: industry, tier, owner, internal notes, billing, member counts.
  2. Identify the lookup arguments. Handles, slugs, IDs and usernames are the usual ways to reach an object. Note which of these you can obtain for public objects.
  3. Query a public object first and record the full field set that comes back. Then query a private object you have legitimate access to, or one whose handle you can infer, and compare.
  4. Select fields one at a time rather than the whole object. A field that returns data for a private object when the object itself should be hidden is the finding. A null value, as in the third example, is not proof either way.
  5. Try the same field through aliases and fragments to see whether the check is applied per selection or per resolver.

A positive result is a field returning a real value for an object the caller should not be able to see. Common false positives are fields that are intentionally public, values that are null or default for every object, and data that the caller is already entitled to through another endpoint. Confirm the object is genuinely private before reporting.

How it is fixed

Hunting notes

GraphQL leaks of this kind tend to hide in fields added for internal dashboards, partner integrations or analytics, and in lookups by handle or slug that were built for public pages but reused for private records. Recon signals include an introspection endpoint that returns a rich schema, client bundles that contain query strings, and public profile pages whose URLs reveal the handle format. To show impact, demonstrate that the object is private, that the field returns a real value, and that the value is not available through any public page. Keep the proof to the minimum number of handles needed.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What happened, in plain words

Some of those programs are public: anyone can see them and read their rules. Others are private: they are invitation only, and the fact that a company runs one is not meant to be public knowledge.

The researcher found a way to learn something about private programs anyway. This particular API speaks GraphQL, a query language where the client asks for exactly the fields it wants and the server answers with just those fields. One of the things you can ask GraphQL for is a team object, which represents a program. The researcher discovered that asking for a team by its handle (the short name used in its URL) also returns an industry field, and that this field comes back filled in even when the program is private.

So the leak is small but real: if you know or guess the handle of a private program, you can learn which industry it belongs to. The report was rated low severity with a CVSS score of 3.1, paid a bounty of 500 USD, and was disclosed on 23 November 2019.

The request and its answer

The whole reproduction is one query. The handle is redacted in the report, so the shape of the request is:

Text
{"query": "query {team(handle:\"█████████\"){_id,industry}}"}

Reading it piece by piece:

  • query { ... } says this is a read-only request, a question rather than a change.
  • team(handle:"█████████") asks for one team, identified by its handle. The handle is the part of a program's web address that names it, like a username.
  • {_id,industry} lists the two fields wanted back: the internal identifier and the industry.

The answer for the first handle returns both:

Text
{"data":{"team":{"_id":"█████████","industry":"Computer Hardware \u0026 Peripherals"}}}

\u0026 is simply the JSON way of writing the & character, so the industry reads "Computer Hardware & Peripherals". The important part is that a value came back at all for a program that is not public.

A second handle, asked with the same request, returns a different industry:

Text
{"query": "query {team(handle:\"█████████\"){_id,industry}}"}
Text
{"data":{"team":{"_id":"████████","industry":"Computer Software"}}}

A third handle returns nothing for the industry:

Text
{"query": "query {team(handle:\"███\"){_id,industry}}"}
Text
{"data":{"team":{"_id":"████","industry":null}}}

That last result matters for honesty about the finding: the field is not always set, so the leak does not work for every handle. The report does not describe a fix.

Why each step matters

  1. Asking for industry alongside _id is the actual test. The identifier alone would only prove the record exists; the industry is the extra piece of information that should not be visible for a private program.

In general, how this kind of bug works

GraphQL lets a client pick fields one by one. On the server, each field is filled in by a small function called a resolver, which usually reads the value from a database record. A common mistake is to check permissions once, for the whole request or for the whole object, and then let every field be read from the record. If a field was added later for an internal dashboard, nobody may have thought about whether outsiders should see it. The result is a partial leak: the caller cannot see the whole private record, but can read the fields that were never protected.

This is a mix of two well-known problems: broken object-level authorisation, where the server does not check whether this particular caller may see this particular object, and excessive data exposure, where more data than necessary is returned. It happens because the shape of the data and the rules about who may see what are designed separately and drift apart.

How to test for it

  1. Get the list of available types and fields. GraphQL servers can often be asked to describe themselves through a feature called introspection; otherwise client code and captured traffic reveal the queries.
  2. Look for fields that sound organisational or administrative: industry, tier, owner, internal notes, billing details, member counts.
  3. Find how objects are looked up. Handles, slugs, IDs and usernames are the usual keys. Note which ones you can collect from public pages.
  4. Query a public object first and note what comes back. Then try a private object whose handle you can infer, and compare.
  5. Ask for fields one at a time rather than the whole object. A real value for a private object is the finding; a null value proves nothing either way.
  6. Try the same field through aliases (renaming a field in the query) and fragments (reusable field groups) to see whether the check is applied per field or only once per object.

A positive result is a field returning a real value for an object the caller should not be able to see. Common false positives are fields that are meant to be public, values that are null or default for every object, and data the caller could already get from another page. Confirm the object is genuinely private before reporting.

How it is fixed

Where these bugs hide

Fields added for internal dashboards, partner integrations or analytics are typical culprits, as are lookups by handle or slug built for public pages and then reused for private records. Useful signals during recon are an introspection endpoint that returns a rich schema, client bundles containing query strings, and public profile pages whose URLs show the handle format. To show impact, demonstrate that the object is private, that the field returns a real value, and that the value is not available on any public page. Keep the proof to the minimum number of handles needed.

Glossary

  • API: a service that one piece of software uses to talk to another, here the web page talking to HackerOne's servers.
  • GraphQL: a query language for APIs where the client names the exact fields it wants.
  • Query: a read-only GraphQL request.
  • Field: one named piece of data on an object, such as industry.
  • Object / type: a structured record with named fields, such as a team.
  • Resolver: the server-side function that fills in one field's value.
  • Handle: the short name that identifies a program, used in its web address.
  • _id: the internal identifier of a record.
  • JSON: a text format for structured data, using curly braces, quotes and colons.
  • null: the value meaning "nothing here".
  • Introspection: a GraphQL feature that lets a client ask the server to describe its own schema.
  • Schema: the full list of types and fields a GraphQL API offers.
  • Alias: a way to give a field a different name in a query.
  • Fragment: a reusable group of fields that can be included in several queries.
  • Broken object-level authorisation: a flaw where the server does not check whether this caller may access this specific object.
  • Excessive data exposure: returning more data than the caller needs or should see.
  • Severity / CVSS: a rating of how serious a bug is; CVSS is a standard scoring system.
  • Bounty: money paid to a researcher for a valid report.
  • Disclosure: making a report public after it has been fixed or agreed.
  • Recon: the information-gathering phase before testing.
  • False positive: a result that looks like a bug but is not one.

More by haxta4ok00

View all

32 more disclosed reports, best first.

More from HackerOne

View all

The newest disclosed reports for this program.

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.