Skip to content
Access control Write-up Advanced

First Method: “Domain Group Policy” abuse

A low-privileged domain user could bypass the fix for CVE-2020-1317 by using an oplock or a junction to make the Group Policy service, running as SYSTEM, grant full control over a subdirectory of the Group Policy cache. The attacker could then place a symbolic link to a SYSTEM-protected file and achieve privilege escalation to SYSTEM.

decoder.cloud

Published on decoder.cloud

As promised in my previous post, I’m going to show you the second method I found in order to circumvent CVE-2020-1317.

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 the Group Policy service performs SetSecurity operations on cache subdirectories while running as SYSTEM, and the first operation grants full control to the current user, allowing a user to create and lock down a directory before a second, more restrictive operation occurs.

Impact

A low-privileged domain user could elevate their privileges to SYSTEM on a domain-joined Windows machine.

What the attacker needed

Domain user account; access to a domain-joined Windows machine; ability to create a subdirectory under Datastore\0

How it was found

  1. Create a domain Group Policy preference that produces a file in the Group Policy cache.
  2. Log in as a domain user and ensure the Group Policy cache is saved under the Datastore directory.
  3. Place an exclusive oplock on the preference file.
  4. Run gpupdate /force to trigger the oplock and hang policy processing.
  5. Create a directory under Datastore\0, then disable inheritance and remove permissions for SYSTEM and Administrators.
  6. Release the oplock, then place a symlink via RPC Control to a SYSTEM-protected file and start an XPS Print job to gain a SYSTEM shell.

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.

Group Policy is a Windows feature that lets administrators push settings to computers. The service that applies these settings runs with the highest privileges (SYSTEM). The report shows that a normal user could trick this service into giving them control of a folder, and then use that folder to replace a system file and take over 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.