Gentoo Logo

PHP: Script injection through XML-RPC

Content:

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200507-15 / PHP
Release Date July 15, 2005
Latest Revision July 15, 2005: 01
Impact high
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
dev-php/php < 4.4.0 >= 4.4.0 All supported architectures

Related bugreports: #97655

Synopsis

PHP includes an XML-RPC implementation which allows remote attackers to execute arbitrary PHP script commands.

2.  Impact Information

Background

PHP is a general-purpose scripting language widely used to develop web-based applications. It can run inside a web server using the mod_php module or the CGI version of PHP, or can run stand-alone in a CLI.

Description

James Bercegay has discovered that the XML-RPC implementation in PHP fails to sanitize input passed in an XML document, which is used in an "eval()" statement.

Impact

A remote attacker could exploit the XML-RPC vulnerability to execute arbitrary PHP script code by sending specially crafted XML data to applications making use of this XML-RPC implementation.

3.  Resolution Information

Workaround

There is no known workaround at this time.

Resolution

All PHP users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-php/php-4.4.0"

4.  References



Print

Page updated July 15, 2005

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2014 Gentoo Foundation, Inc. Questions, Comments? Contact us.