Skip to content
Race condition Write-up Advanced

【威脅情資】RoguePlanet 分析:Windows 提權漏洞

A local privilege escalation flaw in Microsoft Defender lets a normal user gain SYSTEM rights by exploiting a TOCTOU race condition with oplocks and a junction point. The attacker redirects Defender's file access to a malicious wermgr.exe and triggers the QueueReporting scheduled task to run it as SYSTEM.

medium.com

Published on medium.com

雖然今年才過了一半,但若要盤點 2026 年資安界的重大事件,資安研究員 Chaotic Eclipse(Nightmare-Eclipse) 的名字一定榜上有名,從四月開始因為對於微軟通報漏洞的程序不滿,而轉而直接� �開 BlueHammer、Redsun、YellowKey 等等針對 Windows 的漏洞以及 POC,而微軟則是針對漏洞開始� �佈了 CVE 編號,但是卻沒有提及 Nightmare Eclipse ,在前一陣子 Nightmare Eclipse 的 Github 被禁止了,但他並沒有停止� �步,而是使用自行架設的 Git 儲存庫中分享了 POC 程式,繼續� �布 windows 的漏洞,這次測試的洞漏稱為…

segalee, on medium.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

Likely a TOCTOU race condition where Defender checks a user-writable path but later uses it after the attacker swaps it for a junction to a privileged location.

What the attacker needed

Local user account; Windows 11 or updated Windows 10; ability to create files in %TEMP%

How it was found

  1. Create a temporary directory and set an oplock on it.
  2. Write the EICAR test string into the directory to trigger a Defender scan.
  3. When Defender tries to access the directory, the oplock pauses its I/O.
  4. During the pause, convert the directory into an NTFS junction pointing to a privileged path or attacker-mounted virtual disk.
  5. Write the attacker's executable content into the file object obtained through the race.
  6. Trigger the QueueReporting scheduled task via COM to run the fake wermgr.exe as SYSTEM and get a shell through a named pipe.

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.

This is a race condition bug in Windows Defender. A normal user can trick Defender into following a shortcut (junction) to a fake system file, and then a scheduled task runs that fake file with the highest system privileges. The attacker wins by timing the switch between when Defender checks a folder and when it uses it.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.