Skip to content
Info disclosure Disclosed report Beginner

Team object in GraphQL disclosed total number of whitelisted hackers

A GraphQL query on the team object exposed a whitelisted_hackers field that returned the total count of members with two-factor authentication and IP whitelisting enabled. An attacker could learn how many accounts are protected by these extra controls, which is information the reporter says should not be visible.

haxta4ok00 Follow

Originally disclosed on HackerOne

Bounty$2,500 Medium 5.0 View original
  • Triaged in 19 hours
  • Fixed in 15 days
  • Paid in 3 days
  • Disclosed after 17 days

Summary: Hi team. Whitelisted_hackers i think your setup - Two-factor authentication and IP whitelisting are available to further restrict access to accounts. Description: Again, because of the link error, I can see the number, but I can't see these links. Analogue #310946

Steps To Reproduce

  1. {"query": "query {team(handle:\"security\"){id,name,handle,whitelisted_hackers{total_count}}}"}

Result:

{"data":{"team":{"id":"Z2lkOi8vaGFja2Vyb25lL1RlYW0vMTM=","name":"HackerOne","handle":"security", "whitelisted_hackers":{"total_count":30}}}}

  • whitelisted_hackers":{"total_count":30} - You have 30 members for 2FA and white IP

Sorry i bad speak english I hope you understand me Thank you,haxta4ok00

PS. I'm glad you accept reports in other languages, but I'm used to this format

Impact

Disclosure count "whitelisted_hackers"

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 target is the HackerOne platform itself, and the feature under examination is the team object exposed through the GraphQL API. HackerOne's own documentation states that two-factor authentication and IP whitelisting are available to further restrict access to accounts, and the researcher set out to see whether the GraphQL schema leaked anything about that whitelist.

The researcher sent a single GraphQL query against the team object, selecting the whitelisted_hackers field and asking only for its total_count:

Text
{"query": "query {team(handle:\\\"security\\\"){id,name,handle,whitelisted_hackers{total_count}}}"}

The response returned the team's identifier, name and handle, plus the count of whitelisted hackers:

Text
{"data":{"team":{"id":"Z2lkOi8vaGFja2Vyb25lL1RlYW0vMTM=","name":"HackerOne","handle":"security",
"whitelisted_hackers":{"total_count":30}}}}

The researcher's reading of the result is that the security team has 30 members covered by 2FA and IP whitelisting. The report also notes that, because of a link error, the count was visible while the individual links behind it were not, and it references an earlier report, #310946, as an analogue. The impact section states the issue plainly: disclosure of the whitelisted_hackers count.

The report was rated medium severity with a CVSS score of 5.0, classified as information disclosure, and paid a bounty of 2,500 USD. It was disclosed on 12 May 2018. The report does not describe a fix.

Root cause

The report does not state a cause; the count was simply returned by the query. GraphQL schemas are often built from the same data model that backs the administrative interface, so a field that exists to render a member list in the UI can remain reachable from any client that can query the team object. The total_count aggregate is the cheapest part of that connection to leak: it requires no pagination, no per-record permission check, and returns a single integer.

Impact

The report's own framing is narrow: the number of accounts protected by 2FA and IP whitelisting for a team is disclosed. The report does not claim that individual whitelisted accounts, their identities or their IP addresses were exposed; on the contrary, it says the links behind the count could not be seen.

How this kind of bug works

GraphQL APIs expose a typed schema, and every field on every type is a potential entry point. Authorisation is usually enforced per resolver, and it is easy to protect the obvious operations (fetching a list of members, mutating a record) while forgetting the aggregate fields that sit alongside them: total_count, count, edges, pageInfo. Because GraphQL lets a client request exactly the fields it wants, a field that is never rendered in the normal UI can still be queried directly, and introspection or schema documentation makes such fields easy to discover.

The same pattern appears outside GraphQL. REST endpoints that return pagination metadata, dashboard widgets that render statistics, and export or reporting endpoints frequently compute counts over data the caller is not allowed to enumerate. The count is treated as harmless metadata while the underlying records are treated as sensitive, and the access control is applied only to the latter.

Defences are straightforward in principle: authorise every field, including aggregates, against the caller's relationship to the object; avoid exposing administrative connections on objects reachable by ordinary users; and treat counts over sensitive sets as sensitive themselves, since they leak the size of a population even when they leak nothing else.

How to test for it

  1. Map the schema. Where introspection is enabled, pull the types and look for connection fields, especially ones whose names suggest privileged sets: whitelists, members, admins, collaborators, sessions, tokens.
  2. For each candidate object, request the aggregate fields first: total counts, page info, and any count style scalar. These are cheap and often unprotected.
  3. Compare responses across privilege levels. Query the same object as an unauthenticated user, as an ordinary member and as an administrator. A count that is identical for all three, where the underlying list is restricted, is the signal.
  4. Try to escalate from count to content. If the count is returned, request the edges and nodes of the same connection. A count alone is a weak finding; a count plus a member list is a strong one.
  5. Where introspection is disabled, use field-name guessing and error messages, which often distinguish an unknown field from an unauthorised one.

A positive result looks like a numeric or structural field returning data about a set the caller cannot otherwise read. Common false positives are counts that are intentionally public (follower counts, public repository statistics), counts that are identical to a value already shown in the UI to that user, and fields that return zero or null for unauthorised callers, which indicates the check is present.

How it is fixed

The standard fix is to enforce authorisation in the resolver for the connection and for its aggregate fields, so that total_count is computed only for callers allowed to read the underlying set. Where the field has no legitimate use for ordinary clients, remove it from the public schema. Some teams additionally restrict introspection in production, which raises the cost of discovery but is not a substitute for per-field authorisation.

Hunting notes

This class of bug hides in schema corners: administrative connections attached to public objects, statistics endpoints behind dashboards, and pagination metadata on filtered lists. Recon signals worth watching are GraphQL endpoints discovered in JavaScript bundles, schema dumps published in documentation, and object types whose names mix public entities with privileged relationships. To make a report land, show the contrast: the same query returning data for a low-privileged caller and the corresponding UI or API refusing to show the underlying records. A bare count is usually accepted only at low severity, though this report was rated medium.

Difficulty

{"difficulty": "beginner", "difficulty_reason": "The finding required a single GraphQL query against a documented object, with no chaining or bypass technique."}

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

HackerOne is a platform where companies run bug bounty programmes: they invite independent researchers to look for security weaknesses in their systems and pay for valid findings. The platform itself has a feature that lets a team restrict who can reach certain accounts, using two-factor authentication (a second proof of identity, such as a code from a phone app, on top of a password) and IP whitelisting (only allowing connections from a list of approved network addresses).

The researcher noticed that HackerOne's own help text says two-factor authentication and IP whitelisting are available to further restrict access to accounts. The question was simple: does the platform's public data interface reveal anything about that whitelist?

It did. By asking the platform a single question through its GraphQL API, the researcher got back the number of people on the security team's whitelist: 30. GraphQL is a way for programs to ask a server for exactly the pieces of data they want, rather than receiving a fixed page. Think of it as a menu where you tick only the items you want, and the kitchen sends exactly those.

The researcher also mentions a link error: the number was visible, but the individual links behind it were not. An earlier report, #310946, is cited as a similar case. The impact section states the issue plainly: the count of whitelisted hackers is disclosed.

The report was rated medium severity with a CVSS score of 5.0 (CVSS is a standard 0 to 10 scale for how serious a flaw is), classified as information disclosure, and paid a bounty of 2,500 USD. It was disclosed on 12 May 2018. The report does not describe a fix.

The request and the response, step by step

The researcher sent one query to the team object, asking for the team's id, name and handle, and for the whitelisted_hackers field, but only its total_count:

Text
{"query": "query {team(handle:\\\"security\\\"){id,name,handle,whitelisted_hackers{total_count}}}"}

Reading it from the outside in:

  1. query { ... } says this is a read request, not a change.
  2. team(handle: ...) picks one team, identified by its handle. The handle here is security, which is HackerOne's own team.
  3. id,name,handle asks for three basic facts about that team.
  4. whitelisted_hackers{total_count} asks for the whitelist attached to the team, and inside it only the total number of entries.

The server answered:

Text
{"data":{"team":{"id":"Z2lkOi8vaGFja2Vyb25lL1RlYW0vMTM=","name":"HackerOne","handle":"security",
"whitelisted_hackers":{"total_count":30}}}}

The data block holds the answer. The team is named HackerOne with handle security, and total_count is 30. The researcher's reading is that the security team has 30 members covered by two-factor authentication and IP whitelisting.

The report does not claim that individual whitelisted accounts, their identities or their IP addresses were exposed; on the contrary, it says the links behind the count could not be seen.

In general, how this kind of bug works

This is an information disclosure bug: a system gives away a fact it should keep to itself. The fact here is small, a single number, but small facts add up.

GraphQL APIs are built from a schema, a map of every object and every field a client can ask for. Permission checks are usually written one field at a time. It is easy to protect the obvious operations, such as fetching the list of members or changing a record, and forget the summary fields that sit next to them, such as total_count, count, edges or pageInfo. Because GraphQL lets a client request exactly the fields it wants, a field that never appears in the normal web page can still be queried directly.

The same pattern appears outside GraphQL. Web endpoints that return pagination details, dashboard widgets that show statistics, and reporting or export features often count data the caller is not allowed to list. The count is treated as harmless while the records are treated as sensitive, and the access check is applied only to the records.

The defences are straightforward in principle: check permission on every field, including summaries; do not attach administrative lists to objects that ordinary users can reach; and treat counts over sensitive sets as sensitive themselves, because they reveal the size of a group even when they reveal nothing else.

In general, how to test for it

  1. Map the schema. Where the API allows introspection (a built-in way to ask the server to describe its own schema), list the types and look for fields whose names suggest privileged groups: whitelists, members, admins, collaborators, sessions, tokens.
  2. For each candidate object, ask for the summary fields first: total counts, page information, any count style number. These are cheap to request and often unprotected.
  3. Compare answers across privilege levels. Send the same query as a logged-out visitor, as an ordinary member and as an administrator. A count that stays the same for all three, while the underlying list is restricted, is the signal.
  4. Try to move from count to content. If the count comes back, ask for the entries of the same list. A count alone is a weak finding; a count plus a member list is a strong one.
  5. Where introspection is switched off, guess field names and read error messages, which often distinguish an unknown field from a forbidden one.

A positive result looks like a number or structure describing a set the caller cannot otherwise read. Common false positives are counts that are intentionally public (follower counts, public repository statistics), counts identical to a value already shown to that user in the page, and fields that return zero or nothing for unauthorised callers, which shows the check is present.

In general, how it is fixed

The standard fix is to enforce permission in the code that answers the query, for the list and for its summary fields, so that total_count is calculated only for callers allowed to read the underlying set. Where the field has no legitimate use for ordinary clients, remove it from the public schema. Some teams also restrict introspection in production, which makes discovery harder but does not replace per-field permission checks.

In general, where to look while hunting

This class of bug hides in the corners of a schema: administrative lists attached to public objects, statistics behind dashboards, and pagination details on filtered lists. Useful signals are GraphQL endpoints found in JavaScript files, schema descriptions published in documentation, and object types that mix public entities with privileged relationships. To make a report land, show the contrast: the same query returning data for a low-privileged caller while the page or API refuses to show the underlying records. A bare count is usually accepted only at low severity, though this report was rated medium.

Glossary

  • Bug bounty programme: a scheme where an organisation pays independent researchers for reporting security flaws.
  • Two-factor authentication (2FA): logging in with a password plus a second proof, such as a code from a phone app.
  • IP whitelisting: allowing connections only from a pre-approved list of network addresses.
  • IP address: the numeric address a device uses on a network.
  • GraphQL: an API style where the client asks for exactly the fields it wants and the server returns only those.
  • API: the interface programs use to talk to a server and exchange data.
  • Query: a read request in GraphQL.
  • Schema: the map of objects and fields an API offers.
  • Field: one named piece of data inside an object, such as name or total_count.
  • Object / type: a structured item in the schema, here a team.
  • Handle: a short public identifier for an account or team.
  • Resolver: the server code that produces the value for a field.
  • Aggregate field: a field that summarises other data, such as a total count.
  • Connection: a GraphQL structure for a list, usually with entries plus summary information.
  • Introspection: a GraphQL feature that lets a client ask the server to describe its own schema.
  • Information disclosure: a flaw where a system reveals data it should keep private.
  • Severity: how serious a flaw is judged to be.
  • CVSS: a standard 0 to 10 scale for rating the seriousness of a vulnerability.
  • Bounty: the money paid for a valid report.
  • False positive: a finding that looks like a flaw but is not one.
  • Pagination: splitting a long list into pages, often with metadata about totals.

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.