Rapid7 Vulnerability & Exploit Database

Windows Escalate UAC Protection Bypass (Via dot net profiler)

Back to Search

Windows Escalate UAC Protection Bypass (Via dot net profiler)

Disclosed
03/17/2017
Created
11/19/2019

Description

Microsoft Windows allows for the automatic loading of a profiling COM object during the launch of a CLR process based on certain environment variables ostensibly to monitor execution. In this case, we abuse the profiler by pointing to a payload DLL that will be launched as the profiling thread. This thread will run at the permission level of the calling process, so an auto-elevating process will launch the DLL with elevated permissions. In this case, we use gpedit.msc as the auto-elevated CLR process, but others would work, too.

Author(s)

  • Casey Smith
  • "Stefan Kanthak" <stefan.kanthak () nexgo de>
  • bwatters-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/bypassuac_dotnet_profiler
msf exploit(bypassuac_dotnet_profiler) > show targets
    ...targets...
msf exploit(bypassuac_dotnet_profiler) > set TARGET < target-id >
msf exploit(bypassuac_dotnet_profiler) > show options
    ...show and set options...
msf exploit(bypassuac_dotnet_profiler) > 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

;