Team object in GraphQL discloses team group names and permissions
A GraphQL query on the team object disclosed internal team member group names and their permissions, revealing the organisation's internal structure and permission sets.
Originally disclosed on HackerOne
- Triaged in 8 hours
- Fixed in 7 days
- Paid in 26 hours
- Disclosed after 7 days
Summary:
Hi team. We can disclosed your team member groups ;)
Description:
Because of the communications error, we can disclose the data - team_member_groups{id,name,permissions}
Steps To Reproduce
- {"query": "query {team(handle:\"security\"){id,name,handle,██████{total_count},team_member_groups{id,name,permissions}}}"}
Result:
{"data":{"team":{"id":"Z2lkOi8vaGFja2Vyb25lL1RlYW0vMTM=","name":"HackerOne","handle":"security", "██████":{"total_count":30},"team_member_groups":[{"id":"7506","name":"Support","permissions":["support_mutation"]},{"id":"8126","name":"Report Only","permissions":["report_management"]},{"id":"8023","name":"Support - SAML","permissions":["support_saml"]},{"id":"8024","name":"Support - Directory","permissions":["support_directory"]},{"id":"9492","name":"Support - Customer Success","permissions":["support_customer_success"]},{"id":"9880","name":"Support - Sales","permissions":["support_sales"]},{"id":"11365","name":"Support - Finance","permissions":["support_finance"]},{"id":"11947","name":"Support - Marketing","permissions":["support_marketing"]},{"id":"16233","name":"Support - Human Resources","permissions":["support_hr"]},{"id":"19143","name":"Support - Hacker Success","permissions":["support_hacker_success"]},{"id":"21045","name":"Program Management","permissions":["program_management"]},{"id":"21046","name":"Support - Open Source Review","permissions":["support_open_source_review"]},{"id":"34558","name":"Kerk Squad","permissions":["report_management"]},{"id":"34881","name":"Support - SQL Query Analyzer","permissions":["support_sql_query_analyzer"]},{"id":"134","name":"Admin","permissions":["user_management","program_management"]},{"id":"135","name":"Standard","permissions":["report_management","reward_management"]}]}}}
████████
Sorry i bad speak english I hope you understand me Thank you,haxta4ok00
Impact
Disclosed name and permissions groups
Context
HackerOne runs a public bug bounty platform, and each customer organisation is represented on it as a team. A team has a handle (for example security for HackerOne's own program), a display name, members, and a set of member groups. Member groups are the internal permission buckets that decide what a given staff member is allowed to do: support work, report management, program management, and so on. They are an internal administrative concept, not something a public visitor of a program page is meant to see.
The platform exposes a GraphQL API. GraphQL lets a client ask for exactly the fields it wants, and the server is supposed to enforce authorisation per field and per object. This report is about a team object in that API that returned more than it should.
Setup
The report does not describe any special account, role, tool or version. The researcher sent a GraphQL query against the hackerone.com asset and received a response. The only precondition visible in the write-up is the ability to send a GraphQL query to the API; no authentication detail is given.
Finding it
The researcher frames the issue as a communications error: the team object in the GraphQL schema exposes a team_member_groups field carrying id, name and permissions, and that field is reachable from a query that should only return public team information. The group names and their permission strings are internal data, so seeing them in a response to a team lookup looked wrong.
Exploitation
Step 1: query the team object and ask for member groups
The researcher sent a single GraphQL query against the team field, selecting the public-looking fields together with the internal group data:
{"query": "query {team(handle:\\\"security\\\"){id,name,handle,██████{total_count},team_member_groups{id,name,permissions}}}"}
The query targets the team with handle security, asks for its id, name and handle, a count field whose name is redacted in the report, and then team_member_groups with id, name and permissions for each group. The important part is the last selection: it requests the internal group objects directly from the team object.
Step 2: read the response
The server answered with the team data and the full list of member groups:
{"data":{"team":{"id":"Z2lkOi8vaGFja2Vyb25lL1RlYW0vMTM=","name":"HackerOne","handle":"security",
"██████":{"total_count":30},"team_member_groups":[{"id":"7506","name":"Support","permissions":["support_mutation"]},{"id":"8126","name":"Report Only","permissions":["report_management"]},{"id":"8023","name":"Support - SAML","permissions":["support_saml"]},{"id":"8024","name":"Support - Directory","permissions":["support_directory"]},{"id":"9492","name":"Support - Customer Success","permissions":["support_customer_success"]},{"id":"9880","name":"Support - Sales","permissions":["support_sales"]},{"id":"11365","name":"Support - Finance","permissions":["support_finance"]},{"id":"11947","name":"Support - Marketing","permissions":["support_marketing"]},{"id":"16233","name":"Support - Human Resources","permissions":["support_hr"]},{"id":"19143","name":"Support - Hacker Success","permissions":["support_hacker_success"]},{"id":"21045","name":"Program Management","permissions":["program_management"]},{"id":"21046","name":"Support - Open Source Review","permissions":["support_open_source_review"]},{"id":"34558","name":"Kerk Squad","permissions":["report_management"]},{"id":"34881","name":"Support - SQL Query Analyzer","permissions":["support_sql_query_analyzer"]},{"id":"134","name":"Admin","permissions":["user_management","program_management"]},{"id":"135","name":"Standard","permissions":["report_management","reward_management"]}]}}}
The response contains the team's opaque global ID, its name and handle, a count of 30 for the redacted field, and sixteen member groups. Each group carries its numeric ID, a human-readable name and the permission strings attached to it. The names reveal the internal structure of the support organisation (SAML, Directory, Customer Success, Sales, Finance, Marketing, Human Resources, Hacker Success, Open Source Review, SQL Query Analyzer), plus the Admin group with user_management and program_management, and the Standard group with report_management and reward_management. The permission strings map directly onto internal capabilities, which is what makes the disclosure useful to an attacker.
Root cause
The report attributes the leak to a communications error, without describing the mechanism. The report does not show the resolver code or describe the exact mechanism.
Impact
The researcher states the impact plainly: disclosed names and permissions of groups. An attacker learns the internal group taxonomy of the target organisation and the permission strings each group holds, including which groups carry user_management, program_management, report_management and reward_management. That is reconnaissance material: it maps the organisation's internal roles and the capabilities behind them, which can inform later targeting. The report does not claim any write access, privilege escalation or access to member identities; the disclosure is limited to group names, IDs and permission strings.
Fix
Variants to test
- Ask for the same nested field on other team handles, for example a program you do not belong to, and check whether the response still contains group names and permissions.
- Request sibling administrative fields on the
teamobject, such as member lists or counts, and see whether any of them resolve without an authorisation check. - Use GraphQL introspection to enumerate fields on the
teamtype and look for other nested objects that expose internal data. - Try the same field selection with different query shapes (aliases, fragments, batched operations) to see whether the authorisation check is applied consistently.
A positive result is any response that returns internal group names, permission strings or member data for a team the caller should not be able to inspect.
Hunting notes
GraphQL APIs are a good place to look for this pattern because authorisation is easy to apply at the top-level resolver and forget on nested fields. During recon, look for a public object that has an internal-looking child: teams, organisations, projects and accounts often carry members, groups, roles or settings as nested types. If introspection is enabled, read the schema and note every field whose name suggests administrative data.
What happened, in plain words
HackerOne is a website where companies pay security researchers to find bugs in their software. Each company that runs a program on HackerOne appears there as a "team". A team has a short nickname called a handle (HackerOne's own program uses the handle security), a display name, a list of members, and a set of member groups.
Member groups are internal permission buckets. Think of them like the different keys a large office building hands out: one key opens the support desk, another opens the finance room, another opens the admin office. On HackerOne, a group called Support - Finance carries the permission support_finance, and a group called Admin carries user_management and program_management. These groups are meant for staff only. A normal visitor looking at a company's program page should never see them.
The website is built on top of an API. An API is the behind-the-scenes counter where a program asks the website for data and the website hands it back. This particular API speaks GraphQL. GraphQL is a way of asking for data where the client says exactly which pieces it wants, a bit like ordering at a restaurant by pointing at individual ingredients rather than taking the set menu. The server is supposed to check, for every single piece requested, whether the person asking is allowed to have it.
In this report, the researcher found that the team_member_groups field returned internal group names and their permissions. The researcher describes it as a communications error: the team object was talking too much.
Setting up
The report does not mention any special account, role, tool or software version. The researcher simply sent a GraphQL query to hackerone.com and got an answer back. The only thing needed, as far as the write-up shows, is the ability to send a GraphQL query to the API. No login details are described.
Finding it
The researcher explains the problem like this: the team object in the GraphQL schema has a field called team_member_groups, and that field carries id, name and permissions. A schema is the map of everything the API offers, like a menu listing every dish and its ingredients. The field was reachable from a query that should only return public team information. Group names and permission strings are internal data, so seeing them come back from a simple team lookup looked wrong.
Exploitation
Step 1: ask the team object for its member groups
The researcher sent one GraphQL query against the team field. The query asks for the public-looking fields and, in the same breath, for the internal group data:
{"query": "query {team(handle:\\\"security\\\"){id,name,handle,██████{total_count},team_member_groups{id,name,permissions}}}"}
Line by line, in plain words:
- The outer
{"query": ...}is the envelope. GraphQL requests are sent as a piece of JSON, which is a text format for structured data, and the actual question goes inside thequerykey. query {team(handle:\"security\")says: run a query, and start from the team whose handle issecurity. The backslashes are there because the quote marks have to be escaped inside the JSON string.id,name,handleasks for three basic facts about the team: its identifier, its display name and its handle.██████{total_count}asks for a count field whose name is blacked out in the report. The researcher does not say what it counts.team_member_groups{id,name,permissions}is the important part. It asks the team object to hand over its member groups, and for each group the numeric ID, the human-readable name and the list of permissions.
Why this step? Because the researcher wanted to test whether the internal group data could be pulled out through the same public team lookup that anyone can use. Asking for it directly is the simplest way to find out.
Step 2: read the answer
The server replied with the team data and the full list of member groups:
{"data":{"team":{"id":"Z2lkOi8vaGFja2Vyb25lL1RlYW0vMTM=","name":"HackerOne","handle":"security",
"██████":{"total_count":30},"team_member_groups":[{"id":"7506","name":"Support","permissions":["support_mutation"]},{"id":"8126","name":"Report Only","permissions":["report_management"]},{"id":"8023","name":"Support - SAML","permissions":["support_saml"]},{"id":"8024","name":"Support - Directory","permissions":["support_directory"]},{"id":"9492","name":"Support - Customer Success","permissions":["support_customer_success"]},{"id":"9880","name":"Support - Sales","permissions":["support_sales"]},{"id":"11365","name":"Support - Finance","permissions":["support_finance"]},{"id":"11947","name":"Support - Marketing","permissions":["support_marketing"]},{"id":"16233","name":"Support - Human Resources","permissions":["support_hr"]},{"id":"19143","name":"Support - Hacker Success","permissions":["support_hacker_success"]},{"id":"21045","name":"Program Management","permissions":["program_management"]},{"id":"21046","name":"Support - Open Source Review","permissions":["support_open_source_review"]},{"id":"34558","name":"Kerk Squad","permissions":["report_management"]},{"id":"34881","name":"Support - SQL Query Analyzer","permissions":["support_sql_query_analyzer"]},{"id":"134","name":"Admin","permissions":["user_management","program_management"]},{"id":"135","name":"Standard","permissions":["report_management","reward_management"]}]}}}
What the answer contains:
datais the standard GraphQL wrapper around a successful result.teamholds the object that was asked for.idis the team's opaque global ID, a long encoded string. Opaque means it is not meant to be read by humans; it is just a unique label.nameisHackerOneandhandleissecurity, the public facts about the team.- The blacked-out count field returned
total_countof 30. team_member_groupsis a list of sixteen groups. Each one has a numericid, anameand apermissionslist.
The names show the internal shape of the support organisation: SAML, Directory, Customer Success, Sales, Finance, Marketing, Human Resources, Hacker Success, Open Source Review and SQL Query Analyzer. SAML and Directory are sign-in and user-directory technologies; the rest are business functions. There is also an Admin group with user_management and program_management, and a Standard group with report_management and reward_management. The permission strings line up directly with internal abilities, which is what makes the leak useful to an attacker.
Why it happened
The report puts the leak down to a communications error, without describing the mechanism.
A useful comparison: a receptionist who is allowed to confirm that a company exists should not, in the same breath, read out the internal phone list and who holds which office keys. The check was made at the front desk but not repeated for the filing cabinet behind it.
Impact
The researcher states the impact plainly: disclosed names and permissions of groups. An attacker learns the internal group taxonomy of the target organisation and the permission strings each group holds, including which groups carry user_management, program_management, report_management and reward_management. That is reconnaissance material: it maps the organisation's internal roles and the capabilities behind them, which can inform later targeting. The report does not claim any write access, privilege escalation or access to member identities; the disclosure is limited to group names, IDs and permission strings.
Fix
Variants to test
- Ask for the same nested field on other team handles, for example a program you do not belong to, and check whether the response still contains group names and permissions.
- Request sibling administrative fields on the
teamobject, such as member lists or counts, and see whether any of them resolve without a permission check. - Use GraphQL introspection to list the fields on the
teamtype and look for other nested objects that expose internal data. Introspection is the API's ability to describe its own schema, like asking the restaurant to read out the full menu. - Try the same field selection with different query shapes (aliases, fragments, batched operations) to see whether the permission check is applied consistently. An alias is a second name for a field in the same query, a fragment is a reusable block of field selections, and a batched operation is several queries sent together.
A positive result is any response that returns internal group names, permission strings or member data for a team the caller should not be able to inspect.
Hunting notes
GraphQL APIs are a good place to look for this pattern because permission checks are easy to apply at the top-level resolver and easy to forget on nested fields. A resolver is the piece of server code that fetches the data for one field. During recon, look for a public object that has an internal-looking child: teams, organisations, projects and accounts often carry members, groups, roles or settings as nested types. If introspection is enabled, read the schema and note every field whose name suggests administrative data.
Glossary
- API: the behind-the-scenes interface a program uses to ask a website for data or actions.
- GraphQL: a query language for APIs where the client names exactly the fields it wants.
- Query: a request written in GraphQL asking for specific data.
- Field: one named piece of data inside a GraphQL object, such as
nameorpermissions. - Object / type: a bundle of related fields, such as a team or a member group.
- Schema: the map of every object, field and type an API offers.
- Introspection: a GraphQL feature that lets a client ask the API to describe its own schema.
- Resolver: the server code that fetches the data for a particular field.
- Handle: a short public nickname for a team, such as
security. - Team: the representation of a customer organisation on HackerOne.
- Member group: an internal bucket of staff with a shared set of permissions.
- Permission: a named ability, such as
user_managementorreport_management. - Authorisation: the check that decides whether the caller is allowed to see or do something.
- Authentication: proving who you are, for example by logging in.
- Information disclosure: a bug where data that should stay private is handed to someone who should not see it.
- Reconnaissance: the information-gathering phase before an attack, mapping out how a target is built.
- Privilege escalation: gaining more access or power than you are supposed to have.
- JSON: a plain-text format for structured data, built from keys and values.
- Opaque ID: an identifier that is only a unique label and is not meant to be read by humans.
- SAML: a standard for signing users in to applications through a central identity provider.
- Directory: a central store of users and accounts, often used for sign-in.
- Alias: a second name given to a field in a GraphQL query.
- Fragment: a reusable block of field selections in GraphQL.
- Batched operation: several queries sent to an API together in one request.
- Bug bounty: a program where organisations pay researchers for reporting security bugs.
- Asset: the specific system or domain a bug bounty program covers, here
hackerone.com. - CVSS: a standard scoring system for rating the severity of a security bug.