Attention is currently required from: Arne Schwabe, Heiko Hund. Răzvan Cojocaru has posted comments on this change by Heiko Hund. ( https://gerrit.openvpn.net/c/openvpn/+/2348?usp=email )
Change subject: dns: pass dns vars to the updown runner via pipe ...................................................................... Patch Set 2: Code-Review-1 (2 comments) File src/openvpn/dns.c: https://gerrit.openvpn.net/c/openvpn/+/2348/comment/ced024e8_b089eeb8?usp=email : PS2, Line 606: dns_vars_setenv(char *vars, size_t size, struct env_set *es) If I understand this correctly, here we take any name from the unprivileged side and pass it on to a script that runs as root. `LD_PRELOAD`, `PATH` or `BASH_ENV` come to mind as things that we might not want to pass on. Would it be a good idea to filter this, and only allow `dev`, `script_type`, `dns*` (and whatever else I might be missing but is legal)? https://gerrit.openvpn.net/c/openvpn/+/2348/comment/245f26f2_dcf8f0f9?usp=email : PS2, Line 626: setenv_str(es, var, eq + 1); `setenv_str_ex()` asserts `strlen(name) > 1`, so `=x` or `a=x` aborts the runner (not just get rejected as the doc comment says). The suggested name check would also fix this. -- To view, visit https://gerrit.openvpn.net/c/openvpn/+/2348?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.openvpn.net/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ie0d772af38b66799499b1b5729915ed77c438441 Gerrit-Change-Number: 2348 Gerrit-PatchSet: 2 Gerrit-Owner: Heiko Hund <[email protected]> Gerrit-Reviewer: Arne Schwabe <[email protected]> Gerrit-Reviewer: Răzvan Cojocaru <[email protected]> Gerrit-CC: openvpn-devel <[email protected]> Gerrit-Attention: Heiko Hund <[email protected]> Gerrit-Attention: Arne Schwabe <[email protected]> Gerrit-Comment-Date: Thu, 26 Nov 2026 07:18:13 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes
_______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
