Vigil@nce - Windows: privilege escalation via NtSetWindowLongPtr
January 2017 by Vigil@nce
This bulletin was written by Vigil@nce : https://vigilance.fr/offer
SYNTHESIS OF THE VULNERABILITY
A local attacker can call NtSetWindowLongPtr() on Windows, in
order to escalate his privileges.
Impacted products: Windows 10, Windows 2008 R0, Windows 2008 R2,
Windows 2012, Windows 2016, Windows 7, Windows 8, Windows RT,
Windows Vista.
Severity: 2/4.
Creation date: 02/11/2016.
DESCRIPTION OF THE VULNERABILITY
The win32k.sys driver of Windows provides the NtSetWindowLongPtr()
function, which changes an attribute of a window. The nIndex
GWLP_ID parameter changes the identifier of a window, and
GWL_STYLE changes its displayed style.
However, using GWLP_ID=otherWindow and GWL_STYLE=WS_CHILD, a local
attacker can escalate his privileges.
A local attacker can therefore call NtSetWindowLongPtr() on
Windows, in order to escalate his privileges.
ACCESS TO THE COMPLETE VIGIL@NCE BULLETIN
https://vigilance.fr/vulnerability/Windows-privilege-escalation-via-NtSetWindowLongPtr-21014