Gentoo: PhpWiki Arbitrary command execution through XML-RPC
Posted by Benjamin D. Thomas   
Gentoo PhpWiki includes PHP XML-RPC code which is vulnerable to arbitrary command execution.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200508-18
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: High
     Title: PhpWiki: Arbitrary command execution through XML-RPC
      Date: August 26, 2005
      Bugs: #102380
        ID: 200508-18

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
========

PhpWiki includes PHP XML-RPC code which is vulnerable to arbitrary
command execution.

Background
==========

PhpWiki is an application that creates a web site where anyone can edit
the pages through HTML forms.

Affected packages
=================

    -------------------------------------------------------------------
     Package           /   Vulnerable   /                   Unaffected
    -------------------------------------------------------------------
  1  www-apps/phpwiki      < 1.3.10-r2                    >= 1.3.10-r2

Description
===========

Earlier versions of PhpWiki contain an XML-RPC library that improperly
handles XML-RPC requests and responses with malformed nested tags.

Impact
======

A remote attacker could exploit this vulnerability to inject arbitrary
PHP script code into eval() statements by sending a specially crafted
XML document to PhpWiki.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All PhpWiki users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=www-apps/phpwiki-1.3.10-r2"

References
==========

  [ 1 ] CAN-2005-2498
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-2498

Availability
============

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

  http://security.gentoo.org/glsa/glsa-200508-18.xml

Concerns?
=========

Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users machines is of utmost
importance to us. Any security concerns should be addressed to
security@gentoo.org or alternatively, you may file a bug at
http://bugs.gentoo.org.

License
=======

Copyright 2005 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

http://creativecommons.org/licenses/by-sa/2.0