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

Microsoft Windows User Profile Service Arbitrary File Deletion Vulnerability

The User Profile service mishandles local registry hive files, allowing a low-privileged attacker to create a junction and cause arbitrary file deletion with SYSTEM privileges. An attacker could delete files in the context of SYSTEM.

Abdelhamid Naceri Follow

Originally disclosed on Zero Day Initiative

Medium 5.5 View original

This vulnerability allows local attackers to delete arbitrary files on affected installations of Microsoft Windows. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.

Abdelhamid Naceri, on the Zero Day Initiative

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the User Profile service follows a junction when handling local registry hive files, allowing file deletion outside the intended directory.

Impact

An attacker could delete arbitrary files with SYSTEM privileges, but must first have low-privileged code execution on the target.

What the attacker needed

Low-privileged code execution on target

The fix

Microsoft issued an update to correct this vulnerability.

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 local privilege escalation bug in Windows. A normal user can trick a system service into deleting files it shouldn't, because the service follows a link (junction) to a different folder. The attacker needs to already run code on the machine, but can then delete important files as the system account.

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 Abdelhamid Naceri

View all

47 more disclosed reports, best first.

More from Zero Day Initiative

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.