24444 : OpenVPN LD_PRELOAD Environment Variable Pushing Arbitrary Code Execution
Printer | http://osvdb.org/24444 | Email This | Edit Vulnerability

Views This Week

4

Views All Time

215

Info

Last Modified

about 1 year ago

Percent Complete

100%

Disclosure

Apr 05, 2006

Discovery

Unknown

Dates

Exploit

Unknown

Solution

Unknown

Keywords

No Keywords

Description

OpenVPN contains a flaw that may allow a malicious user to execute arbitrary code. The issue is caused due to OpenVPN clients allowing the server to transmit environment variables including LD_PRELOAD to client-side shell scripts via 'setenv' configuration directives. It is possible that the flaw may allow arbitrary code execution by placing and loading a file in a known location resulting in a loss of integrity.

Classification

Location: Remote/Network Access Required
Attack Type: Input Manipulation
Impact: Loss of Integrity
Exploit: Exploit Rumored / Private
Disclosure: OSVDB Verified

Technical

A successful attack appears to require the following conditions
(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
(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)

Solution

Upgrade to version 2.0.6 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

Products

OpenVPN
Watch-list
OpenVPN
Watch-list
2.0
2.0.1
2.0.2
2.0.3
2.0.4
2.0.5

References

Tools & Filters

Nessus

21206 21505 22587

Credit

  • Hendrik Weimer - hendrikBrand New Doo Dooenyo.de -

Blogs

None found at this time

Comments

No Comments.

DONATE NOW!

User Status

Quick Searches

Advertisements

The database information may change without any notice. Use of the information constitutes acceptance for use in an AS IS condition, and there are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the copyright holder or distributor (OSVDB or OSF) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

© Copyright 2008 Open Source Vulnerability Database (OSVDB), All Rights Reserved.
Privacy Statement - Terms of Use