Rapid7 Vulnerability & Exploit Database

Windows Privilege Escalation via TokenMagic (UAC Bypass)

Back to Search

Windows Privilege Escalation via TokenMagic (UAC Bypass)

Disclosed
05/25/2017
Created
05/15/2021

Description

This module leverages a UAC bypass (TokenMagic) in order to spawn a process/conduct a DLL hijacking attack to gain SYSTEM-level privileges. Windows 7 through Windows 10 1803 are affected.

Author(s)

  • James Forshaw
  • Ruben Boonen ( <Ruben Boonen (@FuzzySec)>
  • bwatters-r7
  • jheysel-r7

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/tokenmagic
msf exploit(tokenmagic) > show targets
    ...targets...
msf exploit(tokenmagic) > set TARGET < target-id >
msf exploit(tokenmagic) > show options
    ...show and set options...
msf exploit(tokenmagic) > 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

;