OneDrive for Windows Elevation of Privilege Vulnerability (CVE-2020-16851)
The OneDrive for Windows updater mishandled symbolic links when writing files with elevated privileges, allowing a logged-on attacker to overwrite or delete a targeted file with elevated status. The update corrects where the updater performs file writes while running with elevation.
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 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
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 performing file writes with elevated privileges, allowing an attacker to redirect those writes to arbitrary files.
Impact
An attacker who logs on to the system could run a crafted application to 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 logs on to the system; OneDrive installed per machine
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.
A symbolic link is a shortcut that points to another file. The OneDrive updater ran with high privileges and followed these shortcuts when writing files, so an attacker could trick it into writing to a file they should not be able to change. The fix makes the updater write files only in safe locations.
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.