Skip to content
Race condition Disclosed report Advanced CVE-2023-6690

RC Between GitHub's Repo Transfer REST API and updateTeamsRepository GraphQL Mutation Results in Covert and Persistent Admin Access Retention

A race condition let an existing admin keep permissions on a transferred repository by making a GraphQL mutation during the transfer.

inspector-ambitious Follow

Originally disclosed on HackerOne

  • Triaged in 5 days
  • Fixed in 2 months
  • Paid in 2 months
  • Disclosed after 3 months

Summary by the program

A race condition in GitHub Enterprise Server allowed an existing admin to maintain permissions on transferred repositories by making a GraphQL mutation to alter repository permissions during the transfer. This vulnerability affected GitHub Enterprise Server version 3.8.0 and above and was fixed in version 3.8.12, 3.9.7, 3.10.4, and 3.11.1.

The original report as published on HackerOne, by inspector-ambitious. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 a lack of atomicity between the repository transfer process and the team permission update mutation, allowing a permission change to be applied after the transfer completed.

What the attacker needed

Admin access to the repository; GitHub Enterprise Server 3.8.0 or later

The fix

The vulnerability was fixed in GitHub Enterprise Server versions 3.8.12, 3.9.7, 3.10.4, and 3.11.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 and the system gets confused about the order. Here, transferring a repository and changing its team permissions at the same moment let an admin keep access they should have lost. The attacker needed to already be an admin on the repository.

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.

More by inspector-ambitious

View all

15 more disclosed reports, best first.

More from GitHub

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.