Skip to content
Access control Disclosed report Intermediate CVE-2024-5816

GitHub Apps can access suspended installations via scoped user-to-server tokens

A suspended GitHub App could still access public repositories using a scoped user-to-server token. An attacker with such a token could retain access to repository data despite the app being suspended.

ahacker1 Follow

Originally disclosed on HackerOne

  • Triaged in 14 days
  • Fixed in 3 months
  • Paid in 3 months
  • Disclosed after 3 months

Summary by the program

An Incorrect Authorization vulnerability was identified in GitHub Enterprise Server that allowed a suspended GitHub App to retain access to the repository via a scoped user access token. This was only exploitable in public repositories while private repositories were not impacted. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.14 and was fixed in versions 3.9.17, 3.10.14, 3.11.12, 3.12.6, 3.13.1.

CVE-2024-5816

The original report as published on HackerOne, by ahacker1. 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 the authorization check for suspended GitHub Apps did not properly validate scoped user-to-server tokens, allowing access to continue.

Impact

A suspended GitHub App could retain access to public repositories via a scoped user access token; private repositories were not impacted.

What the attacker needed

GitHub Enterprise Server before 3.14; a suspended GitHub App; a scoped user-to-server token; public repository

The fix

The vulnerability was fixed in versions 3.9.17, 3.10.14, 3.11.12, 3.12.6, and 3.13.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.

When an app is suspended, it should lose access to your data. Here, a special token (a digital key) still worked, so the app could keep reading public repositories even after being suspended.

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.

More by ahacker1

View all

17 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.

Broken access control

The lesson behind this report.

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.