- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200705-16
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Severity: High
     Title: PhpWiki: Remote execution of arbitrary code
      Date: May 17, 2007
      Bugs: #174451
        ID: 200705-16

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

Synopsis
========

A vulnerability has been discovered in PhpWiki allowing for the remote
execution of arbitrary code.

Background
==========

PhpWiki is an open source content management system written in PHP.

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

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

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

Harold Hallikainen has reported that the Upload page fails to properly
check the extension of a file.

Impact
======

A remote attacker could upload a specially crafted PHP file to the
vulnerable server, resulting in the execution of arbitrary PHP code
with the privileges of the user running 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-r3"

References
==========

[ 1 ] CVE-2007-2024
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-2024
  [ 2 ] CVE-2007-2025
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-2025

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

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

http://security.gentoo.org/glsa/glsa-200705-16.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 (at) gentoo (dot) org [email concealed] or alternatively, you may file a bug at
http://bugs.gentoo.org.

License
=======

Copyright 2007 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.5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iQEVAwUBRkxStTvRww8BFPxFAQInZAf/W4mAcZFrm/ABJQkP+726FizgnpDl9Bzx
bhVNz+W9o4bj+s8OjnqWWiHw4yVJmyQLPltOBVuKfStPedMaXn5WrVX5CZQz592p
JZQZGa7dFh1lulpbPJL3g1so5SqsgIOHcmSW95qlqjAOKwm2RtOmSGLOaf7FUAH1
1+wp36dBsPW8YPnI8glFuuaZq7xKOJnf9Vw0tF6jvOYo874B1pyvHtu/OlrYaPL/
hxTYeMtOfj4wQWtARLOr1pqid9VgVEvhjGP3iQqCzkALEnW3ghR8h7b2qtNuV2R8
Jx0X3rXAYjlAyATfkcD3jksIMMGu26NQOgrO2cJAIlTMLevxQNnYkQ==
=kASL
-----END PGP SIGNATURE-----