Windows - User Profile Service Elevation of Privilege Vulnerability (CVE-2020-16940)
The Windows User Profile Service mishandled junction points, allowing a logged-on attacker to run a crafted application and delete files or folders with elevated privileges. The security update corrects how the service handles junction points.
Originally disclosed on Microsoft
Description
An elevation of privilege vulnerability exists when the Windows User Profile Service (ProfSvc) improperly handles junction points. An attacker who successfully exploited this vulnerability could delete files and folders in an elevated context. To exploit this vulnerability, an attacker would first have to log on to the system. An attacker could then run a specially crafted application that could exploit the vulnerability and delete files or folders of their choosing. The security update addresses the vulnerability by correcting how the Windows User Profile Service handles junction points.
Microsoft Windows
Microsoft Windows
Issuing CNA
Microsoft
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 Windows User Profile Service followed junction points without properly checking the caller's privileges, letting a low-privileged user redirect elevated file operations.
Impact
An attacker who can log on could delete arbitrary files or folders with elevated privileges, which may lead to further compromise or denial of service.
What the attacker needed
Log on to the system; run a crafted application
The fix
The vulnerability was fixed by a security update that corrects how the Windows User Profile Service handles junction points.
How it was found
- Log on to the affected Windows system.
- Run a specially crafted application that exploits the junction point handling.
- Cause files or folders of the attacker's choosing to be deleted in an elevated context.
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.
This is a flaw in a Windows background service that manages user profiles. A logged-in user could run a small program that tricks the service into deleting files or folders it should not be able to touch, because the service runs with higher permissions. The fix changes how the service handles special folder links called junction points.
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.