Skip to content
Access control Advisory Intermediate CVE-2019-1211

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.

Rich Mirch Follow

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

The original report as published on the Microsoft Security Response Center, by Rich Mirch. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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

  1. Get an authenticated account on the target system.
  2. Modify Git configuration files on the system before a full installation of the application.
  3. 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.

More by Rich Mirch

View all

1 more disclosed report, best first.

More from Microsoft

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.