Skip to content
Access control Disclosed report Advanced CVE-2022-23741

Github app Privilege Escalation to Administrator/Owner of the Organization

An incorrect authorization flaw in GitHub Enterprise Server let a scoped user-to-server token gain full admin or owner rights. An attacker with admin access could install a malicious GitHub App to escalate privileges.

vaib25vicky Follow

Originally disclosed on HackerOne

  • Triaged in 1 hour
  • 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 scoped user-to-server token to escalate to full admin/owner privileges. An attacker would require an account with admin access to install a malicious GitHub App. This vulnerability was fixed in versions 3.3.17, 3.4.12, 3.5.9, and 3.6.5. This vulnerability was reported via the GitHub Bug Bounty program.

The original report as published on HackerOne, by vaib25vicky. 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 server did not properly check that a user-to-server token's scopes matched the privileges requested when a GitHub App was installed.

Impact

An attacker with admin access could escalate to full owner-level control of the organisation, but only after installing a malicious GitHub App.

What the attacker needed

Admin access to install a GitHub App; GitHub Enterprise Server affected version

The fix

It was fixed in versions 3.3.17, 3.4.12, 3.5.9, and 3.6.5.

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 token is like a limited key that an app uses to act for a user. Here, a key meant to have limited permissions could be used to get the highest level of control over an organisation. The attacker first needed admin rights to install a malicious app, then the flaw let them go further.

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 vaib25vicky

View all

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