TeamProfile exposes partially sensitive information through GraphQL
A newly added GraphQL field on the team profile returned aggregate report statistics, including counts of reports received in the last three months and the timestamp of the latest serious report, that were not shown in the normal interface. An attacker could query this field to learn non-public activity data about a programme.
- Triaged in 6 days
- Fixed in 6 days
- Paid in 6 days
- Disclosed after 6 days
I noticed there is new field team_profile added and using the graphql below the latest serious report and reports received in three months were exposed
{"query":"query Dashboard_report_severity_breakdown_table($first_0:Int!) {\n query {\n id,\n ...F0\n }\n}\nfragment F0 on Query {\n _team4g1Zqs:team(handle:\"security\") {\n _structured_scopes3TsuIg:structured_scopes(first:$first_0) {\n edges {\n node {\n _id,\n asset_identifier,\n reports {\n total_count,\n count_by_severity\n },\n id\n },\n cursor\n },\n pageInfo {\n hasNextPage,\n hasPreviousPage\n }\n },\n _reports42Gng6:reports(without_scope:true) {\n total_count,\n count_by_severity\n },\n team_profile{_id,disclosed_reports_in_last_year_count,latest_report_created_at,latest_serious_report_created_at,reports_received_in_three_months_count}, _id, id\n },\n id\n}","variables":{"first_0":100}}
If this is public information i can close this by myself (my reputation is very low) but i think it's not and worth to report it
Impact
Information disclosure of no of reports received in 3 months time and other information not in the current UI
Context
HackerOne's team pages expose a GraphQL API that backs the dashboard views for a program. One of the dashboard widgets is a severity breakdown table, which shows how many reports a team has received, broken down by severity, and how those reports map to the team's structured scopes (the in-scope assets). The researcher noticed that a new field, team_profile, had been added to the schema and was reachable through the same dashboard query.
Setup
The report does not describe any special account, role or tooling. The researcher was working against the hackerone.com asset and used the GraphQL query shown below, which is the dashboard severity breakdown query for the security team. No versions, headers or authentication details are given in the report.
Finding it
The researcher noticed that a new field team_profile had been added to the schema. Querying it through the existing dashboard query returned data that was not shown in the current UI, including the number of reports received in a three-month window and the timestamp of the latest serious report. The researcher's own framing was that the latest serious report and the reports received in three months were exposed, and that this information was not present in the current UI.
Exploitation
Step 1: Send the dashboard query with the new field
The researcher used the following GraphQL request, which is the dashboard severity breakdown query with team_profile added to the selection set:
{"query":"query Dashboard_report_severity_breakdown_table($first_0:Int!) {\n query {\n id,\n ...F0\n }\n}\nfragment F0 on Query {\n _team4g1Zqs:team(handle:\"security\") {\n _structured_scopes3TsuIg:structured_scopes(first:$first_0) {\n edges {\n node {\n _id,\n asset_identifier,\n reports {\n total_count,\n count_by_severity\n },\n id\n },\n cursor\n },\n pageInfo {\n hasNextPage,\n hasPreviousPage\n }\n },\n _reports42Gng6:reports(without_scope:true) {\n total_count,\n count_by_severity\n },\n team_profile{_id,disclosed_reports_in_last_year_count,latest_report_created_at,latest_serious_report_created_at,reports_received_in_three_months_count}, _id, id\n },\n id\n}","variables":{"first_0":100}}
The important parts of the request are:
- The operation is named
Dashboard_report_severity_breakdown_tableand takes a single variable,first_0, set to100, which controls how many structured scopes are returned. - The
teamfield is aliased to_team4g1Zqsand targets the team withhandle:"security". - The
structured_scopesfield is aliased to_structured_scopes3TsuIgand returns each scope'sasset_identifierand its report counts (total_countandcount_by_severity). - The
reportsfield is aliased to_reports42Gng6withwithout_scope:true, returning the team's overall report counts by severity. - The added field is
team_profile, selecting_id,disclosed_reports_in_last_year_count,latest_report_created_at,latest_serious_report_created_atandreports_received_in_three_months_count.
The report does not include the response body. What it states is that the query returned the latest serious report and the reports received in three months, and that this information is not in the current UI.
Root cause
The report does not describe the server-side implementation. What can be said from the report is that the team_profile field was added to the schema and was reachable through the dashboard query, and that it exposed fields (latest_serious_report_created_at, reports_received_in_three_months_count, disclosed_reports_in_last_year_count, latest_report_created_at) that were not surfaced in the UI. Whether the field was intended to be restricted to certain viewers, or whether the UI simply had not been updated to show it, is not stated.
Impact
The researcher describes the impact as information disclosure of the number of reports received in a three-month window and other information not present in the current UI. The report does not quantify how many teams or users were affected, nor whether the data was otherwise public. The researcher explicitly asked whether the information was public and offered to close the report if it was, noting a low reputation, but considered it worth reporting. The report was rated low severity with a CVSS score of 3.8.
Fix
What should be done, based on the finding, is to enforce the same visibility rules on team_profile that apply to the UI, so that fields such as latest_serious_report_created_at and reports_received_in_three_months_count are only returned to callers authorised to see them, or to remove the field from the public schema if it is not meant to be exposed.
Variants to test
- On other GraphQL APIs, look for recently added fields in the schema (through introspection or changelogs) and try selecting them in existing dashboard queries. A positive result is a field that returns data not visible in the UI.
- Try aliasing sensitive fields and mixing them into a legitimate query, as done here with
_team4g1Zqsand_structured_scopes3TsuIg. A positive result is the aliased field returning data alongside the expected results. - Try fields that aggregate or summarise data, such as counts and timestamps (
*_count,latest_*_at). A positive result is a count or timestamp that reveals activity not otherwise disclosed. - Try the same query against different team handles. A positive result is the same fields returning data for teams whose profiles you should not be able to inspect.
Hunting notes
This kind of bug tends to hide in GraphQL schemas where new fields are added for internal dashboards and then exposed through the same public query. Signals during recon include schema changes, new field names in responses, and dashboard queries that already return aggregate counts. The researcher pointed to specific fields (latest_serious_report_created_at, reports_received_in_three_months_count) that were not in the UI and asked directly whether the data was public.
What happened, in plain words
HackerOne is a website where companies (called programs) invite security researchers to test their systems and report problems. Each program has a public page on HackerOne, and behind that page there is a dashboard that shows statistics about the program, such as how many reports it has received and how serious those reports were.
Those statistics are not typed into the page by hand. The page asks a server for the numbers using a special kind of web service called an API. The researcher noticed that a new piece of data, a field called team_profile, had been added to that API. By asking for it in a normal dashboard request, the researcher could get numbers that the website itself does not show to visitors, such as how many reports a team received in the last three months and when its most recent serious report arrived.
The researcher was not sure whether this information was already public. Because their reputation score on the platform was low, they offered to close the report themselves if it turned out to be public, but thought it was worth reporting anyway. The report was rated low severity with a CVSS score of 3.8.
Background you need first
A few ideas come up again and again below, so here they are from zero.
API. An API (Application Programming Interface) is a way for one piece of software to ask another for data or to perform an action. A useful everyday comparison is a restaurant: you do not walk into the kitchen, you tell the waiter what you want and the waiter brings it back. The API is the waiter. The website's pages are one customer of the waiter, and so is anyone else who knows how to place an order.
GraphQL. GraphQL is a particular style of API. Instead of many separate addresses (one for reports, one for teams, one for statistics), there is usually a single address, and the caller sends a description of exactly which pieces of data it wants. That description is called a query. The server reads the query and returns only the fields that were asked for. This is convenient for developers, but it also means that if a field exists in the API, anyone who knows its name can ask for it.
Field. A field is one named piece of data inside a GraphQL query, for example total_count or latest_report_created_at. Think of the API as a form with many boxes, each with a label, and a field is one of those labelled boxes.
Schema. The schema is the full list of fields and types that the API offers. It is like the menu in the restaurant comparison: it tells you what can be ordered. When developers add a new feature, they often add new fields to the schema.
Alias. In GraphQL you can give a field a second name, an alias, and use that name in the query instead. It is like ordering "the usual" at a cafe: the alias is your shorthand, and the server still knows which real item you mean. Aliases are handy when you want to ask for the same kind of thing more than once in one query.
Structured scope. A scope is the list of things a program has agreed researchers may test, for example a particular website or app. HackerOne calls these structured scopes, and each one has an identifier (the asset) plus counts of the reports that were filed against it.
Severity. Severity is how serious a security report is judged to be, usually on a scale from low to critical. A severity breakdown is simply a count of reports in each severity band.
Information disclosure. This is the name for a vulnerability where data that should not be visible to a particular person can be read by them. Nothing is changed or broken; the problem is that information leaks. A comparison: a filing cabinet in an office that is supposed to be locked, but the drawer slides open when you pull it. Nobody stole anything, but private papers are now readable.
CVSS. CVSS is a standard scoring system for the severity of a security issue. It produces a number, and 3.8 is in the low range.
Reputation. On bug bounty platforms, researchers earn a reputation score based on the reports they have submitted and how those reports were received. A low score can make a researcher less confident that a report will be taken seriously, which is why the researcher in this case offered to close their own report.
The context of the finding
The dashboard on a HackerOne program page includes a widget called a severity breakdown table. It shows how many reports the team has received, split by severity, and how those reports map to the team's structured scopes. The researcher noticed that a new field, team_profile, had been added to the schema and could be reached through the same dashboard query that the page already uses.
Setting up
The report does not describe any special account, role or tooling. The researcher was working against the hackerone.com asset and used the GraphQL query shown below, which is the dashboard severity breakdown query for the security team. No versions, headers or authentication details are given in the report.
Finding it
The researcher noticed that a new field team_profile had been added to the schema. Querying it through the existing dashboard query returned data that was not shown in the current UI, including the number of reports received in a three-month window and the timestamp of the latest serious report. The researcher's own framing was that the latest serious report and the reports received in three months were exposed, and that this information was not present in the current UI.
Exploitation
Step 1: Send the dashboard query with the new field
The researcher used the following GraphQL request, which is the dashboard severity breakdown query with team_profile added to the selection set:
{"query":"query Dashboard_report_severity_breakdown_table($first_0:Int!) {\n query {\n id,\n ...F0\n }\n}\nfragment F0 on Query {\n _team4g1Zqs:team(handle:\"security\") {\n _structured_scopes3TsuIg:structured_scopes(first:$first_0) {\n edges {\n node {\n _id,\n asset_identifier,\n reports {\n total_count,\n count_by_severity\n },\n id\n },\n cursor\n },\n pageInfo {\n hasNextPage,\n hasPreviousPage\n }\n },\n _reports42Gng6:reports(without_scope:true) {\n total_count,\n count_by_severity\n },\n team_profile{_id,disclosed_reports_in_last_year_count,latest_report_created_at,latest_serious_report_created_at,reports_received_in_three_months_count}, _id, id\n },\n id\n}","variables":{"first_0":100}}
This is one long line of text, but it is really a JSON envelope (a common format for sending structured data between programs) with two parts: a query string and a variables object. The \n sequences are newline characters, written out so the whole thing fits on one line. Here is what the important parts mean, in order:
- The operation is named
Dashboard_report_severity_breakdown_tableand takes a single variable,first_0, set to100. A variable is a placeholder whose value is supplied separately, so the same query can be reused with different settings. Herefirst_0controls how many structured scopes are returned, and the value 100 asks for up to one hundred of them. - The
teamfield is aliased to_team4g1Zqsand targets the team withhandle:"security". The handle is the short name that identifies a program on HackerOne, so this asks for the team whose handle issecurity. - The
structured_scopesfield is aliased to_structured_scopes3TsuIgand returns each scope'sasset_identifier(which asset it is) and its report counts (total_countandcount_by_severity). Theedges,node,cursorandpageInfoparts are the standard way GraphQL returns a list in pages:edgesholds the items,nodeis one item,cursoris a bookmark for where you are in the list, andpageInfosays whether there are more pages before or after. - The
reportsfield is aliased to_reports42Gng6withwithout_scope:true, returning the team's overall report counts by severity. Thewithout_scopesetting means reports that are not tied to any particular scope are included. - The added field is
team_profile, selecting_id,disclosed_reports_in_last_year_count,latest_report_created_at,latest_serious_report_created_atandreports_received_in_three_months_count. These are the new pieces of data: an internal identifier, a count of reports disclosed in the last year, the time of the latest report, the time of the latest serious report, and a count of reports received in three months.
The report does not include the response body. What it states is that the query returned the latest serious report and the reports received in three months, and that this information is not in the current UI.
Why it worked
The report does not describe the server-side implementation. What can be said from the report is that the team_profile field was added to the schema and was reachable through the dashboard query, and that it exposed fields (latest_serious_report_created_at, reports_received_in_three_months_count, disclosed_reports_in_last_year_count, latest_report_created_at) that were not surfaced in the UI. Whether the field was intended to be restricted to certain viewers, or whether the UI simply had not been updated to show it, is not stated.
In plain terms: the website's page shows one set of numbers, but the API behind the page offers a larger set. If the API does not check who is asking, then anyone who can send the same request the page sends can also ask for the extra boxes on the form.
Impact
The researcher describes the impact as information disclosure of the number of reports received in a three-month window and other information not present in the current UI. The report does not quantify how many teams or users were affected, nor whether the data was otherwise public. The researcher explicitly asked whether the information was public and offered to close the report if it was, noting a low reputation, but considered it worth reporting.
Fix
What should be done, based on the finding, is to enforce the same visibility rules on team_profile that apply to the UI, so that fields such as latest_serious_report_created_at and reports_received_in_three_months_count are only returned to callers authorised to see them, or to remove the field from the public schema if it is not meant to be exposed.
Variants to test
- On other GraphQL APIs, look for recently added fields in the schema (through introspection or changelogs) and try selecting them in existing dashboard queries. Introspection is the API's own way of describing itself, so it can reveal fields you would not otherwise know about. A positive result is a field that returns data not visible in the UI.
- Try aliasing sensitive fields and mixing them into a legitimate query, as done here with
_team4g1Zqsand_structured_scopes3TsuIg. A positive result is the aliased field returning data alongside the expected results. - Try fields that aggregate or summarise data, such as counts and timestamps (
*_count,latest_*_at). A positive result is a count or timestamp that reveals activity not otherwise disclosed. - Try the same query against different team handles. A positive result is the same fields returning data for teams whose profiles you should not be able to inspect.
Hunting notes
This kind of bug tends to hide in GraphQL schemas where new fields are added for internal dashboards and then exposed through the same public query. Signals during recon include schema changes, new field names in responses, and dashboard queries that already return aggregate counts. The researcher pointed to specific fields (latest_serious_report_created_at, reports_received_in_three_months_count) that were not in the UI and asked directly whether the data was public.
Glossary
- API: a way for one piece of software to ask another for data or to perform an action, like a waiter carrying orders between a customer and a kitchen.
- Alias: a second name given to a field in a GraphQL query so it can be referred to by that name.
- Asset: the thing being tested, such as a website or application, listed in a program's scope.
- Authorisation check: a check on the server that decides whether the person making a request is allowed to see or do what they asked for.
- Bug bounty: a scheme where organisations reward people for finding and reporting security problems in their systems.
- CVSS: a standard scoring system that turns the characteristics of a security issue into a number, with 3.8 falling in the low range.
- Dashboard: a page that gathers statistics and summaries about a program in one place.
- Field: one named piece of data in a GraphQL query, such as
total_count. - GraphQL: a style of API where the caller sends a query describing exactly which fields it wants back.
- Handle: the short name that identifies a program on HackerOne, used here as
security. - Information disclosure: a vulnerability where data that should not be visible to someone can be read by them, without anything being changed.
- Introspection: a GraphQL feature that lets a caller ask the API to describe its own schema, including which fields exist.
- JSON: a common text format for structured data, built from names and values in braces and brackets.
- Operation name: the label given to a GraphQL query, here
Dashboard_report_severity_breakdown_table, so it can be identified. - Program: an organisation running a bug bounty scheme on the platform.
- Query: the request sent to a GraphQL API describing which data is wanted.
- Reputation: a score on a bug bounty platform based on a researcher's submitted reports and how they were received.
- Schema: the full list of fields and types an API offers, like a menu of what can be ordered.
- Scope: the list of assets a program has agreed may be tested.
- Severity: how serious a security report is judged to be, usually from low to critical.
- Severity breakdown: a count of reports in each severity band.
- Structured scope: HackerOne's term for an in-scope asset together with the reports filed against it.
- Timestamp: a recorded date and time for when something happened.
- UI: user interface, the part of a website or app that a person sees and interacts with.
- Variable: a placeholder in a GraphQL query whose value is supplied separately, so the same query can be reused with different settings.