GLSA-200407-13 : PHP: Multiple security vulnerabilities

medium Nessus Plugin ID 14546

Synopsis

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

Description

The remote host is affected by the vulnerability described in GLSA-200407-13 (PHP: Multiple security vulnerabilities)

Several security vulnerabilities were found and fixed in version 4.3.8 of PHP. The strip_tags() function, used to sanitize user input, could in certain cases allow tags containing \\0 characters (CAN-2004-0595). When memory_limit is used, PHP might unsafely interrupt other functions (CAN-2004-0594). The ftok and itpc functions were missing safe_mode checks.
It was possible to bypass open_basedir restrictions using MySQL's LOAD DATA LOCAL function. Furthermore, the IMAP extension was incorrectly allocating memory and alloca() calls were replaced with emalloc() for better stack protection.
Impact :

Successfully exploited, the memory_limit problem could allow remote execution of arbitrary code. By exploiting the strip_tags vulnerability, it is possible to pass HTML code that would be considered as valid tags by the Microsoft Internet Explorer and Safari browsers. Using ftok, itpc or MySQL's LOAD DATA LOCAL, it is possible to bypass PHP configuration restrictions.
Workaround :

There is no known workaround that would solve all these problems. All users are encouraged to upgrade to the latest available versions.

Solution

All PHP, mod_php and php-cgi users should upgrade to the latest stable version:
# emerge sync # emerge -pv '>=dev-php/php-4.3.8' # emerge '>=dev-php/php-4.3.8' # emerge -pv '>=dev-php/mod_php-4.3.8' # emerge '>=dev-php/mod_php-4.3.8' # emerge -pv '>=dev-php/php-cgi-4.3.8' # emerge '>=dev-php/php-cgi-4.3.8'

See Also

http://www.nessus.org/u?83c215d0

http://www.nessus.org/u?9d4bce03

https://security.gentoo.org/glsa/200407-13

Plugin Details

Severity: Medium

ID: 14546

File Name: gentoo_GLSA-200407-13.nasl

Version: 1.22

Type: local

Published: 8/30/2004

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: High

Score: 8.5

CVSS v2

Risk Factor: Medium

Base Score: 6.8

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

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:mod_php, p-cpe:/a:gentoo:linux:php, p-cpe:/a:gentoo:linux:php-cgi, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 7/15/2004

Vulnerability Publication Date: 7/13/2004

Exploitable With

CANVAS (CANVAS)

Reference Information

CVE: CVE-2004-0594, CVE-2004-0595

GLSA: 200407-13