Inadequate redaction exposes sensitive information via the “ShareReportViaEmail" GraphQL endpoint
The redaction feature on HackerOne failed to fully hide sensitive report fields such as JIRA references, allowing them to be retrieved through a GraphQL mutation. An attacker could use this to access information that was meant to be concealed.
Tarek Bouali Follow with 0v3rw4tch
Originally disclosed on HackerOne
- Triaged in 13 days
- Fixed in 30 days
- Paid in 22 days
- Disclosed after 4 months
Summary by the program
Summary
The vulnerability involves the insufficient redaction of sensitive information within the HackerOne platform. Specifically, the redaction feature, designed to conceal certain data such as JIRA references, fails to completely obscure this information from being accessed through GraphQL requests.
Steps to Reproduce
- Execute the following GraphQL request:
POST /graphql HTTP/2
Host: hackerone.com
{
"operationName":"ShareReportViaEmail",
"variables":{
"product_area":"reports",
"product_feature":"inbox",
"reportId":"gid://hackerone/Report/2139856",
"message":"can we disclose",
"emails":["[email protected]"]
},
"query":"mutation ShareReportViaEmail($reportId: ID!,$message: String!,$emails: [String!]!) {\n shareReportViaEmail(\n input: {report_id: $reportId,message:$message ,emails:$emails}\n ) {\n was_successful\n report{impact title vulnerability_information} errors {\n edges {\n node {\n id\n error_code\n field\n message\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n}\n"
}
- Observe the response, which includes the redacted
impactfield.
Impact
The impact of this vulnerability is significant as it undermines the confidentiality measures put in place by the redaction feature. An attacker or unauthorized user could potentially exploit this vulnerability to gain access to sensitive information which might include critical data.
Summary by the researcher
███████
Context
HackerOne is a bug bounty platform. Reports submitted to it contain fields such as impact, title and vulnerability_information, and some of that content can be marked as redacted so that it is not shown to everyone who can reach the report. The redaction feature is meant to conceal data such as JIRA references.
The report looks at the ShareReportViaEmail GraphQL mutation on hackerone.com. That mutation shares a report by email: it takes a report ID, a message and a list of email addresses, and it returns a result object. The result object selected in the request includes the report's impact, title and vulnerability_information fields.
The weakness is that the redaction applied to those fields is not complete when the data is fetched through this GraphQL request. The redacted impact field still comes back in the response.
Setup
The report does not describe any special account, role or tooling. The only precondition visible in the request is a report identifier, gid://hackerone/Report/2139856, and an email address supplied in the emails list. The request is sent to hackerone.com over HTTP/2.
Finding it
The researcher noticed that the redaction feature, which is designed to conceal certain data such as JIRA references, fails to completely obscure that information from being accessed through GraphQL requests. The redaction feature fails to completely obscure data such as JIRA references from being accessed through GraphQL requests.
Exploitation
Step 1: Send the GraphQL mutation
The researcher executes the following request:
POST /graphql HTTP/2
Host: hackerone.com
{
"operationName":"ShareReportViaEmail",
"variables":{
"product_area":"reports",
"product_feature":"inbox",
"reportId":"gid://hackerone/Report/2139856",
"message":"can we disclose",
"emails":["[redacted]"]
},
"query":"mutation ShareReportViaEmail($reportId: ID!,$message: String!,$emails: [String!]!) {\n shareReportViaEmail(\n input: {report_id: $reportId,message:$message ,emails:$emails}\n ) {\n was_successful\n report{impact title vulnerability_information} errors {\n edges {\n node {\n id\n error_code\n field\n message\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n}\n"
}
The important parts are:
operationNameisShareReportViaEmail, matching the mutation defined inquery.reportIdis the GraphQL global ID of the target report,gid://hackerone/Report/2139856.messageandemailsare the ordinary inputs of the share action; the email address is the researcher's own.- The selection set on the returned
reportobject asks forimpact,titleandvulnerability_information, which are the fields subject to redaction. - The mutation also selects
was_successfuland theerrorsconnection, so the caller can see whether the share succeeded and what validation errors, if any, were returned.
Step 2: Read the response
The researcher observes the response, which includes the redacted impact field. The report does not reproduce the response body, so the exact shape of the returned data is not shown here. What matters is that the field that should have been concealed is present in the mutation's response.
Root cause
The redaction feature fails to completely obscure the data when it is accessed through this GraphQL request. The ShareReportViaEmail mutation returns the report object with impact, title and vulnerability_information selectable, and the redaction that hides those values elsewhere does not fully obscure them on this path. Because GraphQL lets the caller choose the selection set, a client can ask for exactly the fields that the redaction feature is supposed to protect.
The report does not describe the server-side implementation, so the precise reason the redaction is bypassed on this mutation is not stated.
Impact
The impact is significant because it undermines the confidentiality measures put in place by the redaction feature. An attacker or unauthorised user could potentially exploit the vulnerability to gain access to sensitive information, which might include critical data. The report hedges this: the exposure is described as potential, and the specific data that could be reached is not enumerated beyond the redacted fields named in the request.
Fix
Variants to test
- Other mutations and queries that return a report object: select
impact,titleandvulnerability_informationand check whether redacted values come back. A positive result is a field that is redacted in the normal view but populated in the GraphQL response. - The same
ShareReportViaEmailmutation on other report IDs, including reports the caller can reach only through sharing or inbox features. A positive result is the same leak on a report the caller is not otherwise entitled to read in full. - Nested selections on the returned
reportobject, if the schema exposes further fields. A positive result is any additional redacted field that resolves with its real value. - Error paths: the mutation selects an
errorsconnection witherror_code,fieldandmessage. A positive result would be an error response that echoes back the redacted content.
Hunting notes
This kind of bug tends to hide wherever a product has a redaction or visibility feature and a separate API surface that returns the same objects. GraphQL is a good place to look, because the caller controls the selection set and a resolver that forgets the redaction logic will happily return the field. During recon, look for mutations that return a full object (share, export, preview, duplicate, email) rather than a minimal acknowledgement, and compare what those mutations return with what the normal interface shows.
The researcher demonstrated the issue with a single request against a specific report ID; the response includes the redacted impact field.
What happened, in plain words
HackerOne is a website where security researchers report bugs they find in companies' software. Each report is a page with fields such as a title, an impact statement and the detailed vulnerability information. Some of that content can be marked as redacted, meaning it is hidden from people who are allowed to see the report but not that particular part. The redaction feature is meant to conceal data such as JIRA references, which are ticket numbers from an issue-tracking tool.
The researcher found that this hiding is not complete. HackerOne's website talks to its servers through a GraphQL API. An API is the way one piece of software asks another for data, like a waiter taking your order to the kitchen and bringing back the dish. GraphQL is a particular style of API where the client writes down exactly which fields it wants back, rather than receiving a fixed bundle. The researcher used a GraphQL operation called ShareReportViaEmail, which is the action behind sharing a report by email, and asked it to return the report's impact, title and vulnerability_information fields. The response included the redacted impact field.
So data that the redaction feature is meant to conceal could be reached through this sharing request. That is the whole finding: a hiding feature that works in one place but not on another path to the same data.
Context
HackerOne reports contain fields such as impact, title and vulnerability_information. Some of that content can be marked as redacted so that it is not shown to everyone who can reach the report. The redaction feature is designed to conceal data such as JIRA references.
The report looks at the ShareReportViaEmail GraphQL mutation on hackerone.com. A mutation is a GraphQL operation that changes something or triggers an action, as opposed to a query, which only reads. This mutation shares a report by email: it takes a report ID, a message and a list of email addresses, and it returns a result object. The result object selected in the request includes the report's impact, title and vulnerability_information fields.
The weakness is that the redaction applied to those fields is not complete when the data is fetched through this GraphQL request. The redacted impact field still comes back in the response.
Setup
The report does not describe any special account, role or tooling. The only precondition visible in the request is a report identifier, gid://hackerone/Report/2139856, and an email address supplied in the emails list. The request is sent to hackerone.com over HTTP/2, which is simply a version of the protocol browsers and servers use to exchange web traffic.
Finding it
The researcher noticed that the redaction feature, which is designed to conceal certain data such as JIRA references, fails to completely obscure that information from being accessed through GraphQL requests. The redaction feature fails to completely obscure data such as JIRA references from being accessed through GraphQL requests.
Exploitation
Step 1: Send the GraphQL mutation
The researcher executes the following request:
POST /graphql HTTP/2
Host: hackerone.com
{
"operationName":"ShareReportViaEmail",
"variables":{
"product_area":"reports",
"product_feature":"inbox",
"reportId":"gid://hackerone/Report/2139856",
"message":"can we disclose",
"emails":["[redacted]"]
},
"query":"mutation ShareReportViaEmail($reportId: ID!,$message: String!,$emails: [String!]!) {\n shareReportViaEmail(\n input: {report_id: $reportId,message:$message ,emails:$emails}\n ) {\n was_successful\n report{impact title vulnerability_information} errors {\n edges {\n node {\n id\n error_code\n field\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/2is the first line of the request.POSTmeans "I am sending data to the server",/graphqlis the address of the GraphQL endpoint, andHTTP/2is the protocol version. Think of it as choosing the delivery method and the street address before writing the letter.Host: hackerone.comtells the server which website the request is for. One server can host many sites, so this line says which one.- The blank line separates the request headers from the body, which is the JSON that follows.
"operationName":"ShareReportViaEmail"names the operation being run. It matches the mutation defined inquery."variables":{ ... }is a block of values passed into the operation, so the query text can stay generic and the specifics are filled in here."product_area":"reports"and"product_feature":"inbox"are context values telling the server which part of the product the action belongs to."reportId":"gid://hackerone/Report/2139856"is the GraphQL global ID of the target report. A global ID is a unique label for one object, like a barcode on a parcel."message":"can we disclose"is the text of the email being sent."emails":["[redacted]"]is the list of recipients. The email address is the researcher's own."query":"..."is the GraphQL document itself, written as one long string with\nstanding for line breaks. Inside it,mutation ShareReportViaEmail($reportId: ID!,$message: String!,$emails: [String!]!)declares the operation and its three inputs, with types such asID!andString!; the exclamation mark means the value is required.shareReportViaEmail(input: {report_id: $reportId,message:$message ,emails:$emails})calls the mutation, passing the variables into its input object.was_successfulasks whether the share worked.report{impact title vulnerability_information}is the important part: it asks the server to return the report'simpact,titleandvulnerability_informationfields. These are exactly the fields subject to redaction.- The
errors { edges { node { id error_code field message __typename } __typename } __typename }block asks for any validation errors, with their code, the field they concern and a message.edgesandnodeare GraphQL's way of describing a list of items, like pages in a book and the text on each page.__typenameis a built-in field that returns the name of the object type.
The selection set on the returned report object asks for impact, title and vulnerability_information, which are the fields subject to redaction. The mutation also selects was_successful and the errors connection, so the caller can see whether the share succeeded and what validation errors, if any, were returned.
Step 2: Read the response
The researcher observes the response, which includes the redacted impact field. The report does not reproduce the response body, so the exact shape of the returned data is not shown here. What matters is that the field that should have been concealed is present in the mutation's response.
Root cause
The redaction feature fails to completely obscure the data when it is accessed through this GraphQL request. The ShareReportViaEmail mutation returns the report object with impact, title and vulnerability_information selectable, and the redaction that hides those values elsewhere does not fully obscure them on this path. Because GraphQL lets the caller choose the selection set, a client can ask for exactly the fields that the redaction feature is supposed to protect.
The report does not describe the server-side implementation, so the precise reason the redaction is bypassed on this mutation is not stated.
Impact
The impact is significant because it undermines the confidentiality measures put in place by the redaction feature. An attacker or unauthorised user could potentially exploit the vulnerability to gain access to sensitive information, which might include critical data. The report hedges this: the exposure is described as potential, and the specific data that could be reached is not enumerated beyond the redacted fields named in the request.
Fix
Variants to test
- Other mutations and queries that return a report object: select
impact,titleandvulnerability_informationand check whether redacted values come back. A positive result is a field that is redacted in the normal view but populated in the GraphQL response. - The same
ShareReportViaEmailmutation on other report IDs, including reports the caller can reach only through sharing or inbox features. A positive result is the same leak on a report the caller is not otherwise entitled to read in full. - Nested selections on the returned
reportobject, if the schema exposes further fields. A positive result is any additional redacted field that resolves with its real value. - Error paths: the mutation selects an
errorsconnection witherror_code,fieldandmessage. A positive result would be an error response that echoes back the redacted content.
Hunting notes
This kind of bug tends to hide wherever a product has a redaction or visibility feature and a separate API surface that returns the same objects. GraphQL is a good place to look, because the caller controls the selection set and a resolver that forgets the redaction logic will happily return the field. A resolver is the small piece of server code that produces the value for one field. During recon, look for mutations that return a full object (share, export, preview, duplicate, email) rather than a minimal acknowledgement, and compare what those mutations return with what the normal interface shows.
The researcher demonstrated the issue with a single request against a specific report ID; the response includes the redacted impact field.
Glossary
- API: the way one piece of software asks another for data or actions, like a waiter carrying orders between you and the kitchen.
- GraphQL: an API style where the client writes down exactly which fields it wants back.
- Mutation: a GraphQL operation that triggers an action or changes something, rather than only reading.
- Query: a GraphQL operation that only reads data.
- Endpoint: the address a request is sent to, here
/graphql. - HTTP/2: a version of the protocol browsers and servers use to exchange web traffic.
- Header: a line of extra information sent with a request, such as
Host. - Host: the header that says which website the request is for.
- JSON: a text format for structured data, using curly braces, quotes and colons.
- Operation name: the label that identifies which GraphQL operation is being run.
- Variable: a named value passed into a GraphQL operation so the query text can stay generic.
- Global ID: a unique label for one object, such as
gid://hackerone/Report/2139856. - Selection set: the list of fields a GraphQL client asks for in the response.
- Field: one named piece of data on an object, such as
impactortitle. - Resolver: the server-side code that produces the value for one GraphQL field.
- Redaction: hiding part of a document so that readers cannot see it.
- JIRA reference: a ticket number from an issue-tracking tool called JIRA.
- Confidentiality: keeping information available only to those allowed to see it.
- Recon: the exploration phase of security testing, where you map out what a product exposes.
- Schema: the description of which objects, fields and operations a GraphQL API offers.