References: <57A3C76A.1020809@...277...> <76eb908d-b7b3-7425-5340-e4cd5726fbd1@...2080...> <3642cff2-6233-0a28-2a39-36513f008ab4@...277...> <20160823123439.GA78279@...1296...> <57BD5780.2030204@...1147...> <57BD64D9.8010607@...1147...> <20160824125346.GK78279@...1296...> <57BDA02C.4070502@...1147...> From: =?UTF-8?Q?Samuli_Sepp=c3=a4nen?= Message-ID: <5deb965f-84dd-1ec4-0383-e7207b9f4d4f@...515...> Date: Wed, 24 Aug 2016 17:00:24 +0300 MIME-Version: 1.0 In-Reply-To: <57BDA02C.4070502@...1147...> Subject: Re: [Openvpn-devel] Win10 Tun Server +Standard W10 User +OVPN Interactive Service +OVPN GUI List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: quoted-printable To: Jan Just Keijser , Gert Doering Cc: openvpn-devel@lists.sourceforge.net Il 24/08/2016 16:25, Jan Just Keijser ha scritto: >> Iservice works like this (we have a documentation page coming, but that's >> not there yet) >> >> - the GUI runs as "me" (gert) >> - the iservice runs as "local service", maximum privileges >> - the GUI connects to the iservice, and asks it "run openvpn.exe with >> the following arguments, using the credentials of the user the GUI >> runs >> with" (windows can do this - pass credentials across a pipe, which >> you >> can't fake) >> - the iservice forks openvpn.exe, and runs this as user (gert), and >> keeps a "service pipe" between iservice and openvpn.exe >> - if openvpn.exe wants to do ifconfig/route/dns stuff, it sends these >> as requests over the service pipe to the iservice, who will then >> execute them (and clean up should openvpn crash) >> - --up scripts are run by openvpn.exe itself, which is already running >> as "gert", so, all privileges are nicely in place >> >> so this cannot be used anymore for privilege escalation to admin (by >> running an --up script from openvpn which is run-as-admin). >> > thanks for your explanation - all clear to me now. All we have to do now > is to document this and add some tests to the buildbot ;) > And why have perfectly good explanation get lost in the depths of a=20 mailing list archive: Feel free to improve further :) --=20 Samuli Sepp=E4nen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock