ID CVE-2012-0807
Summary Stack-based buffer overflow in the suhosin_encrypt_single_cookie function in the transparent cookie-encryption feature in the Suhosin extension before 0.9.33 for PHP, when suhosin.cookie.encrypt and suhosin.multiheader are enabled, might allow remote attackers to execute arbitrary code via a long string that is used in a Set-Cookie HTTP header.
References
Vulnerable Configurations
  • hardened-php project Suhosin extenstion for PHP BETA 2006.09.07
    cpe:2.3:a:hardened-php:suhosin:-:beta_2006.09.07
  • hardened-php project Suhosin extenstion for PHP BETA 2006.09.09
    cpe:2.3:a:hardened-php:suhosin:-:beta_2006.09.09
  • hardened-php project Suhosin extenstion for PHP 0.9.0
    cpe:2.3:a:hardened-php:suhosin:0.9.0
  • hardened-php project Suhosin extenstion for PHP 0.9.1
    cpe:2.3:a:hardened-php:suhosin:0.9.1
  • hardened-php project Suhosin extenstion for PHP 0.9.2
    cpe:2.3:a:hardened-php:suhosin:0.9.2
  • hardened-php project Suhosin extenstion for PHP 0.9.3
    cpe:2.3:a:hardened-php:suhosin:0.9.3
  • hardened-php project Suhosin extenstion for PHP 0.9.4
    cpe:2.3:a:hardened-php:suhosin:0.9.4
  • hardened-php project Suhosin extenstion for PHP 0.9.5
    cpe:2.3:a:hardened-php:suhosin:0.9.5
  • hardened-php project Suhosin extenstion for PHP 0.9.6
    cpe:2.3:a:hardened-php:suhosin:0.9.6
  • hardened-php project Suhosin extenstion for PHP 0.9.6.1
    cpe:2.3:a:hardened-php:suhosin:0.9.6.1
  • hardened-php project Suhosin extenstion for PHP 0.9.6.2
    cpe:2.3:a:hardened-php:suhosin:0.9.6.2
  • hardened-php project Suhosin extenstion for PHP 0.9.6.3
    cpe:2.3:a:hardened-php:suhosin:0.9.6.3
  • hardened-php project Suhosin extenstion for PHP 0.9.7
    cpe:2.3:a:hardened-php:suhosin:0.9.7
  • hardened-php project Suhosin extenstion for PHP 0.9.8
    cpe:2.3:a:hardened-php:suhosin:0.9.8
  • hardened-php project Suhosin extenstion for PHP 0.9.9
    cpe:2.3:a:hardened-php:suhosin:0.9.9
  • hardened-php project Suhosin extenstion for PHP 0.9.9.1
    cpe:2.3:a:hardened-php:suhosin:0.9.9.1
  • hardened-php project Suhosin extenstion for PHP 0.9.10
    cpe:2.3:a:hardened-php:suhosin:0.9.10
  • hardened-php project Suhosin extenstion for PHP 0.9.11
    cpe:2.3:a:hardened-php:suhosin:0.9.11
  • hardened-php project Suhosin extenstion for PHP 0.9.12
    cpe:2.3:a:hardened-php:suhosin:0.9.12
  • hardened-php project Suhosin extenstion for PHP 0.9.13
    cpe:2.3:a:hardened-php:suhosin:0.9.13
  • hardened-php project Suhosin extenstion for PHP 0.9.14
    cpe:2.3:a:hardened-php:suhosin:0.9.14
  • hardened-php project Suhosin extenstion for PHP 0.9.15
    cpe:2.3:a:hardened-php:suhosin:0.9.15
  • hardened-php project Suhosin extenstion for PHP 0.9.16
    cpe:2.3:a:hardened-php:suhosin:0.9.16
  • hardened-php project Suhosin extenstion for PHP 0.9.17
    cpe:2.3:a:hardened-php:suhosin:0.9.17
  • hardened-php project Suhosin extenstion for PHP 0.9.18
    cpe:2.3:a:hardened-php:suhosin:0.9.18
  • hardened-php project Suhosin extenstion for PHP 0.9.19
    cpe:2.3:a:hardened-php:suhosin:0.9.19
  • hardened-php project Suhosin extenstion for PHP 0.9.20
    cpe:2.3:a:hardened-php:suhosin:0.9.20
  • hardened-php project Suhosin extenstion for PHP 0.9.21
    cpe:2.3:a:hardened-php:suhosin:0.9.21
  • hardened-php project Suhosin extenstion for PHP 0.9.22
    cpe:2.3:a:hardened-php:suhosin:0.9.22
  • hardened-php project Suhosin extenstion for PHP 0.9.23
    cpe:2.3:a:hardened-php:suhosin:0.9.23
  • hardened-php project Suhosin extenstion for PHP 0.9.24
    cpe:2.3:a:hardened-php:suhosin:0.9.24
  • hardened-php project Suhosin extenstion for PHP 0.9.25
    cpe:2.3:a:hardened-php:suhosin:0.9.25
  • hardened-php project Suhosin extenstion for PHP 0.9.26
    cpe:2.3:a:hardened-php:suhosin:0.9.26
  • hardened-php project Suhosin extenstion for PHP 0.9.27
    cpe:2.3:a:hardened-php:suhosin:0.9.27
  • hardened-php project Suhosin extenstion for PHP 0.9.28
    cpe:2.3:a:hardened-php:suhosin:0.9.28
  • hardened-php project Suhosin extenstion for PHP 0.9.29
    cpe:2.3:a:hardened-php:suhosin:0.9.29
  • hardened-php project Suhosin extenstion for PHP 0.9.30
    cpe:2.3:a:hardened-php:suhosin:0.9.30
  • hardened-php project Suhosin extenstion for PHP 0.9.31
    cpe:2.3:a:hardened-php:suhosin:0.9.31
CVSS
Base: 5.1 (as of 27-01-2012 - 13:00)
Impact:
Exploitability:
CWE CWE-119
CAPEC
  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
  • Overflow Binary Resource File
    An attack of this type exploits a buffer overflow vulnerability in the handling of binary resources. Binary resources may include music files like MP3, image files like JPEG files, and any other binary file. These attacks may pass unnoticed to the client machine through normal usage of files, such as a browser loading a seemingly innocent JPEG file. This can allow the attacker access to the execution stack and execute arbitrary code in the target process. This attack pattern is a variant of standard buffer overflow attacks using an unexpected vector (binary files) to wrap its attack and open up a new attack vector. The attacker is required to either directly serve the binary content to the victim, or place it in a locale like a MP3 sharing application, for the victim to download. The attacker then is notified upon the download or otherwise locates the vulnerability opened up by the buffer overflow.
  • Buffer Overflow via Symbolic Links
    This type of attack leverages the use of symbolic links to cause buffer overflows. An attacker can try to create or manipulate a symbolic link file such that its contents result in out of bounds data. When the target software processes the symbolic link file, it could potentially overflow internal buffers with insufficient bounds checking.
  • Overflow Variables and Tags
    This type of attack leverages the use of tags or variables from a formatted configuration data to cause buffer overflow. The attacker crafts a malicious HTML page or configuration file that includes oversized strings, thus causing an overflow.
  • Buffer Overflow via Parameter Expansion
    In this attack, the target software is given input that the attacker knows will be modified and expanded in size during processing. This attack relies on the target software failing to anticipate that the expanded data may exceed some internal limit, thereby creating a buffer overflow.
  • Buffer Overflow in an API Call
    This attack targets libraries or shared code modules which are vulnerable to buffer overflow attacks. An attacker who has access to an API may try to embed malicious code in the API function call and exploit a buffer overflow vulnerability in the function's implementation. All clients that make use of the code library thus become vulnerable by association. This has a very broad effect on security across a system, usually affecting more than one software process.
  • Buffer Overflow in Local Command-Line Utilities
    This attack targets command-line utilities available in a number of shells. An attacker can leverage a vulnerability found in a command-line utility to escalate privilege to root.
Access
VectorComplexityAuthentication
NETWORK HIGH NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
nessus via4
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201412-10.NASL
    description The remote host is affected by the vulnerability described in GLSA-201412-10 (Multiple packages, Multiple vulnerabilities fixed in 2012) Vulnerabilities have been discovered in the packages listed below. Please review the CVE identifiers in the Reference section for details. EGroupware VTE Layer Four Traceroute (LFT) Suhosin Slock Ganglia Jabber to GaduGadu Gateway Impact : A context-dependent attacker may be able to gain escalated privileges, execute arbitrary code, cause Denial of Service, obtain sensitive information, or otherwise bypass security restrictions. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2015-04-13
    plugin id 79963
    published 2014-12-15
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=79963
    title GLSA-201412-10 : Multiple packages, Multiple vulnerabilities fixed in 2012
  • NASL family Mandriva Local Security Checks
    NASL id MANDRIVA_MDVSA-2012-065.NASL
    description Multiple vulnerabilities has been identified and fixed in php : The PDORow implementation in PHP before 5.3.9 does not properly interact with the session feature, which allows remote attackers to cause a denial of service (application crash) via a crafted application that uses a PDO driver for a fetch and then calls the session_start function, as demonstrated by a crash of the Apache HTTP Server (CVE-2012-0788). Note: this was fixed with php-5.3.10 The php_register_variable_ex function in php_variables.c in PHP 5.3.9 allows remote attackers to execute arbitrary code via a request containing a large number of variables, related to improper handling of array variables. NOTE: this vulnerability exists because of an incorrect fix for CVE-2011-4885 (CVE-2012-0830). Note: this was fixed with php-5.3.10 PHP before 5.3.10 does not properly perform a temporary change to the magic_quotes_gpc directive during the importing of environment variables, which makes it easier for remote attackers to conduct SQL injection attacks via a crafted request, related to main/php_variables.c, sapi/cgi/cgi_main.c, and sapi/fpm/fpm/fpm_main.c (CVE-2012-0831). Insufficient validating of upload name leading to corrupted $_FILES indices (CVE-2012-1172). The updated php packages have been upgraded to 5.3.11 which is not vulnerable to these issues. Stack-based buffer overflow in the suhosin_encrypt_single_cookie function in the transparent cookie-encryption feature in the Suhosin extension before 0.9.33 for PHP, when suhosin.cookie.encrypt and suhosin.multiheader are enabled, might allow remote attackers to execute arbitrary code via a long string that is used in a Set-Cookie HTTP header (CVE-2012-0807). The php-suhosin packages has been upgraded to the 0.9.33 version which is not affected by this issue. Additionally some of the PECL extensions has been upgraded to their latest respective versions which resolves various upstream bugs.
    last seen 2019-02-21
    modified 2019-01-02
    plugin id 58890
    published 2012-04-27
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=58890
    title Mandriva Linux Security Advisory : php (MDVSA-2012:065)
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2012-182.NASL
    description php5 security update
    last seen 2018-11-13
    modified 2018-11-10
    plugin id 74580
    published 2014-06-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=74580
    title openSUSE Security Update : php5 (openSUSE-SU-2012:0426-1)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_APACHE2-MOD_PHP53-120309.NASL
    description This update of PHP5 fixes multiple security flaws : - missing checks of return values could allow remote attackers to cause a denial of service (NULL pointer dereference). (CVE-2011-4153) - specially crafted XSLT stylesheets could allow remote attackers to create arbitrary files with arbitrary content. (CVE-2012-0057) - a stack-based buffer overflow in php5's Suhosin extension could allow remote attackers to execute arbitrary code via a long string that is used in a Set-Cookie HTTP header. (CVE-2012-0807) - temporary changes to the magic_quotes_gpc directive during the importing of environment variables is not properly performed which makes it easier for remote attackers to conduct SQL injections. (CVE-2012-0831)
    last seen 2019-02-21
    modified 2018-06-29
    plugin id 58615
    published 2012-04-06
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=58615
    title SuSE 11.2 Security Update : PHP5 (SAT Patch Number 5958)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_APACHE2-MOD_PHP5-120309.NASL
    description This update of php5 fixes multiple security flaws : - A php5 upload filename injection was fixed. (CVE-2011-2202) - A integer overflow in the EXIF extension was fixed that could be used by attackers to crash the interpreter or potentially read memory. (CVE-2011-4566) - Multiple NULL pointer dereferences were fixed that could lead to crashes. (CVE-2011-3182) - An integer overflow in the PHP calendar extension was fixed that could have led to crashes. (CVE-2011-1466) - A symlink vulnerability in the PEAR installer could be exploited by local attackers to inject code. (CVE-2011-1072) - missing checks of return values could allow remote attackers to cause a denial of service (NULL pointer dereference). (CVE-2011-4153) - denial of service via hash collisions. (CVE-2011-4885) - specially crafted XSLT stylesheets could allow remote attackers to create arbitrary files with arbitrary content. (CVE-2012-0057) - remote attackers can cause a denial of service via specially crafted input to an application that attempts to perform Tidy::diagnose operations. (CVE-2012-0781) - applications that use a PDO driver were prone to denial of service flaws which could be exploited remotely. (CVE-2012-0788) - memory leak in the timezone functionality could allow remote attackers to cause a denial of service (memory consumption). (CVE-2012-0789) - a stack-based buffer overflow in the php5 Suhosin extension could allow remote attackers to execute arbitrary code via a long string that is used in a Set-Cookie HTTP header. (CVE-2012-0807) - this fixes an incorrect fix for CVE-2011-4885 which could allow remote attackers to execute arbitrary code via a request containing a large number of variables. (CVE-2012-0830) - temporary changes to the magic_quotes_gpc directive during the importing of environment variables is not properly performed which makes it easier for remote attackers to conduct SQL injections. (CVE-2012-0831) Also the following bugs have been fixed : - allow uploading files bigger than 2GB for 64bit systems [bnc#709549] - amend README.SUSE to discourage using apache module with apache2-worker [bnc#728671]
    last seen 2019-02-21
    modified 2018-06-29
    plugin id 58740
    published 2012-04-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=58740
    title SuSE 11.1 Security Update : PHP5 (SAT Patch Number 5964)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_APACHE2-MOD_PHP5-8009.NASL
    description This update of php5 fixes multiple security flaws : - missing checks of return values could allow remote attackers to cause a denial of service (NULL pointer dereference). (CVE-2011-4153) - denial of service via hash collisions. (CVE-2011-4885) - specially crafted XSLT stylesheets could allow remote attackers to create arbitrary files with arbitrary content. (CVE-2012-0057) - remote attackers can cause a denial of service via specially crafted input to an application that attempts to perform Tidy::diagnose operations. (CVE-2012-0781) - applications that use a PDO driver were prone to denial of service flaws which could be exploited remotely. (CVE-2012-0788) - memory leak in the timezone functionality could allow remote attackers to cause a denial of service (memory consumption). (CVE-2012-0789) - a stack-based buffer overflow in php5's Suhosin extension could allow remote attackers to execute arbitrary code via a long string that is used in a Set-Cookie HTTP header. (CVE-2012-0807) - this fixes an incorrect fix for CVE-2011-4885 which could allow remote attackers to execute arbitrary code via a request containing a large number of variables. (CVE-2012-0830) - temporary changes to the magic_quotes_gpc directive during the importing of environment variables is not properly performed which makes it easier for remote attackers to conduct SQL injections. (CVE-2012-0831)
    last seen 2019-02-21
    modified 2018-06-29
    plugin id 58480
    published 2012-03-26
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=58480
    title SuSE 10 Security Update : PHP5 (ZYPP Patch Number 8009)
refmap via4
confirm
fulldisc 20120119 Advisory 01/2012: Suhosin PHP Extension Transparent Cookie Encryption Stack Buffer Overflow
mlist
  • [oss-security] 20120124 CVE requests: Suhosin extension / as31
  • [oss-security] 20120124 Re: CVE requests: Suhosin extension / as31
secunia 48668
suse
  • SUSE-SU-2012:0411
  • SUSE-SU-2012:0472
  • openSUSE-SU-2012:0426
Last major update 27-06-2012 - 23:41
Published 26-01-2012 - 19:55
Last modified 17-01-2018 - 21:29
Back to Top