Skip to content
Access control Advisory Advanced CVE-2020-0935

OneDrive for Windows Elevation of Privilege Vulnerability (CVE-2020-0935)

The OneDrive for Windows updater improperly handles symbolic links when running with elevated privileges, allowing an attacker who is already logged on to overwrite or delete a targeted file with elevated status. The update corrects where the updater performs file writes while running with elevation.

zhiniang peng Follow

Originally disclosed on Microsoft

Description

An elevation of privilege vulnerability exists when the OneDrive for Windows Desktop application improperly handles symbolic links. An attacker who successfully exploited this vulnerability could overwrite a targeted file with an elevated status. 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 and delete a targeted file with an elevated status. The update addresses this vulnerability by correcting where the OneDrive updater performs file writes while running with elevation.

FAQ

Do I need to take any action to protect myself from this vulnerability? Most customers have been protected from this vulnerability because OneDrive has its own updater that periodically checks and updates the OneDrive binary. If your network is air-gapped, you can update the binary from the link in the Security Updates table. In which situations does this vulnerability apply? This vulnerability only applies when OneDrive is installed per machine and does not apply to the default per user install. Please see Per Machine Installation for more information.

FAQ

Which releases contain the updates to protect against the vulnerability? The update is in the following releases: 19.232.1124.0010 for Production ring 19.222.1110.0011 for Deferred ring

Microsoft Office

Microsoft Office

Issuing CNA

Microsoft

The original report as published on the Microsoft Security Response Center, by Zhiniang Peng ( @edwardzpeng ) of Qihoo 360 Core security and Fangming Gu (@afang5472). 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 OneDrive updater follows symbolic links when writing files while running with elevated privileges, allowing an attacker to redirect those writes to arbitrary locations.

Impact

An attacker who successfully exploited this vulnerability could overwrite or delete a targeted file with elevated status, but only if they can first log on to the system and OneDrive is installed per machine.

What the attacker needed

Attacker must log on to the system; OneDrive installed per machine (not per user)

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 the OneDrive updater on Windows handles symbolic links (shortcuts that point to other files) while it runs with higher permissions. Someone who can already log on to the computer could run a program that abuses this to overwrite or delete a file they normally could not touch, gaining higher privileges.

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 zhiniang peng

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.