module

Windows Escalate UAC Protection Bypass (Via SilentCleanup)

Disclosed
Feb 24, 2019
Created
Jun 27, 2019

Description

There's a task in Windows Task Scheduler called "SilentCleanup" which, while it's executed as Users, automatically runs with elevated privileges.
When it runs, it executes the file %windir%\system32\cleanmgr.exe. Since it runs as Users, and we can control user's environment variables,
%windir% (normally pointing to C:\Windows) can be changed to point to whatever we want, and it'll run as admin.

Authors

tyranid
enigma0x3
nyshone69
lokiuox
Carter Brainerd (cbrnrd)

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