Skip to content
Access control Advisory Intermediate CVE-2020-1416

Visual Studio and Visual Studio Code Elevation of Privilege Vulnerability (CVE-2020-1416)

Visual Studio and Visual Studio Code load software dependencies in a way that allows a local attacker to inject arbitrary code. An attacker who plants malicious content on a computer and waits for another user to launch the application could run code in that user's context, potentially taking control of the system if the user has administrative rights.

Xavier Danest - Decathlon Follow

Originally disclosed on Microsoft

Description

An elevation of privilege vulnerability exists in Visual Studio and Visual Studio Code when they load software dependencies. A local attacker who successfully exploited the vulnerability could inject arbitrary code to run in the context of the current user. If the current user is logged on with administrative user rights, an attacker could take control of the affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. To exploit this vulnerability, a local attacker would need to plant malicious content on an affected computer and wait for another user to launch Visual Studio or Visual Studio Code. The update address the vulnerability by modifying the way Visual Studio and Visual Studio Code load software dependencies.

Visual Studio

Visual Studio

Microsoft

Microsoft

The original report as published on the Microsoft Security Response Center, by Xavier Danest - Decathlon. 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 applications load software dependencies from locations that a local attacker can write to, without properly validating their origin or integrity.

Impact

A local attacker could inject arbitrary code that runs with the current user's privileges, and if that user is an administrator, the attacker could take control of the affected system.

What the attacker needed

Local access to plant malicious content; victim launches Visual Studio or VS Code

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 Visual Studio and Visual Studio Code load supporting files (dependencies) from the computer. A local attacker who can place a malicious file on the machine could get their code to run when another user opens the application, with the same permissions as that user. If that user is an administrator, the attacker could take over the whole system.

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 Xavier Danest - Decathlon

View all

12 more disclosed reports, 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.