Git Reference Ambiguity in GitHub - Commit Smuggling, Account Takeover, and Remote Code Execution
GitHub Enterprise Server displayed an incorrect diff when a Pull Request was re-opened, allowing an attacker with write access to smuggle commits.
Originally disclosed on HackerOne
- Triaged in 4 days
- Fixed in 5 months
- Paid in 5 months
- Disclosed after 6 months
Summary by the program
An incorrect comparison vulnerability was identified in GitHub Enterprise Server that allowed commit smuggling by displaying an incorrect diff in a re-opened Pull Request. To do so, an attacker would need write access to the repository. This vulnerability affected all versions of GitHub Enterprise Server and was fixed in versions 3.6.17, 3.7.15, 3.8.8, 3.9.3, and 3.10.1. This vulnerability was reported via the GitHub Bug Bounty program.
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 an incorrect comparison of Git references when a Pull Request is re-opened, causing the diff to omit or misrepresent commits.
What the attacker needed
Write access to the repository
The fix
It was fixed in versions 3.6.17, 3.7.15, 3.8.8, 3.9.3, and 3.10.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 Pull Request is a way to propose changes to code. The server showed the wrong changes when the request was reopened, so hidden commits could slip through. An attacker with write access could smuggle commits.
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.