Skip to content
Info disclosure Disclosed report Beginner

An attacker can can view any hacker email via /SaveCollaboratorsMutation operation name

The SaveCollaboratorsMutation GraphQL operation returned the email addresses of invited users even before they accepted the invitation. An attacker could disclose the private email of any HackerOne user by inviting them to a dummy report and capturing the response.

0xrayan1996 Follow

Originally disclosed on HackerOne

Bounty$12,500 High 8.3 View original
  • Triaged in 9 days
  • Fixed in 9 days
  • Paid in 9 days
  • Disclosed after 14 days

Summary:

An attacker can view any attacker or normal user email after send invitation via dummy report , disclose their private email.

Description:

Steps To Reproduce

1 - Create a dummy report and send it 2 - Add a hacker that you want to disclose his email , Max is only 2 invites per report 3 - send the invite after sending the invite the hacker will be pending status until accept the report . 4- Go the pen on the right for adding more collaborator and click on the pen and capture traffic , you will see the user email in first request, even that the user not accept the invitation yet

HTTP Request :

POST /graphql HTTP/2
Host: hackerone.com

[sinp]

{"operationName":"SaveCollaboratorsMutation","variables":{"input":{"report_id":2032701,"collaborators":[{"username_or_email":"testmealways","bounty_weight":0.9989999999999999},{"username_or_email":"███████","bounty_weight":0.9989999999999999},{"username_or_email":"███████","bounty_weight":0.9989999999999999}]},"product_area":"collaboration","product_feature":"save_collaborators"},"query":"mutation SaveCollaboratorsMutation($input: SaveCollaboratorsMutationInput!) {\n  saveCollaborators(input: $input) {\n    was_successful\n    errors {\n      edges {\n        node {\n          message\n          __typename\n        }\n        __typename\n      }\n      __typename\n    }\n    __typename\n  }\n}\n"}

Example :

Here is email for todayisnew , Hacker 1 rank in H1 :

████████

Video PoC :

████████

Impact

An attacker can view any user's email registered with Hackerone as hacker .

The original report as published on HackerOne, by 0xrayan1996. 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. 5 min read.

Context

HackerOne's report collaboration feature lets a report owner invite other users to a report as collaborators. The invitation is sent from the report itself, and the invited user stays in a pending state until they accept. The feature is backed by a GraphQL endpoint at /graphql, and the mutation used to save collaborators is SaveCollaboratorsMutation.

The report describes an information disclosure in that mutation: the email address of an invited user is returned in the request traffic before the user has accepted the invitation. The researcher rates it high severity (CVSS 8.3, Information Disclosure) and the program paid a bounty of 12,500 USD. The report was disclosed on 4 July 2023.

Setup

To reproduce, the researcher needs:

  1. An account able to create a report and send it (a dummy report is used).
  2. The ability to invite hackers as collaborators, with a maximum of two invites per report.
  3. A proxy or browser developer tools to capture the traffic sent when adding more collaborators.

No special role beyond a normal report owner is described.

Finding it

The researcher noticed that after sending an invitation to a hacker, that hacker remains in pending status until they accept the report. Despite that pending state, the email address of the invited user appears in the first request captured when using the pen icon on the right to add more collaborators. The user has not accepted the invitation yet, so the email should not be exposed at that point.

Exploitation

Step 1: Create and send a dummy report

Create a dummy report and send it. This gives a report to which collaborators can be invited.

Step 2: Invite the target hacker

Add a hacker whose email you want to disclose. The report notes that the maximum is two invites per report.

Step 3: Leave the invitation pending

Send the invite. After sending, the hacker is in pending status until they accept the report.

Step 4: Capture the request when adding more collaborators

Go to the pen icon on the right for adding more collaborators, click it, and capture the traffic. The user's email appears in the first request, even though the user has not accepted the invitation yet.

The captured request is:

HTTP
POST /graphql HTTP/2
Host: hackerone.com

[sinp]

{"operationName":"SaveCollaboratorsMutation","variables":{"input":{"report_id":2032701,"collaborators":[{"username_or_email":"testmealways","bounty_weight":0.9989999999999999},{"username_or_email":"███████","bounty_weight":0.9989999999999999},{"username_or_email":"███████","bounty_weight":0.9989999999999999}]},"product_area":"collaboration","product_feature":"save_collaborators"},"query":"mutation SaveCollaboratorsMutation($input: SaveCollaboratorsMutationInput!) {\n  saveCollaborators(input: $input) {\n    was_successful\n    errors {\n      edges {\n        node {\n          message\n          __typename\n        }\n        __typename\n      }\n      __typename\n    }\n    __typename\n  }\n}\n"}

The important parts:

  • operationName is SaveCollaboratorsMutation, the mutation that saves the collaborator list for a report.
  • input.report_id identifies the report being edited.
  • input.collaborators is an array of objects, each with a username_or_email and a bounty_weight. The array includes testmealways and two redacted entries.
  • product_area and product_feature are collaboration and save_collaborators.
  • The query field contains the GraphQL mutation document, which requests was_successful and any errors from saveCollaborators.

The researcher states that the user email is visible in this first request, even though the user has not accepted the invitation yet.

Example

The report gives an example: the email for todayisnew, described as Hacker 1 rank in H1, is shown in the report as a redacted value.

A video PoC is referenced in the report but its content is not described in the text.

Root cause

The mutation accepts username_or_email values for collaborators and, according to the researcher, returns the email address of an invited user in the request traffic before that user has accepted the invitation. The report does not describe the server-side implementation, so the precise mistake in the code is not stated.

The report does not describe any existing defence that was bypassed.

Impact

An attacker can view any user's email registered with HackerOne as a hacker. The researcher frames this as disclosing private email addresses of both attackers and normal users after sending an invitation via a dummy report. The exposure happens while the invitation is still pending, so the invited user does not need to accept anything for their email to be revealed.

Fix

A fix would need to stop returning the invited user's email in the SaveCollaboratorsMutation flow, or restrict it to cases where the requester is authorised to see it, rather than exposing it for pending invitations.

Variants to test

  1. Other GraphQL mutations that accept a username or email as input: check whether the response or request handling echoes back the resolved email for accounts that have not interacted with the requester.
  2. Invitation flows in other products: invite a user who has not accepted, then capture the request that adds or edits collaborators and look for email fields in the payload or response.
  3. Batch or array inputs: the collaborators array here carries multiple entries; try adding several users at once and check whether each one's email is resolved.
  4. Pending versus accepted states: compare the traffic for a pending invite and an accepted collaborator to see whether the email is exposed only in the pending case.

A positive result is an email address appearing in a request or response for a user who has not accepted the invitation and whose email the requester should not be able to see.

Hunting notes

This kind of bug tends to hide in GraphQL mutations that take a username or email as input and resolve it to an account, especially in collaboration, invitation and sharing features. During recon, look for operations whose names suggest saving or adding members, and capture the traffic when adding users who are still pending. The signal is an email or other private field appearing in the request or response before the invited user has taken any action.

The report gives an example with the email for todayisnew, described as Hacker 1 rank in H1, shown as a redacted value, and references a video PoC.

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 pay people (called hackers or researchers) to find security problems in their software. On HackerOne itself, when you write a report about a bug, you can invite other people to work on it with you. Those people are called collaborators. You send them an invitation, and they stay in a waiting state (the report calls it pending) until they click to accept.

The researcher found that this invitation feature leaks information. When you add a collaborator, the website sends a message to its own server behind the scenes. That message contains the email address of the person you invited, even though that person has not accepted the invitation yet. So anyone who can create a report and invite people can learn the private email address of any hacker on HackerOne, just by inviting them and looking at the traffic their own browser sends.

The researcher rated this high severity, with a CVSS score of 8.3, in the Information Disclosure category. The program paid a bounty of 12,500 USD, and the report was disclosed on 4 July 2023.

Background you need first

A few ideas come up again and again below, so here they are from zero.

What a report is on HackerOne. A report is a page where a researcher describes a security problem to a company. It has a title, a description, and a conversation. The person who created it is the report owner.

What a collaborator is. A collaborator is another user the report owner invites to join the report, for example to help write it or to see the conversation. The owner sends an invitation, and the invited user has to accept before they are really part of the report. Until then they are pending.

What an API is. An API is the way one piece of software talks to another. A useful comparison: when you order food at 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: your browser (the customer) asks the server (the kitchen) for something, and the server sends back an answer. Websites like HackerOne use APIs constantly, often without you noticing, to load and save data as you click around.

What GraphQL is. GraphQL is a particular style of API. Instead of many different addresses (URLs) for different actions, there is usually one address, here /graphql, and each request says what it wants to do and which fields it wants back. A request that changes something on the server is called a mutation. A request that only reads is called a query. The name of the action being performed is the operation name, and here it is SaveCollaboratorsMutation.

What a request is. Every time your browser needs something from the server, it sends a request. A request has a method (such as POST, meaning "here is some data, please act on it"), an address (the path, here /graphql), a host (the site, here hackerone.com), and usually a body, which is the data being sent. The body here is written in JSON, a text format for structured data that looks like {"key": "value"}.

What capturing traffic means. Your browser and the server exchange these requests and responses over the network. Normally you never see them. Tools called proxies, or the developer tools built into every browser, let you pause and read them. That is what "capture the traffic" means: watch the messages going back and forth.

What information disclosure means. Information disclosure is a vulnerability class where a system reveals data to someone who should not be allowed to see it. Nothing is broken or taken over; the problem is that private information leaks. Here the private information is an email address.

What a CVSS score is. CVSS is a standard way of scoring how serious a vulnerability is, on a scale from 0 to 10. Higher means worse. 8.3 is in the high range.

What a bounty is. A bounty is the money a company pays a researcher for reporting a valid security problem. Here it was 12,500 USD.

What the researcher needed to start

To reproduce the issue, the researcher needed:

  1. An account that can create a report and send it. A dummy report, meaning a throwaway one with no real purpose, is enough.
  2. The ability to invite hackers as collaborators. The report notes a maximum of two invites per report.
  3. A proxy or the browser's developer tools to capture the traffic sent when adding more collaborators.

No special role beyond a normal report owner is described.

How the problem was found

The researcher noticed something about the invitation flow. After you invite a hacker, that hacker stays in pending status until they accept the report. That part is normal and expected. But despite the pending state, the email address of the invited user shows up in the first request captured when you use the pen icon on the right to add more collaborators. The invited user has not accepted anything, so at that moment their email should not be exposed to the report owner.

Reproducing it, step by step

Step 1: Create and send a dummy report

Create a dummy report and send it. Why: you need a report of your own to which collaborators can be invited. A throwaway report keeps the test away from anything real.

Step 2: Invite the target hacker

Add a hacker whose email you want to disclose. The report notes that the maximum is two invites per report. Why: the invited person is the target whose private email you are trying to learn.

Step 3: Leave the invitation pending

Send the invite. After sending, the hacker is in pending status until they accept the report. Why: the whole point is to see whether the email leaks before the person has agreed to anything.

Step 4: Capture the request when adding more collaborators

Go to the pen icon on the right for adding more collaborators, click it, and capture the traffic. The user's email appears in the first request, even though the user has not accepted the invitation yet. Why this step: the email appears in the first request captured when using the pen icon to add more collaborators.

The captured request is:

HTTP
POST /graphql HTTP/2
Host: hackerone.com

[sinp]

{"operationName":"SaveCollaboratorsMutation","variables":{"input":{"report_id":2032701,"collaborators":[{"username_or_email":"testmealways","bounty_weight":0.9989999999999999},{"username_or_email":"███████","bounty_weight":0.9989999999999999},{"username_or_email":"███████","bounty_weight":0.9989999999999999}]},"product_area":"collaboration","product_feature":"save_collaborators"},"query":"mutation SaveCollaboratorsMutation($input: SaveCollaboratorsMutationInput!) {\n  saveCollaborators(input: $input) {\n    was_successful\n    errors {\n      edges {\n        node {\n          message\n          __typename\n        }\n        __typename\n      }\n      __typename\n    }\n    __typename\n  }\n}\n"}

Line by line, in plain words:

  • POST /graphql HTTP/2 says: send a POST request (a request that carries data and asks the server to act on it) to the path /graphql, using version 2 of the HTTP protocol, the language browsers and servers use to talk.
  • Host: hackerone.com says which website the request is for. One server can host many sites, so the host tells it which one you mean.
  • [sinp] is a placeholder in the captured text. It stands in for parts of the request that are not shown, such as headers. Headers are extra labels attached to a request, for example describing what kind of data is inside.
  • The long JSON line is the body, the actual data being sent. It has three top-level keys: operationName, variables and query.
  • "operationName":"SaveCollaboratorsMutation" names the action: the mutation that saves the collaborator list for a report.
  • "variables" holds the values that get plugged into the mutation. Inside it, "input" is the bundle of inputs.
  • "report_id":2032701 identifies which report is being edited. Every report has its own number.
  • "collaborators" is a list (an array) of people. Each entry is an object with two fields: username_or_email, which is the person's username or email address, and bounty_weight, a number that decides what share of any bounty that collaborator receives.
  • The list contains testmealways and two entries shown as ███████. The black blocks are redactions: the researcher hid the real values, which are the email addresses that leaked.
  • "product_area":"collaboration" and "product_feature":"save_collaborators" are labels that say which part of the product this request belongs to. They are for the site's own tracking.
  • "query" contains the GraphQL mutation document itself, written as one long string with \n standing for line breaks. It declares a mutation called SaveCollaboratorsMutation that takes an input of type SaveCollaboratorsMutationInput, then calls saveCollaborators with that input.
  • Inside the call, it asks for was_successful (did it work?) and errors, a list of problems. Each error has a message. The __typename fields are GraphQL's way of saying what type each piece of data is; they are bookkeeping and not interesting here.

The researcher states that the user email is visible in this first request, even though the user has not accepted the invitation yet.

The example given

The report gives an example: the email for todayisnew, described as Hacker 1 rank in H1, is shown in the report as a redacted value. The report shows the email for todayisnew, described as Hacker 1 rank in H1, as a redacted value.

A video proof of concept is referenced in the report, but its content is not described in the text.

Why it happens

The mutation accepts username_or_email values for collaborators. According to the researcher, it returns the email address of an invited user in the request traffic before that user has accepted the invitation. The report does not describe the server-side implementation, so the precise mistake in the code is not stated.

The report does not describe any existing defence that was bypassed.

What the impact is

An attacker can view any user's email registered with HackerOne as a hacker. The researcher frames this as disclosing private email addresses of both attackers and normal users after sending an invitation via a dummy report. The exposure happens while the invitation is still pending, so the invited user does not need to accept anything for their email to be revealed. That is what makes it serious: the victim does nothing at all, and their private email is exposed to a stranger.

How it would be fixed

A fix would need to stop returning the invited user's email in the SaveCollaboratorsMutation flow, or restrict it to cases where the requester is authorised to see it, rather than exposing it for pending invitations.

Other places to look for the same pattern

  1. Other GraphQL mutations that accept a username or email as input: check whether the response or request handling echoes back the resolved email for accounts that have not interacted with the requester.
  2. Invitation flows in other products: invite a user who has not accepted, then capture the request that adds or edits collaborators and look for email fields in the payload or response.
  3. Batch or array inputs: the collaborators array here carries multiple entries; try adding several users at once and check whether each one's email is resolved.
  4. Pending versus accepted states: compare the traffic for a pending invite and an accepted collaborator to see whether the email is exposed only in the pending case.

A positive result is an email address appearing in a request or response for a user who has not accepted the invitation and whose email the requester should not be able to see.

Notes for anyone hunting this kind of bug

This kind of bug tends to hide in GraphQL mutations that take a username or email as input and resolve it to an account, especially in collaboration, invitation and sharing features. During recon (the early stage of exploring a target), look for operations whose names suggest saving or adding members, and capture the traffic when adding users who are still pending. The signal is an email or other private field appearing in the request or response before the invited user has taken any action.

The report gives an example with the email for todayisnew, described as Hacker 1 rank in H1, shown as a redacted value, and references a video proof of concept.

Glossary

  • API: the way one piece of software asks another for data or actions; like a waiter carrying orders between you and the kitchen.
  • Bounty: money a company pays a researcher for reporting a valid security problem.
  • Bounty weight: a number attached to a collaborator that decides their share of any bounty paid on the report.
  • Browser developer tools: the built-in panel in a browser that lets you inspect network traffic, among other things.
  • Capture traffic: record the requests and responses exchanged between your browser and a server.
  • Collaborator: a user invited to work on or view a report.
  • CVSS: a standard 0 to 10 score for how serious a vulnerability is.
  • Dummy report: a throwaway report created only for testing.
  • GraphQL: an API style with a single address where each request states the action and the fields it wants back.
  • Header: extra label attached to a request or response, such as what kind of data it contains.
  • Host: the website a request is addressed to, here hackerone.com.
  • HTTP: the protocol browsers and servers use to exchange requests and responses.
  • Information disclosure: a vulnerability where a system reveals data to someone not allowed to see it.
  • JSON: a text format for structured data, written as key and value pairs.
  • Mutation: in GraphQL, a request that changes something on the server.
  • Operation name: the name a GraphQL request gives to the action it performs, here SaveCollaboratorsMutation.
  • Pending: the state of an invited collaborator who has not yet accepted the invitation.
  • POST: an HTTP method for sending data to the server and asking it to act on it.
  • Proof of concept (PoC): a demonstration that a vulnerability really works.
  • Proxy: a tool that sits between your browser and the server so you can read and modify the traffic.
  • Query: in GraphQL, a request that only reads data.
  • Recon: the early exploration of a target to find things worth testing.
  • Redaction: hiding sensitive values in a published report, here shown as ███████.
  • Request: a message your browser sends to a server asking for something or sending data.
  • Response: the server's reply to a request.
  • Severity: how serious a vulnerability is judged to be, here high.
  • Username or email: the field in the request that identifies a collaborator, either by their username or by their email address.

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.