module

Windows Escalate UAC Protection Bypass (In Memory Injection) abusing WinSXS

Disclosed
Apr 6, 2017
Created
May 30, 2018

Description

This module will bypass Windows UAC by utilizing the trusted publisher
certificate through process injection. It will spawn a second shell that
has the UAC flag turned off by abusing the way "WinSxS" works in Windows
systems. This module uses the Reflective DLL Injection technique to drop
only the DLL payload binary instead of three seperate binaries in the
standard technique. However, it requires the correct architecture to be
selected, (use x64 for SYSWOW64 systems also).

Author

Ernesto Fernandez "L3cr0f" [email protected]

Platform

Windows

Architectures

x86, x64

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

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.