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

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

The OneDrive for Windows updater improperly handles symbolic links when writing files with elevated privileges. An attacker who is already logged on could run a crafted application to overwrite or delete a targeted file with elevated status.

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 follows symbolic links when performing file writes with elevated privileges, allowing an attacker to redirect those writes to arbitrary files.

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 (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 writes files while running with higher permissions. A symbolic link is like a shortcut that points to another file; if the updater follows such a link without checking, it can be tricked into writing to or deleting a file it should not touch. An attacker who can already log on to the machine could use this to damage or replace important files.

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.