
fodhelper-based UAC bypass poc for CVE-2021-31956, registry keys to SYSTEM without a prompt. educational
CVE-2021-31956 is a UAC (User Account Control) bypass vulnerability in Windows that allows an attacker to elevate privileges to SYSTEM without triggering a UAC prompt. This CVE exploits a flaw in the way Windows handles registry keys associated with UAC prompts.
The vulnerability enables an attacker to modify registry keys used by UAC to run elevated programs. The attacker can change these registry keys to point to a malicious executable, causing it to run with SYSTEM privileges without triggering the normal UAC dialog. This allows arbitrary code execution with administrative privileges, bypassing the UAC security mechanism.
FodHelper.exeThis repository contains a C++ application that demonstrates how CVE-2021-31956 can be exploited. The compiled executable, FodHelper.exe, allows you to bypass UAC by running a specified program with SYSTEM privileges.
Compile the C++ Source Code: Compile the provided C++ source code into an executable (Exploit.exe).
Run the Exploit: Execute the following command to launch a program (e.g., calc.exe) with SYSTEM privileges:
Exploit.exe 1 calc.exe