Lucene search

K
gentooGentoo FoundationGLSA-200603-22
HistoryMar 22, 2006 - 12:00 a.m.

PHP: Format string and XSS vulnerabilities

2006-03-2200:00:00
Gentoo Foundation
security.gentoo.org
21

5 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:L/Au:N/C:N/I:P/A:N

0.013 Low

EPSS

Percentile

86.0%

Background

PHP is a general-purpose scripting language widely used to develop web-based applications. It can run on a web server with the mod_php module or the CGI version and also stand-alone in a CLI.

Description

Stefan Esser of the Hardened PHP project has reported a few vulnerabilities found in PHP:

  • Input passed to the session ID in the session extension isn’t properly sanitised before being returned to the user via a “Set-Cookie” HTTP header, which can contain arbitrary injected data.
  • A format string error while processing error messages using the mysqli extension in version 5.1 and above.

Impact

By sending a specially crafted request, a remote attacker can exploit this vulnerability to inject arbitrary HTTP headers, which will be included in the response sent to the user. The format string vulnerability may be exploited to execute arbitrary code.

Workaround

There is no known workaround at this time.

Resolution

All PHP 5.x users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-lang/php-5.1.2"

All PHP 4.x users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-lang/php-4.4.2"
OSVersionArchitecturePackageVersionFilename
Gentooanyalldev-lang/php< 4.4.2UNKNOWN

5 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:L/Au:N/C:N/I:P/A:N

0.013 Low

EPSS

Percentile

86.0%