]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Security Vulnerability -- An OpenVPN client connecting to a
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Wed, 5 Apr 2006 06:01:08 +0000 (06:01 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Wed, 5 Apr 2006 06:01:08 +0000 (06:01 +0000)
commit07d19ba76c2d1e10d042948b3fb7aa359b194280
tree500ed972b447653dd9fc225519e7d4dfbebf3e51
parent28549038ac2d729ee2f796ae4ea976e77c49cd1e
Security Vulnerability -- An OpenVPN client connecting to a
malicious or compromised server could potentially receive
"setenv" configuration directives from the server which could
cause arbitrary code execution on the client via a LD_PRELOAD
attack.  A successful attack appears to require that (a) the
client has agreed to allow the server to push configuration
directives to it by including "pull" or the macro "client" in
its configuration file, (b) the client configuration file uses
a scripting directive such as "up" or "down", (c) the client
succesfully authenticates the server, (d) the server is
malicious or has been compromised and is under the control of
the attacker, and (e) the attacker has at least some level of
pre-existing control over files on the client (this might be
accomplished by having the server respond to a client web request
with a specially crafted file).

The fix is to disallow "setenv" to be pushed to clients from
the server, and to add a new directive "setenv-safe" which is
pushable from the server, but which appends "OPENVPN_" to the
name of each remotely set environmental variable.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@983 e7ae566f-a301-0410-adde-c780ea21d3b5
misc.c
misc.h
options.c