Read-only team members can read all properties of webhooks
A read-only team member could query a GraphQL endpoint and retrieve all properties of webhooks, including their secret values and URLs, which they should not be able to see. This allowed them to identify where webhooks exist and obtain the secrets.
- Triaged in under an hour
- Fixed in 47 days
- Disclosed after 47 days
Description:
A team member can view all properties of webhooks despite not needing them.
Steps To Reproduce
- Have an admin of a program setup webhooks
- As a team member (read-only)log in
- Run the following graphql query:
{
query {
team(handle: "security") {
name
webhooks {
nodes {
id
secret
url
}
}
}
}
}
- See that you get data back
Impact
Read only users will be able to identify where webhooks exist and secrets
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 GraphQL query for team webhooks did not check the user's role and returned sensitive fields such as the secret to any team member.
Impact
Read-only users could identify where webhooks exist and obtain their secrets.
What the attacker needed
A read-only team member account; webhooks configured by an admin
How it was found
- An admin sets up webhooks for a program.
- A read-only team member logs in.
- The team member runs a GraphQL query asking for the team's webhooks, including their id, secret, and url.
- The query returns data, showing the webhook details.
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.
In many apps, users have different permission levels, like read-only or admin. A read-only user is supposed to only look at things, not change them, and should not see sensitive data. Here, a read-only user could still ask the system for webhook details and get back secrets that should be hidden.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.