From: "cron2 (Code Review)" Date: Mon, 3 Nov 2025 15:21:59 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., selva.nair@...277..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <65f619a9f710ddcf3d054fdcea2246f39c2e748e-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="SKOFhcfp/d4="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: openvpnserv: Disallow stdin as config unless user is authorized List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: selvanair , plaisthos , flichtenheld Cc: openvpn-devel --SKOFhcfp/d4= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1343?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by cron2 Change subject: openvpnserv: Disallow stdin as config unless user is author= ized ...................................................................... openvpnserv: Disallow stdin as config unless user is authorized Reported by: Change-Id: I356faeebfade1eed9b40d6700b13621c357ec5ac Signed-off-by: Selva Nair Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1343 Message-Id: <20251103150002.23187-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34= 156.html Signed-off-by: Gert Doering --- M src/openvpnserv/validate.c 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/43/1343/2 diff --git a/src/openvpnserv/validate.c b/src/openvpnserv/validate.c index 2187fb5..ddaa381 100644 --- a/src/openvpnserv/validate.c +++ b/src/openvpnserv/validate.c @@ -68,6 +68,11 @@ const WCHAR *config_file =3D NULL; WCHAR config_dir[MAX_PATH]; + /* fname =3D stdin is special: do not treat it as a relative path */ + if (wcscmp(fname, L"stdin") =3D=3D 0) + { + return FALSE; + } /* convert fname to full path */ if (PathIsRelativeW(fname)) { -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1343?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I356faeebfade1eed9b40d6700b13621c357ec5ac Gerrit-Change-Number: 1343 Gerrit-PatchSet: 2 Gerrit-Owner: selvanair Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --SKOFhcfp/d4= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #2 to the change originally created by selvanair.<= /p>

Vi= ew Change

The following approvals got outdated and were removed: Code-Review+2 by cron2

openvpnserv: Disallow stdin as conf=
ig unless user is authorized

Reported by: <stephan@...2953...>=

Change-Id: I356faeebfade1eed9b40d6700b13621c357ec5ac
Signed-off-= by: Selva Nair <selva.nair@...277...>
Acked-by: Gert Doering <g= ert@...1296...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/13= 43
Message-Id: <20251103150002.23187-1-gert@...1296...>
URL: ht= tps://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34156.htm= l
Signed-off-by: Gert Doering <gert@...1296...>
---
M src/op= envpnserv/validate.c
1 file changed, 5 insertions(+), 0 deletions(-)
=
git pull ssh://gerrit.openvpn.net:29418/openvpn ref=
s/changes/43/1343/2
diff --git a/src/openvpnserv/validate.c b/src/o=
penvpnserv/validate.c
index 2187fb5..ddaa381 100644<= br>--- a/src/openvpnserv/validate.c
+++ b/src/openvpn= serv/validate.c
@@ -68,6 +68,11 @@
con= st WCHAR *config_file =3D NULL;
WCHAR config_dir[MAX_P= ATH];

+ /* fname =3D stdin is special: do not treat it as a relative path *= /
+ if (wcscmp(fna= me, L"stdin") =3D=3D 0)
+ {
+= return FALSE;
+ }
/* convert fname to full path */
if (PathIsRelativeW(fname))
{
=

To view, visit change 1343. To unsubscribe, or for help wri= ting mail filters, visit settings.

=
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I356faeebfade1eed9b40d6700b1= 3621c357ec5ac
Gerrit-Change-Number: 1343
Gerrit-PatchSet: 2
Gerrit-Owner: selvanair <selva.nair@...1354...= ..>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --SKOFhcfp/d4=--