Skip to content
Info disclosure Disclosed report Beginner

Private program disclosure via `vpn_suspended` GraphQL query

The GraphQL query for a team exposed the vpn_suspended field, which should have been private. An attacker could use this to identify external programs that also have a private program, because only those programs have VPN enabled and thus a vpn_suspended value.

unknown_person Follow

Originally disclosed on HackerOne

Bounty$2,500 Informational View original
  • Fixed in 5 days
  • Paid in 5 days
  • Disclosed after 5 days

Summary: vpn_suspended of Team object got exposed

Description: An attacker can get vpn_suspended value of any program (including external program which also have private program eg. █████ and external program which does not have private program)

What an attacker can do with this ? If an external program (which also has private program) has enabled VPN , then value of vpn_suspended become false, so with this information, an attacker can find external programs which have private program, because there is no VPN feature in sandbox mode (all other external programs will be in sandbox mode)

Steps To Reproduce

1.) run the below graphql query

POST /graphql? HTTP/1.1

{"query":"query Team_mini_profile($handle_0:String!,$size_1:ProfilePictureSizes!) {team(handle:$handle_0) {id,...F0}} fragment F0 on Team {id,name,about,_profile_picturePkPpF:profile_picture(size:$size_1),offers_swag,offers_bounties,vpn_enabled,vpn_suspended,base_bounty}","variables":{"handle_0":"█████","size_1":"small"}}

You will get response of

{"data":{"team":{"id":"███","name":"████████","about":"███████","_profile_picturePkPpF":"█████","offers_swag":null,"offers_bounties":null,"vpn_enabled":null,"vpn_suspended":true,"base_bounty":null}}}
  1. ) the vpn_suspended status of ███████ program is true

Impact

an attacker can find external programs which have private program

The original report as published on HackerOne, by unknown_person. 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 /graphql that backs the site's own front end. Among the objects it serves is Team, which represents a program (a customer organisation on the platform). The Team type carries a set of fields describing the program's profile and its bounty configuration, including offers_swag, offers_bounties, base_bounty, and the VPN-related fields vpn_enabled and vpn_suspended.

Sandbox mode has no VPN feature at all, which is the basis of the finding. Sandbox mode, by contrast, has no VPN feature at all. That difference is the whole basis of the finding: the state of a VPN flag leaks whether a program is still in sandbox or has moved on to a real, possibly private, program.

Setup

The report describes no special setup. The only precondition is the ability to send a GraphQL request to the site's /graphql endpoint with a program handle. The researcher used a program handle and the profile picture size small.

Finding it

The researcher noticed that the vpn_suspended field of the Team object was exposed through the GraphQL API. The concern is not that the field exists, but that it is readable for any program, including external programs that also run a private program, and external programs that do not.

The reasoning about why the value matters is as follows. If an external program that also has a private program has enabled VPN, then vpn_suspended becomes false. Because sandbox mode has no VPN feature, every other external program sits in sandbox mode. So a false value distinguishes the programs that have a private program from those that do not.

Exploitation

Step 1: query the Team object

The researcher sends a GraphQL query to the endpoint, requesting a fragment of the Team type that includes vpn_enabled and vpn_suspended alongside ordinary profile fields.

HTTP
POST /graphql? HTTP/1.1
Text
{"query":"query Team_mini_profile($handle_0:String!,$size_1:ProfilePictureSizes!) {team(handle:$handle_0) {id,...F0}} fragment F0 on Team {id,name,about,_profile_picturePkPpF:profile_picture(size:$size_1),offers_swag,offers_bounties,vpn_enabled,vpn_suspended,base_bounty}","variables":{"handle_0":"█████","size_1":"small"}}

The query is named Team_mini_profile and takes two variables: handle_0, a non-null String, and size_1, a non-null ProfilePictureSizes. It selects team(handle:$handle_0) and spreads a fragment F0 on Team. The fragment asks for id, name, about, an aliased profile picture (_profile_picturePkPpF:profile_picture(size:$size_1)), offers_swag, offers_bounties, vpn_enabled, vpn_suspended and base_bounty. The variables set the handle to the target program and the picture size to small.

The response returns the requested fields for the program:

Text
{"data":{"team":{"id":"███","name":"████████","about":"███████","_profile_picturePkPpF":"█████","offers_swag":null,"offers_bounties":null,"vpn_enabled":null,"vpn_suspended":true,"base_bounty":null}}}

In this response vpn_suspended is true for the queried program. The other fields are returned as well, several of them null.

Step 2: read the VPN state

The researcher notes that the vpn_suspended status of the queried program is true. The value is delivered to a caller who supplied only a handle and a picture size.

Root cause

The Team GraphQL type exposes vpn_suspended to any caller who can query a team by handle. The report does not describe the resolver or authorisation logic behind the field, so the exact mistake is not stated. What the report does establish is the consequence: the VPN state of a program is readable for any program, including external programs that also run a private program.

The report does not describe any rate limiting, field-level authorisation or schema-level restriction that was bypassed.

Impact

An attacker can find external programs that have a private program. The mechanism is the vpn_suspended value: for an external program that also has a private program and has enabled VPN, the value becomes false, while other external programs remain in sandbox mode, which has no VPN feature. The report frames the impact in exactly these terms and does not claim access to the private program's contents, reports or data.

Fix

Variants to test

  1. Query other Team fields that describe internal configuration, such as bounty settings and feature flags, and check whether they return values for programs the caller does not own. A positive result is a non-null value for a program the caller has no relationship with.
  2. Enumerate handles and compare vpn_suspended across them. A positive result is a mix of true and false values that correlates with program type rather than with anything the caller can see.
  3. Try the same fragment against the schema's other object types that reference a team, to see whether the VPN fields are reachable through a second path. A positive result is the same field returning for a program the caller cannot otherwise inspect.

Hunting notes

This kind of bug hides in GraphQL schemas where a single object type serves both public profile data and internal configuration. The signal during recon is a Team-style type whose fields include feature flags, billing or bounty settings, or operational state such as VPN status. If a field returns a meaningful value for an object the caller does not own, the schema is leaking state.

The researcher tied the leaked value to a distinction between programs: for an external program with a private program, false means VPN is enabled. That chain, rather than the raw field exposure, is what makes the report actionable.

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 pay for the good ones. Each program has a profile page on the site, and that page is filled in by data the site fetches from its own servers.

That data comes from something called an API. An API is the counter where a website's front end asks the back end for information: the page says "give me the profile for this program", and the server answers with a bundle of data. HackerOne's API here is a GraphQL API, which is a particular style of API where the person asking writes a description of exactly which pieces of information they want, and the server sends back only those pieces.

One of the things the API can describe is a Team, which is HackerOne's internal name for a program. A Team has many pieces of information attached to it, called fields: its name, its description, whether it offers swag (company merchandise as a reward), whether it offers cash bounties, and so on. Two of those fields are about VPN: vpn_enabled and vpn_suspended.

VPN stands for Virtual Private Network. In this context it is a feature HackerOne offers to programs, and the important detail is that sandbox mode has no VPN feature at all. Sandbox mode is a kind of trial or practice mode for a program, and it has no VPN feature at all. So the state of the VPN flag tells you something about the program that you would not otherwise see: whether it is still a sandbox program or a real one.

The researcher found that the vpn_suspended field could be read for any program, just by asking for it by the program's handle. A handle is the short unique name a program uses on the site, a bit like a username. The researcher could read this value for external programs (programs run by outside companies rather than by HackerOne itself), including external programs that also run a private program, and external programs that do not.

Why does that matter? If an external program that also has a private program has enabled VPN, then vpn_suspended comes back as false. Every other external program is in sandbox mode, and sandbox mode has no VPN feature. So a false value is a signal that separates the programs with a private program from the ones without. The bug is not that the field exists; it is that the field is readable by anyone, and that its value reveals something about the program's setup.

The setup

The report describes no special setup. The only things needed were a program handle and a profile picture size. An endpoint is simply a web address on a server that accepts a particular kind of request; /graphql is the address where this API lives.

The only things the researcher needed were a program handle (hidden in the report) and a value for the profile picture size, which the researcher set to small.

Finding it

The researcher noticed that the vpn_suspended field of the Team object was exposed through the GraphQL API. Exposed here means reachable: anyone who can send the query can ask for that field and get an answer back.

The reasoning about why the value matters runs like this. If an external program that also has a private program has enabled VPN, then vpn_suspended becomes false. Because sandbox mode has no VPN feature, every other external program sits in sandbox mode. So a false value distinguishes the programs that have a private program from those that do not.

Exploitation

Step 1: query the Team object

The researcher sends a GraphQL query to the endpoint, asking for a set of fields on the Team type that includes vpn_enabled and vpn_suspended alongside ordinary profile fields.

The request starts with the HTTP line that says where it is going:

HTTP
POST /graphql? HTTP/1.1

This line says: send a POST request (a request that carries data to the server, as opposed to a GET request that just asks for a page) to the path /graphql, using version 1.1 of the HTTP protocol, which is the language browsers and servers use to talk to each other. The ? at the end is an empty query string; it does not change what the request does.

The body of the request carries the query itself:

Text
{"query":"query Team_mini_profile($handle_0:String!,$size_1:ProfilePictureSizes!) {team(handle:$handle_0) {id,...F0}} fragment F0 on Team {id,name,about,_profile_picturePkPpF:profile_picture(size:$size_1),offers_swag,offers_bounties,vpn_enabled,vpn_suspended,base_bounty}","variables":{"handle_0":"█████","size_1":"small"}}

Line by line, in plain words:

  • The outer braces hold a JSON object. JSON is a text format for structured data, a way of writing down labelled values so a computer can read them reliably. It is the same format the server uses to answer.
  • "query" is the label for the query text. Everything after it, up to the closing quote, is the GraphQL query.
  • query Team_mini_profile(...) gives the query a name, Team_mini_profile, and declares two variables it will use. Naming a query is optional in GraphQL but makes it easier to refer to.
  • $handle_0:String! declares a variable called handle_0 whose type is String (text), and the exclamation mark means it is required and cannot be left empty.
  • $size_1:ProfilePictureSizes! declares a second required variable called size_1, whose type is a fixed list of allowed picture sizes defined by the API.
  • {team(handle:$handle_0) {id,...F0}} is the actual request: fetch the team whose handle is the value of handle_0, and return its id plus whatever the fragment F0 asks for. The ...F0 syntax means "also include the fields defined in the fragment named F0".
  • fragment F0 on Team { ... } defines that fragment. A fragment is a reusable list of fields; here it is attached to the Team type, so the fields inside it must be fields that a Team has.
  • Inside the fragment, id, name and about are the program's identifier, display name and description text.
  • _profile_picturePkPpF:profile_picture(size:$size_1) asks for the profile picture at the size given in size_1. The part before the colon is an alias: it renames the field in the response to _profile_picturePkPpF, so the answer uses that label instead of profile_picture.
  • offers_swag and offers_bounties say whether the program offers merchandise and cash rewards.
  • vpn_enabled and vpn_suspended are the two VPN-related fields, and they are the point of the whole exercise.
  • base_bounty is the program's base bounty amount.
  • After the query text, "variables" holds the values for the two declared variables: handle_0 is set to the target program's handle (hidden in the report), and size_1 is set to small.

The server answers with the requested fields for that program:

Text
{"data":{"team":{"id":"███","name":"████████","about":"███████","_profile_picturePkPpF":"█████","offers_swag":null,"offers_bounties":null,"vpn_enabled":null,"vpn_suspended":true,"base_bounty":null}}}

Reading the answer:

  • "data" is the standard top-level label GraphQL uses for a successful result. If something had gone wrong, the answer would carry an errors section instead.
  • "team" holds the object for the program that was asked for.
  • id, name, about and _profile_picturePkPpF come back with values, which are hidden in the report.
  • offers_swag, offers_bounties, vpn_enabled and base_bounty come back as null. In JSON, null means "no value": the field exists but has nothing set for this program.
  • vpn_suspended comes back as true.

Step 2: read the VPN state

The researcher notes that the vpn_suspended status of the queried program is true. The value was delivered to a caller who supplied only a handle and a picture size.

Root cause

The Team GraphQL type exposes vpn_suspended to any caller who can query a team by handle. The report does not describe the resolver or authorisation logic behind the field, so the exact mistake is not stated. A resolver is the piece of server code that runs when a particular field is requested and works out what value to return; an authorisation check is the step where the server decides whether this particular caller is allowed to see this particular thing.

What the report does establish is the consequence: the VPN state of a program is readable for any program, including external programs that also run a private program.

The report does not describe any rate limiting, field-level authorisation or schema-level restriction that was bypassed. Rate limiting is a cap on how many requests someone can make in a period; field-level authorisation is a check applied to one specific field rather than to the whole query; a schema-level restriction is a rule in the API's definition of what exists that would keep the field out of reach entirely.

Impact

An attacker can find external programs that have a private program. The mechanism is the vpn_suspended value: for an external program that also has a private program and has enabled VPN, the value becomes false, while other external programs remain in sandbox mode, which has no VPN feature. The report frames the impact in exactly these terms and does not claim access to the private program's contents, reports or data.

Fix

Gating means putting a check in front of the field so that it only answers for callers who are allowed to see it.

Variants to test

  1. Query other Team fields that describe internal configuration, such as bounty settings and feature flags, and check whether they return values for programs the caller does not own. A positive result is a non-null value for a program the caller has no relationship with.
  2. Enumerate handles and compare vpn_suspended across them. Enumerating means trying one handle after another. A positive result is a mix of true and false values that correlates with program type rather than with anything the caller can see.
  3. Try the same fragment against the schema's other object types that reference a team, to see whether the VPN fields are reachable through a second path. A positive result is the same field returning for a program the caller cannot otherwise inspect.

Hunting notes

This kind of bug hides in GraphQL schemas where a single object type serves both public profile data and internal configuration. The signal during recon is a Team-style type whose fields include feature flags, billing or bounty settings, or operational state such as VPN status. Recon means the early stage of looking around a target to see what it is made of. If a field returns a meaningful value for an object the caller does not own, the schema is leaking state.

The researcher tied the leaked value to a distinction between programs: for an external program with a private program, false means VPN is enabled. That chain, rather than the raw field exposure, is what makes the report actionable.

Glossary

  • API: the interface a website's front end uses to ask its back end for data, like a counter where you place an order and get information back.
  • GraphQL: a style of API where the caller writes a description of exactly which fields they want, and the server returns only those.
  • Endpoint: a specific web address on a server that accepts a particular kind of request, here /graphql.
  • POST request: an HTTP request that carries data to the server, as opposed to a GET request that just asks for a page.
  • HTTP: the protocol browsers and servers use to exchange requests and responses.
  • JSON: a text format for structured data made of labelled values, used here for both the request body and the response.
  • Query: in GraphQL, the text that describes which data you want back.
  • Variable: a named placeholder in a GraphQL query whose value is supplied separately, so the same query can be reused with different inputs.
  • String: a piece of text, as opposed to a number or a true/false value.
  • Type: in GraphQL, the definition of a kind of object and which fields it has, such as Team.
  • Field: one named piece of information attached to an object, such as name or vpn_suspended.
  • Fragment: a reusable list of fields in GraphQL that can be included in a query by name.
  • Alias: a different name given to a field in a query so the response labels it that way.
  • null: in JSON, the absence of a value; the field exists but has nothing set.
  • Handle: the short unique name a program uses on the site, similar to a username.
  • Team: HackerOne's internal name for a program, the object that holds a program's profile and settings.
  • Program: a company or organisation on HackerOne that invites researchers to look for bugs in its software.
  • External program: a program run by an outside company rather than by HackerOne itself.
  • Private program: a program that is not publicly listed and is only visible to invited researchers.
  • Sandbox mode: a trial or practice mode for a program, which has no VPN feature.
  • VPN: Virtual Private Network, a feature HackerOne offers to programs; a program with VPN enabled is not in sandbox mode.
  • vpn_enabled: the Team field saying whether VPN is turned on for a program.
  • vpn_suspended: the Team field whose value reveals whether a program's VPN is suspended; for an external program with a private program and VPN enabled it becomes false.
  • Exposed: reachable by anyone who can send the request, with no check in the way.
  • Resolver: the server code that runs when a particular field is requested and works out what value to return.
  • Authorisation check: the step where the server decides whether this particular caller is allowed to see this particular thing.
  • Field-level authorisation: an authorisation check applied to one specific field rather than to the whole query.
  • Schema: the definition of what types and fields an API offers.
  • Schema-level restriction: a rule in that definition that keeps a field out of reach entirely.
  • Rate limiting: a cap on how many requests someone can make in a period.
  • Recon: the early stage of looking around a target to see what it is made of.
  • Enumerate: to try one value after another, such as one handle after another, to collect results.
  • Feature flag: a setting that turns a particular feature on or off for a program.
  • Bounty: a cash reward paid for a valid bug report.
  • Swag: company merchandise offered as a reward.
  • Information disclosure: a class of bug where information that should not be visible to someone is visible to them.

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.