← All permissions
Enterprise permission·enterprise_organization_installations:write
Enterprise organization installations: Write
Tier 0 · Critical
Why Tier 0
Installs any GitHub App into any organization the enterprise owns, on all of its repositories if asked, and uninstalls them. The App gets the permissions it asks for, so installing a public App the attacker registered, asking for organization administration and members, hands its private key control of that organization.
Management plane permissions start at Tier 1. This one is raised for the reason above.
- Target
- Enterprise
- Plane
- ManagementApps: Which repositories and organizations a GitHub App is installed on.
- Granted by
- GitHub App
- Available on
- Enterprise Cloud, EMU, Server
What it unlocks
5 REST endpoints need this permission, from GitHub's docs data. Some also need another permission, and a few work with only one kind of token.
- POST /enterprises/{enterprise}/apps/organizations/{org}/installations
- DELETE /enterprises/{enterprise}/apps/organizations/{org}/installations/{installation_id}
- PATCH /enterprises/{enterprise}/apps/organizations/{org}/installations/{installation_id}/repositoriesalso needs Enterprise organization installation repositories: Write
- PATCH /enterprises/{enterprise}/apps/organizations/{org}/installations/{installation_id}/repositories/addalso needs Enterprise organization installation repositories: Write
- PATCH /enterprises/{enterprise}/apps/organizations/{org}/installations/{installation_id}/repositories/removealso needs Enterprise organization installation repositories: Write
Roles that include it
- T0Enterprise ownerEvery organization in the enterprise
Classic scopes that reach it
No classic scope reaches it. Only fine-grained PATs, Apps or GITHUB_TOKEN can grant it.
Attack paths
Escalations it starts
- Install your own App in an enterprise organization: Those permissions in that organization, held by a private key the attacker owns, which outlives revoking the enterprise App that installed it.
Other levels
GitHub Docs: Enterprise permissions for "Enterprise organization installations"