Privilege Escalation in Microsoft Windows
A Windows Group Policy component copied a log file within a user-controlled folder without checking for symbolic links, allowing a low-privileged user to redirect the copy and write arbitrary files to any location. This could lead to privilege escalation via techniques such as DLL hijacking or overwriting service executables.
Published on herolab.usd.de
The vulnerability affects Group Policy Updates that contain policy settings for the Internet Explorer. Not all policy settings are affected.
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 processing component performed file operations in a user-controlled directory without impersonating the user or verifying that symbolic links were not redirecting the operations.
Impact
A low-privileged user could write arbitrary files to any location on the file system, potentially leading to privilege escalation through techniques like DLL hijacking or overwriting service executables.
What the attacker needed
Low-privileged user account; affected Group Policy setting configured; ability to create symbolic links
The fix
The vulnerability was fixed by the vendor; the advisory recommends that high-privileged services operating in user-controlled file system areas verify that file operations are not redirected and impersonate the user when appropriate.
How it was found
- Ensure that an affected Group Policy setting, such as Internet Explorer User Accelerators, is configured so that the log files brndlog.txt and brndlog.bak are present in the user-controlled folder.
- Delete all items within the user-controlled folder C:\Users\user\AppData\Local\Microsoft\Internet Explorer (stopping any process that holds a lock on CacheStorage if necessary).
- Use a tool like SharpLink to create symbolic links: link brndlog.txt to a file containing the desired content, and link brndlog.bak to the target location where the file should be written.
- Trigger a Group Policy update (e.g., by running gpupdate /force).
- Verify that the target file has been created with the user-controlled content.
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.
Windows Group Policy is a way for administrators to centrally manage settings on many computers. When a computer processes certain Internet Explorer policy settings, it copies a log file inside a folder that any normal user can modify. A user can replace that folder with a symbolic link (a shortcut that points to another file or folder), tricking the system into copying a file they control to a protected location, which can then be used to gain higher 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.