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

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

The OneDrive for Windows updater mishandled symbolic links when writing files 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

High 7.1 View original

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 release contains the updates to protect against the vulnerability? 20.170.0824.0001 is the minimum version. The version and all new versions are protected from this vulnerability. Does 20.201.1005.0006 include the protection for CVE-2020-16853? Yes, this version does protect against this vulnerability.

Microsoft OneDrive

Microsoft OneDrive

Microsoft

Microsoft

The original report as published on the Microsoft Security Response Center, by Zhiniang Peng (@edwardzpeng) 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 followed symbolic links when writing files while running with elevated privileges, allowing a low-privileged user to redirect those writes to arbitrary locations.

Impact

An attacker who is already logged on could overwrite or delete a targeted file with elevated status; the vulnerability only applies to per-machine installations, not the default per-user install.

What the attacker needed

Attacker must log on to the system; OneDrive installed per machine

The fix

The vulnerability was fixed by correcting where the OneDrive updater performs file writes while running with elevation, and most customers are protected automatically by the updater.

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 shortcuts called symbolic links. Because the updater runs with high privileges, an attacker who can already log on to the machine could trick it into writing to or deleting a file they should not be able to touch. The fix changes where the updater is allowed to write files when it runs with those high 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

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