// For flags

CVE-2021-22866

UI misrepresentation of granted permissions in GitHub Enterprise Server leading to unauthorized access to user resources

Severity Score

8.8
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

-
*SSVC
Descriptions

A UI misrepresentation vulnerability was identified in GitHub Enterprise Server that allowed more permissions to be granted during a GitHub App's user-authorization web flow than was displayed to the user during approval. To exploit this vulnerability, an attacker would need to create a GitHub App on the instance and have a user authorize the application through the web authentication flow. All permissions being granted would properly be shown during the first authorization, but in certain circumstances, if the user revisits the authorization flow after the GitHub App has configured additional user-level permissions, those additional permissions may not be shown, leading to more permissions being granted than the user potentially intended. This vulnerability affected GitHub Enterprise Server 3.0.x prior to 3.0.7 and 2.22.x prior to 2.22.13. It was fixed in versions 3.0.7 and 2.22.13. This vulnerability was reported via the GitHub Bug Bounty program.

Se identificó una vulnerabilidad de tergiversación de la Interfaz de Usuario en el servidor de GitHub Enterprise que permitía que más permisos sean otorgados durante el flujo web de autorización de usuario de una aplicación de GitHub de los que se mostraban al usuario durante la aprobación. Para explotar esta vulnerabilidad, un atacante necesitaría crear una aplicación GitHub en una instancia y tener a un usuario autorizado la aplicación por medio del flujo de autenticación web. Todos los permisos otorgados se mostrarían apropiadamente durante la primera autorización, pero en determinadas circunstancias, si el usuario vuelve a visitar el flujo de autorización después de que la aplicación GitHub haya configurado permisos adicionales a nivel de usuario, es posible que esos permisos adicionales no sean mostrados, conllevando a que sean mostrados más permisos. concedido de lo que el usuario potencialmente pretendía. Esta vulnerabilidad afectó a GitHub Enterprise Server versiones 3.0.x anteriores a 3.0.7 y versiones 2.22.xanteriores a 2.22.13. Fue corregido en versiones 3.0.7 y 2.22.13. Esta vulnerabilidad fue reportada por medio del programa GitHub Bug Bounty

*Credits: Vaibhav Singh (vaib25vicky)
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Attack Vector
Network
Attack Complexity
Medium
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
Partial
* Common Vulnerability Scoring System
SSVC
  • Decision:-
Exploitation
-
Automatable
-
Tech. Impact
-
* Organization's Worst-case Scenario
Timeline
  • 2021-01-06 CVE Reserved
  • 2021-05-14 CVE Published
  • 2024-01-28 EPSS Updated
  • 2024-08-03 CVE Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-451: User Interface (UI) Misrepresentation of Critical Information
  • CWE-1021: Improper Restriction of Rendered UI Layers or Frames
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Github
Search vendor "Github"
Enterprise Server
Search vendor "Github" for product "Enterprise Server"
>= 2.20.0 < 2.22.13
Search vendor "Github" for product "Enterprise Server" and version " >= 2.20.0 < 2.22.13"
-
Affected
Github
Search vendor "Github"
Enterprise Server
Search vendor "Github" for product "Enterprise Server"
>= 3.0.0 < 3.0.7
Search vendor "Github" for product "Enterprise Server" and version " >= 3.0.0 < 3.0.7"
-
Affected