5270 : EMU Webmail HTTP Host Header Execute Arbitrary Program
Printer | http://osvdb.org/5270 | Email This | Edit Vulnerability

Views This Week

3

Views All Time

33

Info

Last Modified

6 months ago

Percent Complete

100%

Disclosure

Apr 10, 2002

Discovery

Apr 10, 2002

Dates

Exploit

Apr 10, 2002

Solution

Unknown

Description

Upon connecting to the server and supplying a malicious HTTP Host value to emumail, it could be possible for a local user to force the program to open an arbitrary file with privileges equal to the HTTP server process. This could result in the execution of an arbitrary program, supplied by an attacker with local access to the host.

Classification

Location: Local Access Required
Attack Type: Input Manipulation
Impact: Loss of Integrity
Exploit: Exploit Available
Disclosure: OSVDB Verified
OSVDB: Web Related

Technical

Source fragments from emumail.cgi:

-------------------- CUT HERE --------------------
my $http_host = lc $ENV{'HTTP_HOST'};

if ( -e "$http_host.init" ) {
open(INI, "$http_host.init") || debug "Can't open $http_host.init! : $! ";
<INI> =~ /page_root\s*=\s*(\S+)/m;
close(INI);
$page_root = $1;
}

...

open (IN, "$page_root/.....");
-------------------- CUT HERE --------------------

By setting a HTTP-Host like "../../../../../tmp/evil" and place a config file with the new pageroot "/tmp/evilprog " it is possible for a local user to hijack the cgi-user on the next open call

Solution

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

Products

EMUMAIL Inc.
Watch-list
WebMail
Watch-list
4.x
5.1

References

Credit

  • Leif Jakob - bugtraqBrand New Doo Doopinguin.weite-welt.com -

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