XML-RPC for PHP Lets Remote Users Execute Arbitrary PHP Code
|
|
SecurityTracker Alert ID: 1014327 |
|
SecurityTracker URL: http://securitytracker.com/id/1014327
|
|
CVE Reference:
CAN-2005-1921
(Links to External Site)
|
Updated: Jul 4 2005
|
Original Entry Date: Jun 29 2005
|
Impact:
Execution of arbitrary code via network, User access via network
|
Fix Available: Yes Vendor Confirmed: Yes Exploit Included: Yes
|
Version(s): 1.1 and possibly prior versions
|
Description:
A vulnerability was reported in XML-RPC for PHP. A remote user can execute arbitrary PHP code on the target system.
PHPXMLRPC is vulnerable to a very high risk remote php code execution vulnerability that may allow for an attacker to compromise a vulnerable webserver. The vulnerability is the result of unsanatized data being passed directly into an eval() call in
The parseRequest() function does not properly validate user-supplied input before making an eval() call. A remote user can create a specially crafted XML file and submit the file in an HTTP POST request to execute arbitrary PHP code on the target system.
A demonstration exploit is provided:
<?xml version="1.0"?>
<methodCall>
<methodName>test.method</methodName>
<params>
<param>
<value><name>','')); phpinfo(); exit;/*</name></value>
</param>
</params>
</methodCall>
PEAR XML_RPC is also affected.
The vendor was notified on June 26, 2005.
James from GulfTech Security Research discovered this vulnerability.
|
Impact:
A remote user can execute arbitrary PHP code on the target system with the privileges of the target web service.
|
Solution:
The vendor has issued a fixed version (1.1.1), available at:
http://sourceforge.net/project/showfiles.php?group_id=34455&package_id=26601
|
Vendor URL: phpxmlrpc.sourceforge.net/ (Links to External Site)
|
Cause:
Input validation error
|
Underlying OS:
Linux (Any), UNIX (Any), Windows (Any)
|
|
Message History:
This archive entry has one or more follow-up message(s) listed below.
|
Source Message Contents
|
Date: Wed, 29 Jun 2005 03:48:11 -0400
Subject: http://sourceforge.net/tracker/index.php?func=detail&aid=1228032&group_id=34455&atid=411300
|
> remote php code execution in php xml rpc
|
|