Skip to content
Info disclosure Disclosed report Intermediate

Hackers can find out the ID of private programs

A GraphQL mutation returned different error messages depending on whether a team ID belonged to a sandbox program, a private program, or a program the user could not access. An attacker could use these differences to enumerate team IDs and build a list of identifiers belonging to private programs.

haxta4ok00 Follow

Originally disclosed on HackerOne

  • Triaged in 6 days
  • Fixed in 2 months
  • Disclosed after 5 months

Summary:

Hi team,

Our team noticed that it is possible to find out the IDs of sandbox programs. This allows us to create a list, thereby determining that the rest of the list of IDs will belong to private programs or public or external program(directory listing). But by removing ID all public and external programs, we can create a list of identifiers that belongs only to a completely private programs. Having saved it, we can check the identifiers in the future when the program goes from completely private to the directory listing( as private program with external link).And if the ID exists in this list, then we will know that the private part exists there. This report is intended for the future. But it also has some authorization error when accessing someone else's ID, though only if it is a sandbox program.

A response is expected for any ID program: You do not have the appropriate access The answer for sandbox programs: "Team not enabled to use this integration whilst sandboxed, contact your program manager to be whitelisted."

Steps To Reproduce:

  1. Creating a new account so that you don't have to be a member of any private program( for convenience)
  2. Create a sandbox program for confidence via https://hackerone.com/teams/new/sandbox

GraphQL query:

{"operationName":"createSolutionInstance","variables":{"team_id":"gid://hackerone/Team/51925","solution_id":"","name":""},"query":"mutation createSolutionInstance($team_id: ID!, $solution_id: String!) {createSolutionInstance(input: {team_id: $team_id, solution_id: $solution_id}) {team {id, ...TeamFragment,__typename},new_solution_instance_id,was_successful,errors {edges {node {id,message,__typename,}__typename}__typename}__typename}} fragment TeamFragment on Team {id,handle,tray_integration{id,_id,active,tray_profile {id,tray_user_id,__typename},solution_instances(solution_id: $solution_id) {edges {node {id,_id,name,description,enabled,created,solution {id,name,custom_fields,__typename}__typename}__typename}__typename}__typename}__typename}"}

Answer: Team not enabled to use this integration whilst sandboxed, contact your program manager to be whitelisted.

This makes us understand that this is a sandbox program

GraphQL query:

{"operationName":"createSolutionInstance","variables":{"team_id":"gid://hackerone/Team/21732","solution_id":"","name":""},"query":"mutation createSolutionInstance($team_id: ID!, $solution_id: String!) {createSolutionInstance(input: {team_id: $team_id, solution_id: $solution_id}) {team {id, ...TeamFragment,__typename},new_solution_instance_id,was_successful,errors {edges {node {id,message,__typename,}__typename}__typename}__typename}} fragment TeamFragment on Team {id,handle,tray_integration{id,_id,active,tray_profile {id,tray_user_id,__typename},solution_instances(solution_id: $solution_id) {edges {node {id,_id,name,description,enabled,created,solution {id,name,custom_fields,__typename}__typename}__typename}__typename}__typename}__typename}"}

Answer:You do not have the appropriate access

4.1 Let's check what kind of program it is

GraphQL query:

{"query":"query{node(id:\"gid://hackerone/Team/21732\"){... on Team{_id,handle,state}}}"}

Answer: Team does not exist

It turns out that this is the ID of a private program

And if this program ever goes to directory listing, we can determine that it is a private program with an external link

Yes, this is a complex PoC, but slightly creative, but based on your answer, we thought it made sense

Recommendation:

Create an additional authorization check to someone else's program ID.

Impact

Hackers can find out the ID 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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

Context

HackerOne exposes a GraphQL endpoint at http://hackerone.com/graphql. Among the mutations it offers is createSolutionInstance, which is used to attach a solution (an integration) to a team. The mutation takes a team_id as a global ID of the form gid://hackerone/Team/<number> and a solution_id.

The researcher found that the error returned by this mutation differs depending on what kind of team the supplied ID belongs to. That difference lets an account with no private program membership probe arbitrary team IDs and learn something about teams it has no relationship with, including sandbox programs and private programs.

Setup

  1. A new account, deliberately not a member of any private program, so that access to other teams is not granted through membership.
  2. A sandbox program created by the researcher, for confidence, via https://hackerone.com/teams/new/sandbox.
  3. A GraphQL client able to send the raw JSON bodies shown below to http://hackerone.com/graphql.

Finding it

The researcher noticed that the response to the createSolutionInstance mutation is not uniform. For an arbitrary team ID the API answers with an authorisation error:

You do not have the appropriate access

For a sandbox program, however, it answers with a different message:

"Team not enabled to use this integration whilst sandboxed, contact your program manager to be whitelisted."

That second message confirms the ID belongs to a sandbox program, even though the caller has no access to it. The researcher also observed that a team ID which produces the authorisation error can be classified further with a second query, and that the combination reveals whether the team is a private program.

Exploitation

Step 1: Create an account with no private program membership

A fresh account is created so that the tester is not a member of any private program. This removes membership as a source of legitimate access and makes the responses below attributable to the endpoint's own checks.

Step 2: Create a sandbox program

A sandbox program is created through https://hackerone.com/teams/new/sandbox to obtain a known sandbox team ID and to confirm the behaviour of the mutation against it.

Step 3: Send the mutation against the sandbox team

The following GraphQL body is sent, with team_id set to the sandbox team's global ID (gid://hackerone/Team/51925 in the report):

JSON
{"operationName":"createSolutionInstance","variables":{"team_id":"gid://hackerone/Team/51925","solution_id":"","name":""},"query":"mutation createSolutionInstance($team_id: ID!, $solution_id: String!) {createSolutionInstance(input: {team_id: $team_id, solution_id: $solution_id}) {team {id, ...TeamFragment,__typename},new_solution_instance_id,was_successful,errors {edges {node {id,message,__typename,}__typename}__typename}__typename}} fragment TeamFragment on Team {id,handle,tray_integration{id,_id,active,tray_profile {id,tray_user_id,__typename},solution_instances(solution_id: $solution_id) {edges {node {id,_id,name,description,enabled,created,solution {id,name,custom_fields,__typename}__typename}__typename}__typename}__typename}__typename}"}

The mutation declares $team_id: ID! and $solution_id: String!, passes them into createSolutionInstance(input: ...), and selects the team, the new solution instance ID, a success flag and an errors connection. The TeamFragment expands the team with its handle and its tray_integration, including tray_profile and solution_instances filtered by $solution_id.

The answer is:

Text
Team not enabled to use this integration whilst sandboxed, contact your program manager to be whitelisted.

This message tells the tester that the team behind the ID is a sandbox program.

Step 4: Send the same mutation against another team ID

The same body is sent again with a different team_id (gid://hackerone/Team/21732 in the report):

JSON
{"operationName":"createSolutionInstance","variables":{"team_id":"gid://hackerone/Team/21732","solution_id":"","name":""},"query":"mutation createSolutionInstance($team_id: ID!, $solution_id: String!) {createSolutionInstance(input: {team_id: $team_id, solution_id: $solution_id}) {team {id, ...TeamFragment,__typename},new_solution_instance_id,was_successful,errors {edges {node {id,message,__typename,}__typename}__typename}__typename}} fragment TeamFragment on Team {id,handle,tray_integration{id,_id,active,tray_profile {id,tray_user_id,__typename},solution_instances(solution_id: $solution_id) {edges {node {id,_id,name,description,enabled,created,solution {id,name,custom_fields,__typename}__typename}__typename}__typename}__typename}__typename}"}

The answer is:

Text
You do not have the appropriate access

This is the generic authorisation error. It does not by itself say what kind of team the ID belongs to.

Step 4.1: Classify the team with a node query

To find out what the team behind the ID is, the researcher sends a second query that resolves the same global ID through the node interface:

JSON
{"query":"query{node(id:\"gid://hackerone/Team/21732\"){... on Team{_id,handle,state}}}"}

The inline fragment ... on Team selects _id, handle and state. The answer is:

Text
Team does not exist

Because the team cannot be resolved through node while the mutation still recognises the ID as a team it will not authorise, the researcher concludes that the ID belongs to a private program.

Building the list

The researcher's reasoning is that sandbox program IDs can be identified from the sandbox-specific error, and that the remaining IDs can be split by removing the IDs of public and external programs (the directory listing). What is left is a list of identifiers that belong only to fully private programs. The list is kept, and in the future, when a program moves from fully private to the directory listing (as a private program with an external link), the saved identifiers can be checked again. If the ID is present in the list, the tester knows that a private part exists there. The researcher describes the report as intended for the future, and notes that it also demonstrates an authorisation error when accessing someone else's ID, though only if that ID is a sandbox program.

Root cause

The createSolutionInstance mutation returns a message specific to sandbox teams, while other teams get the generic authorisation response. That difference in error text is an information leak: the caller learns the type of a team it has no access to. The node query then provides a second signal, since a team that the mutation treats as existing but unauthorised can still return Team does not exist through node. The report's recommendation is to add an additional authorisation check on someone else's program ID, so that the response does not vary with the target team's type.

Impact

Hackers can find out the ID of private programs. The researcher frames the main value as future: a saved list of private program IDs can be re-checked when a program later appears in the directory listing as a private program with an external link, revealing that a private part exists. The report also notes an authorisation error when accessing someone else's ID, but only for sandbox programs.

Fix

The report recommends creating an additional authorisation check for someone else's program ID. The report does not describe a fix that was applied.

Variants to test

  • Send the createSolutionInstance mutation with team IDs from different sources (sandbox, public, external, private) and compare the error text. A positive result is any message that differs from the generic You do not have the appropriate access for a team the account cannot access.
  • Resolve the same IDs through the node query with an inline ... on Team fragment. A positive result is a team that the mutation refuses to authorise but that node reports as Team does not exist, which the researcher treats as a private program.
  • Repeat both requests from an account with no program memberships, to confirm the difference is not caused by legitimate access.
  • Keep a list of IDs classified as private and re-check them after programs move to the directory listing, looking for IDs that reappear as private programs with an external link.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 11 min read.

What happened, in plain words

HackerOne is a website where companies (called "programs") invite security researchers to look for bugs in their software and report them. Some of those programs are public: anyone can see them in a directory, like a shop window. Others are private: only invited people know they exist. A third kind is a "sandbox" program, a practice area a company can set up to try things out.

Every program on HackerOne has an internal number, an ID. If you know a program's ID, you can refer to that program directly, even if you are not supposed to know it is there. The researcher in this report found that one part of HackerOne's website answers questions about program IDs in a way that gives away what kind of program each ID belongs to. By asking about many IDs and comparing the answers, someone could work out which IDs belong to private programs, and keep that list for later.

This is called an information disclosure: the site does not hand over the private data itself, but it leaks a small fact (here, the type of a program) that should have stayed hidden.

To understand the rest, you need three ideas:

  • An API is a way for one piece of software to talk to another, like a waiter in a restaurant: you send an order in a fixed format, the kitchen sends back a dish in a fixed format. HackerOne's website talks to its own servers through an API.
  • GraphQL is a particular style of API. Instead of many separate addresses (URLs) for different things, there is one address, and you send a text describing exactly what you want to read or change. That text is called a query (for reading) or a mutation (for changing something).
  • A global ID is a long label that uniquely names one thing across the whole system, for example gid://hackerone/Team/21732. The number at the end is the program's ID.

Context

HackerOne exposes a GraphQL endpoint at http://hackerone.com/graphql. An endpoint is simply the address you send your request to, like a counter in a post office. Among the mutations it offers is createSolutionInstance, which is used to attach a solution (an integration) to a team. An integration here means connecting a program to some outside service. The mutation takes a team_id as a global ID of the form gid://hackerone/Team/<number> and a solution_id.

The researcher found that the error returned by this mutation differs depending on what kind of team the supplied ID belongs to. That difference lets an account that is not a member of any program probe arbitrary team IDs and learn something about teams it has no relationship with, including sandbox programs and private programs.

Setup

  1. A new account, deliberately not a member of any private program, so that access to other teams is not granted through membership. If you were a member of a program, you would legitimately be allowed to see it, and the test would prove nothing.
  2. A sandbox program created by the researcher, for confidence, via https://hackerone.com/teams/new/sandbox. Having a program whose type you already know lets you see what the answer looks like for that type.
  3. A GraphQL client able to send the raw JSON bodies shown below to http://hackerone.com/graphql. A client is just a tool that sends the request for you; a browser extension or a small script both work. JSON is a text format for structured data, using curly braces, quotes and colons, like a very strict shopping list.

Finding it

The researcher noticed that the response to the createSolutionInstance mutation is not uniform. For an arbitrary team ID the API answers with an authorisation error:

You do not have the appropriate access

For a sandbox program, however, it answers with a different message:

"Team not enabled to use this integration whilst sandboxed, contact your program manager to be whitelisted."

That second message confirms the ID belongs to a sandbox program, even though the caller has no access to it. The researcher also observed that a team ID which produces the authorisation error can be classified further with a second query, and that the combination reveals whether the team is a private program.

Exploitation

Step 1: Create an account with no private program membership

A fresh account is created so that the tester is not a member of any private program. This removes membership as a source of legitimate access and makes the responses below attributable to the endpoint's own checks. In plain terms: if the site only answered because you were a member, you would not have learned anything about its security.

Step 2: Create a sandbox program

A sandbox program is created through https://hackerone.com/teams/new/sandbox to obtain a known sandbox team ID and to confirm the behaviour of the mutation against it. You need one example where you already know the answer, so that you can recognise the same answer when it appears for a program you do not know.

Step 3: Send the mutation against the sandbox team

The following GraphQL body is sent, with team_id set to the sandbox team's global ID (gid://hackerone/Team/51925 in the report):

JSON
{"operationName":"createSolutionInstance","variables":{"team_id":"gid://hackerone/Team/51925","solution_id":"","name":""},"query":"mutation createSolutionInstance($team_id: ID!, $solution_id: String!) {createSolutionInstance(input: {team_id: $team_id, solution_id: $solution_id}) {team {id, ...TeamFragment,__typename},new_solution_instance_id,was_successful,errors {edges {node {id,message,__typename,}__typename}__typename}__typename}} fragment TeamFragment on Team {id,handle,tray_integration{id,_id,active,tray_profile {id,tray_user_id,__typename},solution_instances(solution_id: $solution_id) {edges {node {id,_id,name,description,enabled,created,solution {id,name,custom_fields,__typename}__typename}__typename}__typename}__typename}__typename}"}

Line by line, in plain words:

  • "operationName":"createSolutionInstance" gives the request a name, so the server knows which operation you mean.
  • "variables":{...} holds the values that will be plugged into the query. Here team_id is the sandbox team's global ID, and solution_id and name are empty strings.
  • "query":"mutation createSolutionInstance($team_id: ID!, $solution_id: String!) ..." is the actual instruction. mutation means "change something". $team_id: ID! and $solution_id: String! declare two inputs; the ! means they are required.
  • createSolutionInstance(input: {team_id: $team_id, solution_id: $solution_id}) is the action: create a solution instance for that team with that solution.
  • {team {id, ...TeamFragment,__typename}, new_solution_instance_id, was_successful, errors {...}} says what to send back: the team, the ID of the new solution instance, a success flag, and any errors.
  • fragment TeamFragment on Team {id,handle,tray_integration{...}} is a reusable block describing extra team details to include, such as its handle (its short name) and its tray_integration, which contains a tray_profile and the solution_instances filtered by $solution_id.
  • __typename is a built-in field that tells you the type of the object, useful for the client to understand the answer.

The answer is:

Text
Team not enabled to use this integration whilst sandboxed, contact your program manager to be whitelisted.

This message tells the tester that the team behind the ID is a sandbox program. The important point is not the refusal itself, which is expected, but the wording: it is a refusal that mentions sandboxing, so it reveals the type of the team.

Step 4: Send the same mutation against another team ID

The same body is sent again with a different team_id (gid://hackerone/Team/21732 in the report):

JSON
{"operationName":"createSolutionInstance","variables":{"team_id":"gid://hackerone/Team/21732","solution_id":"","name":""},"query":"mutation createSolutionInstance($team_id: ID!, $solution_id: String!) {createSolutionInstance(input: {team_id: $team_id, solution_id: $solution_id}) {team {id, ...TeamFragment,__typename},new_solution_instance_id,was_successful,errors {edges {node {id,message,__typename,}__typename}__typename}__typename}} fragment TeamFragment on Team {id,handle,tray_integration{id,_id,active,tray_profile {id,tray_user_id,__typename},solution_instances(solution_id: $solution_id) {edges {node {id,_id,name,description,enabled,created,solution {id,name,custom_fields,__typename}__typename}__typename}__typename}__typename}__typename}"}

This is the same request as before, character for character, except that the number in team_id is now 21732 instead of 51925. Everything else, including the empty solution_id and name, stays the same, so that the only thing that changes between the two tests is the team being asked about.

The answer is:

Text
You do not have the appropriate access

This is the generic authorisation error. It does not by itself say what kind of team the ID belongs to. It only says "you are not allowed", which is the correct answer for a team you have nothing to do with.

Step 4.1: Classify the team with a node query

To find out what the team behind the ID is, the researcher sends a second query that resolves the same global ID through the node interface. The node interface is a standard GraphQL way of asking "give me the object with this global ID", whatever kind of object it is.

JSON
{"query":"query{node(id:\"gid://hackerone/Team/21732\"){... on Team{_id,handle,state}}}"}

Line by line:

  • "query":"query{...}" marks this as a read-only query, not a change.
  • node(id:\"gid://hackerone/Team/21732\") asks for the object with that global ID. The backslashes are only there because the quotes sit inside a JSON string.
  • ... on Team{_id,handle,state} is an inline fragment: "if this object is a Team, give me its _id, its handle and its state".

The answer is:

Text
Team does not exist

Because the team cannot be resolved through node while the mutation still recognises the ID as a team it will not authorise, the researcher concludes that the ID belongs to a private program. In other words, the two answers together are contradictory: one part of the system treats the team as real but off limits, the other says there is no such team. That contradiction is the clue.

Building the list

The researcher's reasoning is that sandbox program IDs can be identified from the sandbox-specific error, and that the remaining IDs can be split by removing the IDs of public and external programs (the directory listing). What is left is a list of identifiers that belong only to fully private programs. The list is kept, and in the future, when a program moves from fully private to the directory listing (as a private program with an external link), the saved identifiers can be checked again. If the ID is present in the list, the tester knows that a private part exists there. The researcher describes the report as intended for the future, and notes that it also demonstrates an authorisation error when accessing someone else's ID, though only if that ID is a sandbox program.

Root cause

The createSolutionInstance mutation returns a message specific to sandbox teams, while other teams get the generic authorisation response. That difference in error text is an information leak: the caller learns the type of a team it has no access to. The node query then provides a second signal, since a team that the mutation treats as existing but unauthorised can still return Team does not exist through node. The report's recommendation is to add an additional authorisation check on someone else's program ID, so that the response does not vary with the target team's type.

Impact

Hackers can find out the ID of private programs. The researcher frames the main value as future: a saved list of private program IDs can be re-checked when a program later appears in the directory listing as a private program with an external link, revealing that a private part exists. The report also notes an authorisation error when accessing someone else's ID, but only for sandbox programs.

Fix

The report recommends creating an additional authorisation check for someone else's program ID. The report does not describe a fix that was applied.

Variants to test

  • Send the createSolutionInstance mutation with team IDs from different sources (sandbox, public, external, private) and compare the error text. A positive result is any message that differs from the generic You do not have the appropriate access for a team the account cannot access.
  • Resolve the same IDs through the node query with an inline ... on Team fragment. A positive result is a team that the mutation refuses to authorise but that node reports as Team does not exist, which the researcher treats as a private program.
  • Repeat both requests from an account with no program memberships, to confirm the difference is not caused by legitimate access.
  • Keep a list of IDs classified as private and re-check them after programs move to the directory listing, looking for IDs that reappear as private programs with an external link.

Glossary

  • API: a fixed way for one piece of software to ask another for information or to make it do something, like a menu you order from.
  • Authorisation: the check that decides whether you are allowed to do something, as opposed to authentication, which is about who you are.
  • Bounty: a reward, usually money, paid for a valid bug report.
  • CVSS: a standard scoring system for how serious a security flaw is; higher numbers mean more serious.
  • Directory listing: the public list of programs on HackerOne that anyone can browse.
  • Endpoint: the address a request is sent to.
  • External link: a program that appears in the directory but points to its own separate site.
  • Fragment: a reusable block of fields in a GraphQL query, so you do not have to repeat them.
  • Global ID: a long label that uniquely identifies one object across the whole system, such as gid://hackerone/Team/21732.
  • GraphQL: a style of API where you send one text describing exactly what you want to read or change.
  • Information disclosure: a flaw where a system reveals a fact it should have kept hidden, even if it does not reveal the whole secret.
  • Inline fragment: a fragment written directly inside a query, used to ask for fields only if the object is of a certain type.
  • Integration: a connection between a program and an outside service.
  • JSON: a text format for structured data using braces, quotes and colons.
  • Mutation: a GraphQL request that changes something, as opposed to a query that only reads.
  • Node interface: a standard GraphQL way of fetching any object by its global ID.
  • Private program: a program that is not shown in the public directory and is only known to invited people.
  • Public program: a program that anyone can see in the directory.
  • Query: a GraphQL request that only reads data.
  • Sandbox program: a practice or trial program a company can create to test things without affecting its real program.
  • Severity: a label for how serious a flaw is, here low.
  • Team: HackerOne's internal name for a program.
  • Variable: a named value passed into a GraphQL query so the query text itself does not have to change.

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.