Skip to content
Info disclosure Advisory Advanced CVE-2021-24084

Microsoft Windows Device Management Enrollment Service Directory Junction Information Disclosure Vulnerability

The Device Management Enrollment Service on Windows could be tricked into following a directory junction to read arbitrary files. A local attacker with low-privileged code execution could use this to disclose file contents with SYSTEM privileges.

Abdelhamid Naceri Follow

Originally disclosed on Zero Day Initiative

Medium 5.5 View original

This vulnerability allows local attackers to disclose sensitive information 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 (halov), 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 service follows directory junctions without properly validating the target path, allowing access to arbitrary files.

Impact

An attacker could disclose information in the context of SYSTEM, but only after first obtaining 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.

A directory junction is like a shortcut that points to another folder. The vulnerable Windows service could be made to follow such a shortcut and read files it should not, letting a local attacker see sensitive data with high system rights.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Abdelhamid Naceri

View all

26 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.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.