[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Defense in depth -- the Microsoft way (part 33): arbitrary code execution (and UAC bypass) via RegEdit.exe
I wrote ... and forgot some mitigations:
> Proof of concept (for Windows 2000 to Windows 10; use your own "sentinel"
> ~~~~~~~~~~~~~~~~ instead of mine for Windows NT4):
> 1. get <http://home.arcor.de/skanthak/download/SENTINEL.DLL> (this is a
> 32-bit executable [*]; the 64-bit executable is available on request);
> 2. copy SENTINEL.DLL as %SystemRoot%\ACLUI.DLL (use the method shown
> in <http://seclists.org/fulldisclosure/2015/Mar/92> to bypass UAC);
> 3. execute %SystemRoot%\RegEdit.exe
> 1. For %! In (%SystemRoot%\*.exe
> %SystemRoot%\*.dll) Do If Not Exist %SystemRoot%\System32\%~nx! MkLink /H %SystemRoot%\System32\%~nx! %!
> This but only helps if RegEdit.exe is not called with its fully
> qualified pathname %SystemRoot%\RegEdit.exe
> 2. Define ACLUI.DLL as "known DLL":
> [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\KnownDLLs]
3. Prevent elevation of RegEdit.exe per UAC in "protected
4. Demote your "protected administrator" account created during Windows
setup to a standard user account.
| When you set up Windows, you were required to create a user account.
| This account is an administrator account that allows you to set up
| your computer and install any programs that you'd like to use. Once
| you finish setting up your computer, we recommend that you create a
| standard account and use it for your everyday computing. If you create
| new user accounts, you should also make them standard accounts. Using
| standard accounts will help keep your computer more secure.
> [*] see <http://home.arcor.de/skanthak/sentinel.html>
PS: more than 22 years after introduction of Windows NT Microsoft STILL
continues their VERY BAD and REALLY NASTY habit to give the user
account(s) created during Windows setup administrative rights!
No, UAC is NOT a security boundary, but just a convenience feature:
Jane and Joe Average will happily give consent to almost any program
(like RegEdit.exe) which asks for elevated privileges, DESPITE most