Skip to content
Access control Write-up Advanced

CVE-2020-16939: Windows Group Policy DACL Overwrite Privilege Escalation

The Windows Group Policy client writes permissive DACLs to files during policy updates, and a low-privileged user can redirect these writes via a directory junction to a chosen folder. By interrupting the DACL write with an oplock, the user can retain full control over the target folder, enabling privilege escalation.

zerodayinitiative.com

Published on zerodayinitiative.com

This vulnerability abuses a SetSecurityFile operation performed during Group Policy update that is done in the context of NT AUTHORITY\SYSTEM. This operation is performed on all files within a certain folder.

The author, on zerodayinitiative.com

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

The Group Policy service performs DACL writes without impersonation and follows directory junctions created by low-privileged users, and an interrupted DACL write leaves overly permissive permissions.

Impact

A low-privileged user could gain full control over arbitrary folders and files, leading to privilege escalation.

What the attacker needed

Low-privileged user account; ability to create junctions; ability to set oplocks

The fix

Microsoft released a patch to correct the vulnerability.

How it was found

  1. Create a directory junction within the sysvol folder pointing to the target folder.
  2. Create a second folder with a random file and set an oplock on that file.
  3. Trigger a Group Policy update (e.g., gpupdate) to start the DACL write.
  4. When the oplock is triggered, delete the junction point and release the oplock.
  5. The DACL write is interrupted, leaving full control permissions on the target folder.

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.

When Windows updates group policies, it changes permissions on some files. A normal user can trick this process into changing permissions on a folder they shouldn't control, and by interrupting the process at the right moment, they gain full access to that folder. This lets them modify system files and escalate their privileges.

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.