Description
This module exploits CVE-2020-1054, an out of bounds write reachable from DrawIconEx within win32k. The out of bounds write can be used to overwrite the pvbits of a SURFOBJ. 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 a fully updated Windows 7 x64 SP1. Offsets within the exploit code may need to be adjusted to work with other versions of Windows.
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/2020_1054_drawiconex_lpemsf undefined(2020_1054_drawiconex_lpe) > show actions ...actions...msf undefined(2020_1054_drawiconex_lpe) > set ACTION < action-name >msf undefined(2020_1054_drawiconex_lpe) > show options ...show and set options...msf undefined(2020_1054_drawiconex_lpe) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub