Skip to content
Info disclosure Disclosed report Beginner

Unauthorized user can obtain `report_sources` attribute through Team GraphQL object

The GraphQL API exposed the report_sources attribute of private programs to unauthorised users. An attacker could query any team handle and learn whether a program is private and what external link it uses.

haxta4ok00 Follow

Originally disclosed on HackerOne

Bounty$2,500 Medium 5.0 View original
  • Disclosed after 33 days

Summary: Hi team. And Happy New Year! Description: If I am not mistaken, then through this parameter we can define private programs with an external link.

If this parameter is not empty, then the program is private. - ["HackerOne Platform"]

Steps To Reproduce

https://hackerone.com/graphql POST:

1){"query": "query {team(handle:\"████████\"){_id,report_sources}}"} {"data":{"team":{"_id":"██████████","report_sources":[]}}} - not private program

2){"query": "query {team(handle:\"███\"){_id,report_sources}}"} {"data":{"team":{"_id":"█████","report_sources":["HackerOne Platform"]}}} - ["HackerOne Platform"] - private program

3){"query": "query {team(handle:\"█████████\"){_id,report_sources}}"} {"data":{"team":{"_id":"█████████","report_sources":["HackerOne Platform"]}}} - ["HackerOne Platform"] - private program

4){"query": "query {team(handle:\"█████\"){_id,report_sources}}"} {"data":{"team":{"_id":"███","report_sources":[]}}} - not private program

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

Impact

disclosed of private programs who have external link

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. 4 min read.

Context

HackerOne exposes a GraphQL endpoint at https://hackerone.com/graphql. Among the objects it serves is team, which represents a program on the platform. The team object carries a report_sources attribute, and the researcher's observation is that this attribute reflects whether a program is private: when the value is an empty list the program is public, and when it contains ["HackerOne Platform"] the program is private. The report describes this as defining private programs with an external link.

The issue is that a user can query report_sources for an arbitrary team handle and read back that value, which discloses the private status of programs.

Setup

No accounts, roles, tools or versions are described. The only precondition shown is network access to https://hackerone.com/graphql and the ability to send a POST request with a JSON body. The team handles used in the examples are redacted in the report, so the specific programs are not identified.

Finding it

The researcher suggests that the report_sources attribute of the team GraphQL object may encode the privacy of a program: a non-empty value means the program is private, an empty value means it is not. Because the team query accepts a handle and returns this attribute, the question was whether a user with no relationship to the program could still read it. The four requests below show that the answer is yes, and that the response distinguishes private from public programs.

Exploitation

All requests are POSTs to the GraphQL endpoint:

HTTP
https://hackerone.com/graphql
POST:

Step 1: a program that is not private

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

The query asks for the team object selected by handle, returning only _id and report_sources. The response was:

JSON
{"data":{"team":{"_id":"██████████","report_sources":[]}}}

An empty report_sources list, which the researcher reads as a program that is not private.

Step 2: a private program

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

Response:

JSON
{"data":{"team":{"_id":"█████","report_sources":["HackerOne Platform"]}}}

Here report_sources contains ["HackerOne Platform"], which the researcher reads as a private program.

Step 3: another private program

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

Response:

JSON
{"data":{"team":{"_id":"█████████","report_sources":["HackerOne Platform"]}}}

Same pattern: the non-empty list marks a private program.

Step 4: another program that is not private

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

Response:

JSON
{"data":{"team":{"_id":"███","report_sources":[]}}}

Again an empty list, matching the first case.

The four examples together establish the correlation: empty list means not private, ["HackerOne Platform"] means private. The researcher does not show an authentication header or session cookie in any of the requests, and the report does not describe any authorisation check that was bypassed; the point is that the attribute is reachable and readable for handles the requester has no relationship with.

Root cause

The report does not analyse the server-side code. What it demonstrates is that the team GraphQL field resolves for arbitrary handles and exposes report_sources without restricting the field to users who are entitled to know the program's privacy. The privacy signal is carried in a field that is returned for arbitrary handles. Whether the field is meant to be public for public programs and hidden for private ones is not stated; the observable behaviour is that both are returned.

Impact

As the researcher puts it, the impact is disclosure of private programs that have an external link. The impact is disclosure of private programs that have an external link. The report does not describe any further data being exposed, and does not claim access to reports, scopes or participant lists.

Fix

The natural fix, given the behaviour shown, is to restrict report_sources on the team object so that it is only returned to viewers entitled to see it, or to remove the attribute from the publicly resolvable schema entirely. Which of these was done is not described.

Variants to test

  1. Query other fields on team for arbitrary handles and compare what comes back for known private and known public programs. A positive result is any field whose value differs between the two and is not otherwise visible to an unauthenticated user.
  2. Try the same selection on related objects (for example objects reachable from team) to see whether privacy-related attributes leak through nested resolvers. A positive result is a nested field returning a non-empty marker for a private program.
  3. Send the query without any authentication and with a low-privilege session, and compare responses. A positive result is identical data in both cases, showing the field is not viewer-scoped.
  4. Enumerate handles and record which return the private marker. A positive result is a reliable mapping from handle to private status for programs the requester cannot otherwise see.

Hunting notes

GraphQL endpoints are a good place for this kind of bug because a single schema can expose attributes that the REST or HTML interface hides. During recon, look for a /graphql endpoint and introspect the schema, then look for boolean-like or list-valued fields on organisation or program objects whose emptiness or content could encode visibility, membership or tier. The signal in this report is simple: the same query returns different values for private and public entities, and the requester has no relationship with either. To show impact, demonstrate the distinction on several handles, as the researcher did with four examples, so the reviewer can see the pattern rather than a single ambiguous response.

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 systems. Some of those programs are public: anyone can see them and read about them. Others are private: they exist, but they are not shown to the general public, and only invited people know about them.

The researcher in this report found a way to ask HackerOne's website a question that it should not have answered for a stranger. By sending a request to a part of the site called GraphQL, a user could ask about a program by its short name (its handle) and get back a small piece of data that revealed whether that program was private or public. In other words, the site was quietly telling outsiders which programs were meant to be secret.

The report is short and the researcher apologises for their English. The researcher suggests that a value called report_sources acts like a flag. When it is an empty list, the program is not private. When it contains ["HackerOne Platform"], the program is private. The four examples in the report show this pattern on four different programs.

Background you need first

Before walking through the steps, here are the few ideas the report relies on, explained from scratch.

What an API is

An API is a way for one piece of software to talk to another. A useful comparison is a restaurant. You do not walk into the kitchen and cook; you tell the waiter what you want, and the waiter brings it back. The menu is the list of things you are allowed to ask for, and the waiter is the API. On a website, the API is often a special address that accepts requests and returns data in a structured format, rather than a normal web page with pictures and buttons.

What GraphQL is

GraphQL is a particular style of API. Instead of many different addresses for many different things, there is usually one address, and you send it a description of exactly which pieces of data you want. That description is called a query. The server reads your query, fetches only the fields you named, and sends them back. The advantage for developers is flexibility; the risk for security is that a single address can expose many pieces of data, and it is easy to forget to hide one of them.

What a POST request is

When your browser loads a page, it usually sends a GET request: "please give me this page". A POST request is the other common kind: "here is some data, please do something with it". APIs often use POST because the query you send can be long and is carried in the body of the request rather than in the address.

What JSON is

JSON is a simple text format for structured data. It uses curly braces {} for objects (a collection of named values), square brackets [] for lists, and quotes around text. For example, {"name": "Alice"} is an object with one field called name whose value is the text Alice. An empty list is written []. The requests and responses in this report are all JSON.

What a handle is

A handle is a short, unique name for a program on the platform, a bit like a username. It is what you would put in a web address to reach that program's page. In this report the actual handles are blacked out (redacted) so the specific programs are not named.

What the vulnerability class means

This bug is classed as information disclosure. That simply means the system revealed information to someone who should not have had it. Nothing was changed or deleted; the harm is that a secret stopped being secret. Here the secret is which programs are private.

The setup

There is not much to set up. The report does not mention any account, any special tool, any role or any software version. The only things needed are:

  1. A computer with an internet connection.
  2. The ability to send a POST request with a JSON body to https://hackerone.com/graphql. This can be done with a browser extension, a command-line tool, or any API testing tool; the report does not say which the researcher used.

That is the whole precondition. No login is shown, and no session cookie or token appears in any of the requests.

Finding it

The researcher noticed something about the team object in HackerOne's GraphQL schema. A team represents a program on the platform. One of its attributes is called report_sources, and its value seemed to encode whether the program is private:

  • If report_sources is an empty list [], the program is not private.
  • If report_sources contains ["HackerOne Platform"], the program is private.

The natural next question was: can someone with no relationship to a program still read this attribute? The team query takes a handle and returns whatever fields you ask for, so the researcher tried asking for _id and report_sources on several handles. The four requests below show that the answer is yes, and that the response clearly separates private from public programs.

Exploitation

All four requests are POSTs to the same GraphQL address:

HTTP
https://hackerone.com/graphql
POST:

This block says two things. First, the address being contacted is https://hackerone.com/graphql, the single GraphQL endpoint for the site. Second, the method used is POST, meaning the query travels in the body of the request rather than in the address. The colon after POST is just punctuation from the report.

Step 1: a program that is not private

The first request asks about one program:

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

Line by line, in plain words:

  • The outer {} is a JSON object, the envelope for the request.
  • "query" is the name of the field the API expects; its value is the GraphQL query itself, written as a piece of text.
  • Inside that text, query { ... } says "this is a query, here is what I want".
  • team(handle:"████████") asks for the team object whose handle is the redacted name shown. The handle is the program's short name.
  • {_id,report_sources} lists the two fields to return: _id, an internal identifier for the program, and report_sources, the attribute the researcher is investigating.
  • The backslashes \" are there because the query is itself inside a JSON string, so the quotation marks around the handle have to be escaped. To a human reader, it is simply handle:"████████".

The server replied:

JSON
{"data":{"team":{"_id":"██████████","report_sources":[]}}}

This response is a JSON object with a data field, which is how GraphQL wraps successful results. Inside data is team, the object that was asked for. It has the _id (redacted) and report_sources set to [], an empty list. The researcher reads an empty list as meaning the program is not private.

Step 2: a private program

The second request uses the same shape on a different handle:

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

This is identical to the first request except for the handle, which is a different redacted name. The purpose is to see whether a program known to be private produces a different value.

The response was:

JSON
{"data":{"team":{"_id":"█████","report_sources":["HackerOne Platform"]}}}

Here report_sources is not empty. It contains a list with one item, the text "HackerOne Platform". The researcher reads a non-empty list as meaning the program is private. This is the key observation: the same query, with no login, returns a value that distinguishes a private program from a public one.

Step 3: another private program

To make sure the pattern was not a one-off, the researcher tried a third handle:

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

Again the only change is the redacted handle. The response:

JSON
{"data":{"team":{"_id":"█████████","report_sources":["HackerOne Platform"]}}}

The result matches step 2: report_sources contains ["HackerOne Platform"], so this is another private program. Repeating the test on a second private program makes the pattern more convincing than a single example would.

Step 4: another program that is not private

Finally, a fourth handle:

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

And the response:

JSON
{"data":{"team":{"_id":"███","report_sources":[]}}}

Once more the list is empty, matching step 1. So the four examples together establish the correlation: an empty list means not private, and ["HackerOne Platform"] means private.

It is worth noting what is not in these requests. There is no authentication header, no session cookie and no token. The point is simply that the attribute can be reached and read for handles the requester has no relationship with.

Root cause

The report does not analyse the server-side code, so we cannot say exactly which line was at fault. What it demonstrates is that the team field in GraphQL resolves for any handle you name, and that it exposes report_sources without restricting that field to people who are entitled to know the program's privacy. The privacy signal is carried in a field that is returned for arbitrary handles. Whether the field was intended to be public for public programs and hidden for private ones is not stated; what is observable is that both are returned.

Impact

As the researcher puts it, the impact is disclosure of private programs that have an external link. The impact is disclosure of private programs that have an external link.

Fix

The natural fix, given the behaviour shown, is to restrict report_sources on the team object so that it is only returned to viewers entitled to see it, or to remove the attribute from the publicly resolvable schema entirely. Which of these was done is not described.

Variants to test

If you want to look for similar issues yourself, here are four directions, each with what a positive result would look like.

  1. Query other fields on team for arbitrary handles and compare what comes back for known private and known public programs. A positive result is any field whose value differs between the two and is not otherwise visible to an unauthenticated user.
  2. Try the same selection on related objects (for example objects reachable from team) to see whether privacy-related attributes leak through nested resolvers. A positive result is a nested field returning a non-empty marker for a private program.
  3. Send the query without any authentication and with a low-privilege session, and compare responses. A positive result is identical data in both cases, showing the field is not viewer-scoped.
  4. Enumerate handles and record which return the private marker. A positive result is a reliable mapping from handle to private status for programs the requester cannot otherwise see.

Hunting notes

GraphQL endpoints are a good place for this kind of bug because a single schema can expose attributes that the normal web pages or other APIs hide. During recon, look for a /graphql endpoint and introspect the schema (ask the API to describe itself), then look for boolean-like or list-valued fields on organisation or program objects whose emptiness or content could encode visibility, membership or tier. The signal in this report is simple: the same query returns different values for private and public entities, and the requester has no relationship with either. To show impact, demonstrate the distinction on several handles, as the researcher did with four examples, so the reviewer can see the pattern rather than a single ambiguous response.

Glossary

  • API: a way for software to talk to other software, like a waiter taking your order to the kitchen and bringing back the result.
  • Authentication: proving who you are, usually by logging in. The requests in this report show no authentication.
  • Authorisation: deciding what a proven user is allowed to see or do. A missing authorisation check is what lets a stranger read data they should not.
  • Bounty: a payment made by a company to a researcher who reports a valid security bug.
  • Cookie: a small piece of data a website stores in your browser, often used to remember that you are logged in. No cookie appears in these requests.
  • CVSS: a standard scoring system for the severity of a security bug, from 0 to 10.
  • Endpoint: a specific address on a server that accepts requests, such as https://hackerone.com/graphql.
  • Enumerate: to go through a list of possible names or values one by one, for example trying many handles to see which exist.
  • Field: a named piece of data inside an object, such as _id or report_sources.
  • GET: the usual request a browser sends to load a page, asking the server to return something.
  • GraphQL: a style of API where you send one query describing exactly which fields you want, and the server returns only those.
  • Handle: a short unique name for a program on the platform, used to identify it.
  • Header: extra information attached to a request, such as who is asking or what format they expect. No authentication header appears in these requests.
  • Information disclosure: a bug where the system reveals data to someone who should not have it, without necessarily changing anything.
  • Introspection: a GraphQL feature that lets a client ask the API to describe its own schema, listing the objects and fields available.
  • JSON: a text format for structured data, using {} for objects, [] for lists and quotes for text.
  • List: an ordered collection of values in JSON, written with square brackets. [] is an empty list.
  • POST: a request that carries data in its body, often used to send a query or form to a server.
  • Private program: a program on the platform that is not shown to the general public and is only known to invited people.
  • Public program: a program that anyone can see on the platform.
  • Query: in GraphQL, the text describing which data you want back.
  • Redacted: hidden or blacked out, usually to protect identities or secrets. The handles and IDs in this report are redacted.
  • Resolver: the server-side code that answers a particular field in a GraphQL query.
  • Response: the data the server sends back after a request.
  • Schema: the description of what objects and fields a GraphQL API offers.
  • Session: a period during which a website remembers who you are, usually via a cookie or token.
  • Severity: how serious a bug is judged to be, often expressed as low, medium, high or critical.
  • Token: a piece of text used to prove identity or permission, similar in purpose to a cookie. No token appears in these requests.
  • Unauthenticated: not logged in, with no identity proven to the server.

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.