PHP4 vulnerabilities

ID USN-171-1
Type ubuntu
Reporter Ubuntu
Modified 2005-08-21T00:00:00



The php4-dev package ships a copy of the "shtool" utility in
/usr/lib/php4/build/, which provides useful functionality for
developers of software packages. Eric Romang discovered that shtool
created temporary files in an insecure manner. This could allow
a symlink attack to create or overwrite arbitrary files with the
privileges of the user invoking the shtool program.


The creation of temporary files in shtool was also vulnerable to a
race condition which allowed a local user to read the contents of the
temporary file. However, this file does not usually contain sensitive
information since shtool is usually used for building software


Stefan Esser discovered another remote code execution vulnerability in
the XMLRPC module of the PEAR (PHP Extension and Application
Repository) extension of PHP. By sending specially crafted XMLRPC
requests to an affected web server, a remote attacker could exploit
this to execute arbitrary code with the web server's privileges.

In Ubuntu, the PEAR extension is unsupported (it is contained in the
php4-pear package which is part of universe). However, since this is
a highly critical vulnerability, that package was fixed anyway.

Please note that many applications contain a copy of the affected
XMLRPC code, which must be fixed separately. The following packages
may also be affected, but are unsupported in Ubuntu:

  • drupal
  • wordpress
  • phpwiki
  • horde3
  • ewiki
  • egroupware
  • phpgroupware

These packages might be fixed by the community later.

The following common third party applications might be affected as
well, but not packaged for Ubuntu:

  • Serendipity

  • Postnuke

  • tikiwiki
  • phpwebsite

If you run any affected software, please check whether you are
affected and upgrade it as soon as possible to protect your