OpenVPN Private Tunnel Core Service Unquoted Service Path Elevation Of Privilege

Title: OpenVPN Private Tunnel Core Service Unquoted Service Path Elevation Of Privilege
Advisory ID: ZSL-2014-5192
Type: Local
Impact: Privilege Escalation
Risk: (3/5)
Release Date: 11.07.2014
Summary
Private Tunnel is a new approach to true Internet security creating a Virtual Private Tunnel (VPT) or Virtual Private Network (VPN) that encrypts, privatizes, and protects your Internet traffic.
Description
Private Tunnel application suffers from an unquoted search path issue impacting the Core Service 'ptservice' service for Windows deployed as part of PrivateTunnel bundle. This could potentially allow an authorized but non-privileged local user to execute arbitrary code with elevated privileges on the system. 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.
Vendor
OpenVPN Technologies, Inc - http://www.openvpn.net
Affected Version
2.1.28.0 (PrivateTunnel 2.3.8)
Tested On
Microsoft Windows 7 Professional SP1 (EN)
Microsoft Windows XP Professional SP3 (EN)
Vendor Status
[07.07.2014] Vulnerability discovered.
[08.07.2014] Contact with the vendor.
[10.07.2014] No reply from the vendor.
[11.07.2014] Public security advisory released.
PoC
ptunnel_pe.txt
msfsession.txt
Credits
Vulnerability discovered by Gjoko Krstic - <gjoko@zeroscience.mk>
References
[1] http://www.rapid7.com/db/modules/exploit/windows/local/trusted_service_path
[2] http://www.exploit-db.com/exploits/20543/
[3] http://cxsecurity.com/issue/WLB-2014070058
[4] http://packetstormsecurity.com/files/127439/OpenVPN-Private-Tunnel-Privilege-Escalation.html
[5] http://osvdb.org/show/osvdb/109007
[6] http://www.exploit-db.com/exploits/34037/
[7] http://www.securityfocus.com/bid/68520
[8] http://xforce.iss.net/xforce/xfdb/94482
[9] http://sebug.net/vuldb/ssvid-87133
[10] http://cve.mitre.org/cgi-bin/cvename.cgi?name=2014-5455
Changelog
[11.07.2014] - Initial release
[12.07.2014] - Added reference [4] and [5]
[15.07.2014] - Added reference [6] and [7]
[17.07.2014] - Added reference [8]
[30.07.2014] - Added reference [9]
[05.10.2014] - Added reference [10]
Contact
Zero Science Lab

Web: http://www.zeroscience.mk
e-mail: lab@zeroscience.mk