Dropbox Escalation of Privileges to SYSTEM on Windows
The Dropbox updater process ran with SYSTEM privileges and wrote log files into a directory that low-privileged users could modify. An attacker could redirect that write to an arbitrary folder and replace the log file with malicious content to escalate to SYSTEM.
Published on dreamlab.net
In January of this year we found an EoP (Escalation of Privileges) or LPE (Local Privilege Escalation) in the Dropbox Windows application. The bug was already patched in the last Dropbox update.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the privileged updater process wrote log files into a directory writable by low-privileged users and then set weak permissions on those files, allowing redirection via a junction.
Impact
An attacker with low privileges on a compromised machine could escalate to SYSTEM, the highest administrator level.
What the attacker needed
Low-privileged access to the Windows machine; Dropbox client installed
The fix
The vulnerability was fixed in a Dropbox update released on 31 July 2020.
How it was found
- Monitor the Dropbox updater process and observe it writing log files to a world-writable directory.
- Create an NTFS junction from the log directory to a target system directory.
- Trigger the updater so it writes its log file into the target directory.
- Replace the log file with malicious content to escalate privileges.
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 write-up has not been written yet. The Original tab links to the source.
A program that runs with high privileges was writing files into a folder that ordinary users could change. By using a special kind of folder link, an attacker could make the program write its files somewhere else, like a system folder. Then the attacker could replace those files with their own to gain full control of the computer.
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.