Missing Access Control in MigrationFile allows attacker to upload files to any Migration
A missing authorization check in the repository migration upload endpoint allowed an authenticated attacker to supply another user's migration identifier and upload content to that migration. This could let the attacker overwrite or replace a victim's migration archive, so victims might download attacker-controlled repository data during restores or automated imports.
- Triaged in 3 days
- Fixed in 53 days
- Paid in 53 days
- Disclosed after 53 days
Summary by the program
A Missing Authorization vulnerability was identified in GitHub Enterprise Server that allowed an attacker to upload unauthorized content to another user’s repository migration export due to a missing authorization check in the repository migration upload endpoint. By supplying the migration identifier, an attacker could overwrite or replace a victim’s migration archive, potentially causing victims to download attacker-controlled repository data during migration restores or automated imports. An attacker would require authentication to the victim's GitHub Enterprise Server instance
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 migration upload endpoint trusted the supplied migration identifier without verifying that the authenticated user was authorised to modify that migration.
Impact
An authenticated attacker could overwrite or replace a victim's migration archive, potentially causing victims to download attacker-controlled repository data during migration restores or automated imports.
What the attacker needed
Authenticated account on the GHES instance; knowledge of a victim's migration identifier
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.
When you export a repository from GitHub Enterprise Server, the export is stored as a file called a migration archive. The server did not check that the person uploading to a migration actually owned that migration, so any logged-in user who knew or guessed the migration's identifier could add files to someone else's export. The victim might then restore or import that tampered archive and end up with the attacker's files.
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.