MIME-Version: 1.0 In-Reply-To: References: <79b0624d-53fe-8e17-c58a-221434caad32@...1227...> From: Selva Nair Date: Tue, 13 Jun 2017 16:51:07 -0400 Message-ID: Content-Type: multipart/alternative; boundary="001a113ac7247049b20551dd99dc" Subject: Re: [Openvpn-devel] W10 Client assigns old AND new IPv6 address to TAP with GUI+Service but not with cmd prompt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?0JjQu9GM0Y8g0KjQuNC/0LjRhtC40L0=?= Cc: "openvpn-devel@lists.sourceforge.net" --001a113ac7247049b20551dd99dc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jun 13, 2017 at 4:30 PM, =D0=98=D0=BB=D1=8C=D1=8F =D0=A8=D0=B8=D0= =BF=D0=B8=D1=86=D0=B8=D0=BD wrote: > 2017-06-14 1:05 GMT+05:00 Selva Nair : > >> >> On Tue, Jun 13, 2017 at 3:54 PM, Arne Schwabe wrote: >> >>> > >>> > >>> > if user is administrator, interactive service is not used. >>> > well, I did miss that about interactive service. >>> > >>> >>> I wonder we should always use the interactive service if available and >>> add (dont-use-interactive) option, so behaviour is always the same. >> >> >> This was done for security -- some Windows versions have broken handling >> of passing credentials through named pipe which could be used for privil= ege >> escalation. I have seen this exploit work only on Windows XP[*], but to = be >> cautious we opted not to allow openvpn running as admin connect to the >> service pipe. >> >> But anyway, in this case its the service that's doing the wrong thing. >> > > well, I'm lost here. > > sounds like "we do not use interactive service if user is already an > administrator ... due to possible privilege escalation", right ? escalati= on > to "system" ? > No, just escalation from user to admin. Think of a system where iservice is not running. A user could start a rogue process in the background that listens on the service pipe. This is easily done do as the service pipe uses a fixed name and no authentication is needed to connect to it. Then an admin who starts the GUI will connect to the pipe and let the rogue program gain admin rights. It takes only a few line sof code to exploit this on XP -- I have not been able to exploit this on Vista but not 100% sure it has been fixed for good on Vista+. For more details see, for example, https://labs.portcullis.co.uk/blog/windows-named-pipes-there-and-back-again/ Selva --001a113ac7247049b20551dd99dc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

= On Tue, Jun 13, 2017 at 4:30 PM, =D0=98=D0=BB=D1=8C=D1=8F =D0=A8=D0=B8=D0= =BF=D0=B8=D1=86=D0=B8=D0=BD <chipitsine@...277...> wrote:=
2017-06-14 1:05 GMT+05:00 Selva= Nair <selva.nair@...277...>:

= On Tue, Jun 13, 2017 at 3:54 PM, Arne Schwabe <arne@...1227...> wrote:
>
>
> if user is administrator, interactive service is not used.
> well, I did miss that about interactive service.
>

I wonder we should always use the interactive service if available a= nd
add (dont-use-interactive) option, so behaviour is always the same.

This was done for security -- some Windows versions h= ave broken handling of passing credentials through named pipe which could b= e used for privilege escalation. I have seen this exploit work only on Wind= ows XP[*], but to be cautious we opted not to allow openvpn running as admi= n connect to the service pipe.

But anyway, in this case its the service that'= s doing the wrong thing.

well, I'm lost here.

sounds like "we do not use= interactive service if user is already an administrator ... due to possibl= e privilege escalation", right ? escalation to "system" ?

No, just escalation from user to admin. Think of = a system where iservice is not running. A user could start a rogue process = in the background that listens on the service pipe. This is easily done do = as the service pipe uses a fixed name and no authentication is needed to co= nnect to it. Then an admin who starts the GUI will connect to the pipe and = let the rogue program gain admin rights. It takes only a few line sof code = to exploit this on XP -- I have not been able to exploit this on Vista but = not 100% sure it has been fixed for good on Vista+.


Selva --001a113ac7247049b20551dd99dc--