From: "d12fk (Code Review)"
Date: Sat, 8 Nov 2025 00:07:29 +0000
In-Reply-To:
References:
Reply-To: heiko@...515..., arne-openvpn@...1227..., selva.nair@...277...,
openvpn-devel@lists.sourceforge.net, frank@...2641...,
lstipakov@...277...
Message-ID: <5b5bfb2ba0cd4c3f152de48c7b355113fdc97d1e-EmailReviewComments-HTML@...2715...>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="FYwpj5BpTDM="; charset=UTF-8
Subject: [Openvpn-devel] [M] Change in openvpn[master]: openvpnserv:
validate openvpn-gui process path
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
To: stipa
Cc: selvanair , plaisthos , flichtenheld , openvpn-devel
--FYwpj5BpTDM=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: flichtenheld, plaisthos, stipa.
d12fk has posted comments on this change by stipa. ( http://gerrit.openvpn.=
net/c/openvpn/+/1333?usp=3Demail )
Change subject: openvpnserv: validate openvpn-gui process path
......................................................................
Patch Set 2:
(3 comments)
File src/openvpnserv/validate.c:
http://gerrit.openvpn.net/c/openvpn/+/1333/comment/8a56b40a_84d5cd59?usp=3D=
email :
PS2, Line 350: if (!GetNamedPipeClientProcessId(pipe, &clientPID))
I remember we looked at this back when the reports from Microsoft came in. =
Not sure if I recall correctly, but wasn't it this API which always reporte=
d the same PID no matter which process connected to the pipe second?
http://gerrit.openvpn.net/c/openvpn/+/1333/comment/6c18fe77_e5aadcaa?usp=3D=
email :
PS2, Line 371: HRESULT hr =3D PathCchCanonicalizeEx(bin_dir, _count=
of(bin_dir), s->bin_dir,
dirs will always have a trailing slash with #1336
http://gerrit.openvpn.net/c/openvpn/+/1333/comment/a4c3a93c_555a1a40?usp=3D=
email :
PS2, Line 373: if ((hr =3D=3D S_OK) && wcsncmp(bin_dir, path, wcsle=
n(bin_dir)) =3D=3D 0)
Compare case-insesitive here, to get no false positives
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1333?usp=3Demail
To unsubscribe, or for help writing mail filters, visit http://gerrit.openv=
pn.net/settings?usp=3Demail
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie990f4dd10094810d6632f8dedfa261727ebfbcb
Gerrit-Change-Number: 1333
Gerrit-PatchSet: 2
Gerrit-Owner: stipa
Gerrit-Reviewer: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: d12fk
Gerrit-CC: openvpn-devel
Gerrit-CC: selvanair
Gerrit-Attention: plaisthos
Gerrit-Attention: flichtenheld
Gerrit-Attention: stipa
Gerrit-Comment-Date: Sat, 08 Nov 2025 00:07:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
--FYwpj5BpTDM=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is cur=
rently required from: flichtenheld, plaisthos, stipa.
View =
Change
3 comments:
<=
/ul>To view, visit change 1333. To unsubscribe, or for help writing mail fil=
ters, visit sett=
ings.
<=
link itemprop=3D"url" href=3D"http://gerrit.openvpn.net/c/openvpn/+/1333?us=
p=3Demail"/>
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie990f4dd10094810d6632f8dedf=
a261727ebfbcb
Gerrit-Change-Number: 1333
Gerrit-PatchSet: 2
Gerrit-Owner: stipa <lstipakov@...277...>=
;
Gerrit-Reviewer: flichtenheld <frank@...2716...=
1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...=
.1227...>
Gerrit-CC: d12fk <heiko@...515...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...=
ts.sourceforge.net>
Gerrit-CC: selvanair <selva.nair@...277...&=
gt;
Gerrit-Attention: plaisthos <arne-openvpn@...220...=
..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...=
41...>
Gerrit-Attention: stipa <lstipakov@...1663...=
.>
Gerrit-Comment-Date: Sat, 08 Nov 2025 00:07:29=
+0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
=
--FYwpj5BpTDM=--