Git for Visual Studio Elevation of Privilege Vulnerability (CVE-2019-1211)
Git for Visual Studio parsed configuration files in a way that let a local authenticated attacker run code as another user. The attacker had to edit Git configuration files before a full installation and then persuade another user on the same system to run certain Git commands.
Originally disclosed on Microsoft
Description
An elevation of privilege vulnerability exists in Git for Visual Studio when it improperly parses configuration files. An attacker who successfully exploited the vulnerability could execute code in the context of another local user. To exploit the vulnerability, an authenticated attacker would need to modify Git configuration files on a system prior to a full installation of the application. The attacker would then need to convince another user on the system to execute specific Git commands. The update addresses the issue by changing the permissions required to edit configuration files.
Visual Studio
Visual Studio
Microsoft
Microsoft
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, Git for Visual Studio did not properly restrict who could edit configuration files, so a low-privileged user could plant settings that were later trusted and executed by another user.
What the attacker needed
Authenticated local account; edit Git config before full install; victim runs Git commands
The fix
The update was fixed by changing the permissions required to edit configuration files.
How it was found
- Get an authenticated account on the target system.
- Modify Git configuration files on the system before a full installation of the application.
- Convince another user on the system to execute specific Git commands.
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.
Git is a tool for tracking changes in code, and it reads settings from configuration files. This bug meant that someone who could change those settings on a shared computer could make another person's Git commands run the attacker's code. The attacker needed a valid account on the machine and had to trick the other user into running Git.
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.