
PoC - CVE-2023-36407
This is poc for CVE-2023-36407, Hyper-V Elevation of Privilege Vulnerability.
https://github.com/pwndorei/CVE-2023-36407/assets/96749184/a8ef87d3-e0d0-40e5-9b23-35ab057a9c78
winhvr.sys!WinHvGet/SetVpStateWinHvSetVpState: 0x221268
Vid.sys to find out control code for WinHvSetVpState and change itJust build the project(Release/x64), then CVE-2023-36407.exe will be generated.
CVE-2023-36407.exe in vulnerable Hyper-V Host(Root Partition)CVE-2023-36407.exe calls DeviceIoControl that invokes winhvr.sys!WinHvSetVpStateWinHvSetVpState, memcpy copies data from input buffer(user-controlled) to Non-paged Pool memory
memcpy