Ubuntu 4.10 / 5.04 : php4 vulnerabilities (USN-171-1)

medium Nessus Plugin ID 20578

Synopsis

The remote Ubuntu host is missing one or more security-related patches.

Description

CAN-2005-1751 :

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.

CAN-1005-1759 :

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 packages.

CAN-2005-2498 :

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 server.

Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.

Solution

Update the affected packages.

Plugin Details

Severity: Medium

ID: 20578

File Name: ubuntu_USN-171-1.nasl

Version: 1.16

Type: local

Agent: unix

Published: 1/15/2006

Updated: 1/19/2021

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Frictionless Assessment Azure, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Medium

Base Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:N

Vulnerability Information

CPE: p-cpe:/a:canonical:ubuntu_linux:php4-curl, p-cpe:/a:canonical:ubuntu_linux:php4, p-cpe:/a:canonical:ubuntu_linux:php4-xslt, p-cpe:/a:canonical:ubuntu_linux:php4-cgi, p-cpe:/a:canonical:ubuntu_linux:libapache2-mod-php4, p-cpe:/a:canonical:ubuntu_linux:php4-recode, p-cpe:/a:canonical:ubuntu_linux:php4-domxml, p-cpe:/a:canonical:ubuntu_linux:php4-sybase, p-cpe:/a:canonical:ubuntu_linux:php4-snmp, p-cpe:/a:canonical:ubuntu_linux:php4-pear, p-cpe:/a:canonical:ubuntu_linux:php4-mysql, p-cpe:/a:canonical:ubuntu_linux:php4-gd, p-cpe:/a:canonical:ubuntu_linux:php4-universe-common, p-cpe:/a:canonical:ubuntu_linux:php4-imap, p-cpe:/a:canonical:ubuntu_linux:php4-mhash, p-cpe:/a:canonical:ubuntu_linux:php4-common, p-cpe:/a:canonical:ubuntu_linux:libapache-mod-php4, p-cpe:/a:canonical:ubuntu_linux:php4-odbc, cpe:/o:canonical:ubuntu_linux:4.10, p-cpe:/a:canonical:ubuntu_linux:php4-ldap, cpe:/o:canonical:ubuntu_linux:5.04, p-cpe:/a:canonical:ubuntu_linux:php4-cli, p-cpe:/a:canonical:ubuntu_linux:php4-mcal, p-cpe:/a:canonical:ubuntu_linux:php4-dev

Required KB Items: Host/cpu, Host/Ubuntu, Host/Ubuntu/release, Host/Debian/dpkg-l

Patch Publication Date: 8/20/2005

Reference Information

CVE: CVE-2005-1751, CVE-2005-1759, CVE-2005-2498

USN: 171-1