Exploiting Feedback Hub in Windows 10
The Feedback Hub's diagtrack service creates temporary folders with restrictive permissions but then writes files as SYSTEM without impersonation, allowing a local user to exploit a race condition with directory junctions to redirect privileged file writes. An attacker could overwrite arbitrary files with attacker-controlled content, leading to elevation of privilege.
decoder.cloud
Published on decoder.cloud
Feedback Hub is a feature in Windows 10 which allows users to report problems or suggestions to Microsoft. It relies ond he “diagtrack” service, running as SYSTEM, or better known as “Connected User Experiences and Telemetry”
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 diagtrack service creates a temporary directory as the user but then writes files as SYSTEM without impersonation, and the user retains ownership of the directory, allowing a junction to be planted during a race window.
What the attacker needed
Standard Windows 10 user; Diagnostics & Feedback set to Full; Feedback Hub app launched once; Race condition must be won
How it was found
- Run the Feedback Hub app and exit to create initial directories.
- Set up a file watcher on the DiagOutputDir to capture the GUID directory name.
- Set up a file watcher on the temp directory to detect creation of diagtracktempdir.
- Immediately change permissions on the new temp directory to grant full access.
- Create a junction point from the expected subdirectory path to a target directory.
- Submit feedback with a malicious DLL attachment, which gets copied to the target directory (e.g., System32).
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.
A Windows service running with high privileges creates temporary folders and files when you use the Feedback Hub. Because of a timing flaw, a normal user can quickly replace a folder with a special link (a junction) that points to a protected location, tricking the service into writing a file there. This lets the user place a malicious file in a system folder and gain higher privileges.
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.