Rapid7 Vulnerability & Exploit Database

Microsoft Windows Uninitialized Variable Local Privilege Elevation

Back to Search

Microsoft Windows Uninitialized Variable Local Privilege Elevation

Disclosed
12/10/2019
Created
10/16/2020

Description

This module exploits CVE-2019-1458, an arbitrary pointer dereference vulnerability within win32k which occurs due to an uninitalized variable, which allows user mode attackers to write a limited amount of controlled data to an attacker controlled address in kernel memory. By utilizing this vulnerability to execute controlled writes to kernel memory, an attacker can gain arbitrary code execution as the SYSTEM user. This module has been tested against Windows 7 x64 SP1. Offsets within the exploit code may need to be adjusted to work with other versions of Windows. The exploit can only be triggered once against the target and can cause the target machine to reboot when the session is terminated.

Author(s)

  • piotrflorczyk
  • unamer
  • timwr

Platform

Windows

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/windows/local/cve_2019_1458_wizardopium
msf exploit(cve_2019_1458_wizardopium) > show targets
    ...targets...
msf exploit(cve_2019_1458_wizardopium) > set TARGET < target-id >
msf exploit(cve_2019_1458_wizardopium) > show options
    ...show and set options...
msf exploit(cve_2019_1458_wizardopium) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;