Private information exposed through GraphQL search endpoints aggregates
The GraphQL search and opportunities_search endpoints returned aggregation results that were not filtered for privacy, so buckets could include data belonging to private programs. An attacker could use this to expose private team handles and other information they should not have access to.
- Fixed in 27 hours
- Disclosed after 27 hours
Summary:
Private information can be exposed using aggs argument on the search and opportunities_search endpoints on the GraphQL root node.
Description:
When using the aggs argument and return field on the search and opportunities_search endpoints, the data returned in the aggs can potentially contain private information. It can for example be used to expose handles of private programs, and other data that can be aggregated by.
Steps To Reproduce
Specific example to expose private team handles, but other things can be exposed in the same way using this or other indexes on the search endpoint.
- Open and run any GraphQL client, or modify an existing GraphQL request
- Run a query with an aggregate for a field which could contain private information. The provided query can be tweaked to get more specific results.
# Write your query or mutation here
query {
me {
id
}
opportunities_search(query:{}, aggs:{results:{terms: {field:"handle"}}}) {
aggs
}
}
- The output will show aggregations by the
handlewhich are not filtered on whether they are private or not.
{
"data": {
"me": null,
"opportunities_search": {
"aggs": {
"results": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 37,
"buckets": [
{
"key": "private",
"doc_count": 1
},
{
"key": "private",
"doc_count": 1
},
{
"key": "private",
"doc_count": 1
},
{
"key": "private",
"doc_count": 1
},
{
"key": "private",
"doc_count": 1
},
{
"key": "private",
"doc_count": 1
},
{
"key": "private",
"doc_count": 1
},
{
"key": "private",
"doc_count": 1
},
{
"key": "private",
"doc_count": 1
},
{
"key": "private",
"doc_count": 1
}
]
}
}
}
}
}
Impact
Impact depends on what information is stored in which index, and which fields can be aggregated by. In the current situation at least allows to expose asset information, handles and other information of teams you don't have access to.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the aggregation query was run against the underlying index without applying the same privacy or access filters used for normal result retrieval.
Impact
Depending on the index and field, private team handles, asset information and other data of teams the user cannot access could be exposed.
What the attacker needed
Access to the GraphQL endpoint
How it was found
- Open a GraphQL client or modify an existing GraphQL request.
- Send a query using the aggs argument on opportunities_search to aggregate by a field such as handle.
- Read the returned buckets, which include values from private records.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
GraphQL is a way for apps to ask a server for exactly the data they want. This app also let callers ask for grouped counts (aggregations) of a field, and those counts were built from all records, including ones marked private. So someone could learn names or details of private teams they were never meant to see.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.