Microsoft Windows Folder Redirection Elevation of Privilege Vulnerability (CVE-2021-26887)
When Folder Redirection is enabled through Group Policy and the redirection file server sits on the same machine as the Terminal server, a user could create a folder under the redirection root and place a junction on a newly created user folder. When another user then logs in, their personal data would be redirected into that attacker-made folder.
Description
An elevation of privilege vulnerability exists in Microsoft Windows when Folder redirection has been enabled via Group Policy. When folder redirection file server is co-located with Terminal server, an attacker who successfully exploited the vulnerability would be able to begin redirecting another user's personal data to a created folder. To exploit the vulnerability, an attacker can create a new folder under the Folder Redirection root path and create a junction on a newly created User folder. When the new user logs in, Folder Redirection would start redirecting to the folder and copying personal data. This elevation of privilege vulnerability can only be addressed by reconfiguring Folder Redirection with Offline files and restricting permissions, and NOT via a security update for affected Windows Servers. See the FAQ section of this CVE for configuration guidance.
FAQ
There are no Downloads listed in the Security Updates table. How do I protect my system from this vulnerability? This elevation of privilege vulnerability can only be addressed by reconfiguring Folder Redirection with Offline files and restricting permissions, and NOT via a security update for affected Windows Servers. See Deploy Folder Redirection with Offline Files for instructions for configuring your system.
Windows Folder Redirection
Windows Folder Redirection
Microsoft
Microsoft
Customer Action Required
Yes
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the redirection share was writable by ordinary users and the redirection process followed junctions without checking who owned the target folder.
Impact
Another user's personal data could be redirected into a folder the attacker created, giving the attacker access to that data.
What the attacker needed
Folder Redirection enabled via Group Policy; Redirection file server co-located with Terminal server; Attacker can write under the redirection root; Victim logs in afterwards
The fix
It should be fixed by reconfiguring Folder Redirection to use Offline Files and by restricting permissions; Microsoft states no security update addresses it.
How it was found
- Create a new folder under the Folder Redirection root path.
- Create a junction on a newly created user folder.
- Wait for the new user to log in so redirection copies their personal data.
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 report has not been written yet. The Original tab links to the source.
Folder Redirection is a Windows feature that stores a user's personal folders, such as Documents, on a shared server instead of the local disk. A junction is a special folder that points somewhere else, like a shortcut that programs treat as a real directory. Because the shared server and the terminal server were the same machine, one user could plant such a pointer so that another user's files were copied into a folder the attacker controlled.
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.