githubEdit

AlwaysInstallElevated

AlwaysInstallElevated → refer in windows like a backdoor which any program can installed with system or admin privilege if this setting is enable

image.png

to this vulnerability work must HKLM, HKCU enable AlwaysInstallElevated

HKLM -> refer to all settings in register for whole **machine**
HKCU -> refer to all settings in register for **user**

Detection

we found this option is enabled

2025-07-05 18_16_40-Kali Linux - VMware Workstation.png

so let’s now this setting in user

2025-07-05 18_18_16-Kali Linux - VMware Workstation.png

From the output, notice that “AlwaysInstallElevated” value is 1.


Exploit

create a reverse shell and move it to windows

then open session using msfconsole

and then setup the payload using

2025-07-05 18_21_57-Kali Linux - VMware Workstation.png

and we get a privilege admin

Last updated