Windows Elevation of Privilege Vulnerability (CVE-2017-0165)
Windows failed to properly sanitise handles in memory, allowing an attacker who is already logged on to run a specially crafted application that elevates privileges to System. This could let them run arbitrary code, install programs, view or change data, or create accounts with full rights.
Originally disclosed on Microsoft
Description
An elevation of privilege vulnerability exists when Microsoft Windows fails to properly sanitize handles in memory. An attacker who successfully exploited the vulnerability could run arbitrary code as System. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. To exploit the vulnerability, an attacker would first have to log on to the system. An attacker could then run a specially crafted application designed to elevate privileges. The update addresses the vulnerability by correcting how Windows sanitizes handles in memory.
Microsoft Windows
Microsoft Windows
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 Windows did not correctly sanitise handles in memory, allowing a crafted application to gain higher privileges.
Impact
An attacker could run arbitrary code as System, potentially installing programs, viewing, changing or deleting data, or creating new accounts with full user rights.
What the attacker needed
Log on to the system; run a crafted application
The fix
The vulnerability was fixed by correcting how Windows sanitises handles in memory.
How it was found
- Log on to the affected Windows system.
- Run a specially crafted application designed to elevate privileges.
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 how Windows manages 'handles', which are references the operating system uses to track resources like files or processes. Because Windows did not check these handles properly, someone who already had a normal login could run a small program that tricks the system into giving them the highest level of control, called System. That level lets them do almost anything on the machine.
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.