Rapid7 Vulnerability & Exploit Database

Microsoft Windows NtUserMNDragOver Local Privilege Elevation

Back to Search

Microsoft Windows NtUserMNDragOver Local Privilege Elevation

Disclosed
03/12/2019
Created
05/07/2020

Description

This module exploits a NULL pointer dereference vulnerability in MNGetpItemFromIndex(), which is reachable via a NtUserMNDragOver() system call. The NULL pointer dereference occurs because the xxxMNFindWindowFromPoint() function does not effectively check the validity of the tagPOPUPMENU objects it processes before passing them on to MNGetpItemFromIndex(), where the NULL pointer dereference will occur. This module has been tested against Windows 7 x86 SP0 and SP1. Offsets within the solution may need to be adjusted to work with other versions of Windows, such as Windows Server 2008.

Author(s)

  • Clément Lecigne
  • Grant Willcox
  • 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/ntusermndragover
msf exploit(ntusermndragover) > show targets
    ...targets...
msf exploit(ntusermndragover) > set TARGET < target-id >
msf exploit(ntusermndragover) > show options
    ...show and set options...
msf exploit(ntusermndragover) > 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

;