Skip to content
Access control Write-up Advanced

From dropbox(updater) to NT AUTHORITY\SYSTEM

The Dropbox updater service ran as SYSTEM and wrote log files into a folder where ordinary users could create files, then applied security settings to those files. By predicting the log file name and planting hardlinks, an attacker could make the SYSTEM process overwrite an arbitrary file, leading to privilege escalation to SYSTEM.

decoder.cloud

Published on decoder.cloud

Hardlinks again! Yes, there are plenty of opportunities to raise your privileges due to incorrect permissions settings when combined with hardlinks in many softwares (MS included) 😉

The author, on decoder.cloud

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 a privileged service wrote log files into a user-writable directory and then set security on them, allowing hardlink redirection to arbitrary files.

Impact

An attacker could overwrite any file the SYSTEM account fully controls and escalate to SYSTEM privileges, and by overwriting the crash handler could obtain a SYSTEM shell at the next logon.

What the attacker needed

Dropbox installed in the standard way with admin rights; Local low-privileged Windows user account; Ability to write to the updater Log folder

The fix

Dropbox said it would fix the issue; meanwhile users should remove the create-files and create-folders permissions for Users on the Log folder.

How it was found

  1. Confirm no DropboxUpdate.exe process is running.
  2. Place an opportunistic exclusive lock on the updater's goopdate.dll so the process hangs at startup.
  3. Find the PID of the hung updater process.
  4. Create many hardlinks following the log naming convention, starting about ten seconds ahead, all pointing at the target file.
  5. Wait until the chosen start time, then release the lock so the log write lands on the target.
  6. For the full chain, overwrite DropboxCrashHandler.exe, then log off and log on to trigger it as SYSTEM.

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 hardlink is a second name for the same file on disk, so writing through either name changes the same data. The Dropbox updater ran with the highest Windows privileges and wrote logs into a folder that normal users could also write to, so a user could point the log name at a sensitive system file. When the privileged service wrote its log, it actually overwrote that sensitive file, letting the user take control of the machine.

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.

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.