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

Visual Studio Elevation of Privilege Vulnerability (CVE-2019-1077)

The Visual Studio updater service mishandled file permissions, allowing an attacker to overwrite arbitrary files with XML content in the local system security context. An attacker who logged on could run a crafted application to exploit this and gain elevated privileges.

b0yd Follow

Originally disclosed on Microsoft

Description

An elevation of privilege vulnerability exists when the Visual Studio updater service improperly handles file permissions. An attacker who successfully exploited this vulnerability overwrite arbitrary files with XML content in the security context of the local system. To exploit this vulnerability, an attacker would first have to log on to the system. An attacker could then run a specially crafted application that could exploit the vulnerability. The update addresses the vulnerability by correcting how the Visual Studio updater handles permissions.

Visual Studio

Visual Studio

Microsoft

Microsoft

The original report as published on the Microsoft Security Response Center, by Ryan Wincey ( @rwincey ) of Securifera. 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 the updater service created or modified files with permissions that let a normal user influence which files were written, so it could be made to overwrite arbitrary files as the local system.

Impact

An attacker could overwrite arbitrary files with XML content in the local system security context, which could lead to elevation of privilege.

What the attacker needed

Attacker must log on to the system

The fix

The vulnerability was fixed by correcting how the Visual Studio updater handles permissions.

How it was found

  1. Log on to the system.
  2. Run a specially crafted application that exploits the updater's file permission handling.

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.

This is a flaw in how a background update service for Visual Studio set file permissions. Because the service runs with high privileges, a logged-in attacker could trick it into replacing any file on the computer with their own XML content, which can lead to taking control of the machine.

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