RC Between GitHub's Repo Update REST API and updateTeamsRepository GraphQL Mutation Results in Covert and Persistent Admin Access Retention
A race condition in GitHub Enterprise Server allowed an admin to keep permissions on a detached repository by sending a GraphQL mutation while the repository was detached.
Originally disclosed on HackerOne
- Triaged in 22 days
- Fixed in 3 months
- Paid in 3 months
- Disclosed after 7 months
Summary by the program
A race condition in GitHub Enterprise Server allowed an existing admin to maintain permissions on a detached repository by making a GraphQL mutation to alter repository permissions while the repository is detached. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.13 and was fixed in versions 3.9.13, 3.10.10, 3.11.8 and 3.12.1. CVE-2024-2440
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
What the attacker needed
Admin access to the repository; ability to send GraphQL mutation
The fix
The vulnerability was fixed in versions 3.9.13, 3.10.10, 3.11.8 and 3.12.1.
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.
A race condition is when two actions happen at almost the same time. Here, an admin could change permissions at the moment a repository was being detached, and they kept permissions on it.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.