Apache HTTP Server environment variable configuration file buffer overflow
| apache-env-configuration-bo (17384) |
Description:
Apache HTTP Server is vulnerable to a buffer overflow when expanding environment variables in an .htaccess or httpd.conf configuration file. By creating a malicious configuration file, a local attacker with apache privileges could overflow a buffer and execute arbitrary code on the system, once the malicious file is parsed.
Platforms Affected:
- Apache, HTTP Server 2.0
- Apache, HTTP Server 2.0.28
- Apache, HTTP Server 2.0.32
- Apache, HTTP Server 2.0.35
- Apache, HTTP Server 2.0.36
- Apache, HTTP Server 2.0.37
- Apache, HTTP Server 2.0.38
- Apache, HTTP Server 2.0.39
- Apache, HTTP Server 2.0.40
- Apache, HTTP Server 2.0.41
- Apache, HTTP Server 2.0.42
- Apache, HTTP Server 2.0.43
- Apache, HTTP Server 2.0.44
- Apache, HTTP Server 2.0.45
- Apache, HTTP Server 2.0.46
- Apache, HTTP Server 2.0.47
- Apache, HTTP Server 2.0.48
- Apache, HTTP Server 2.0.49
- Apache, HTTP Server 2.0.50
- Apple, Mac OS X Server 10.2.8
- Apple, Mac OS X Server 10.3.6
- CA, ARCserve Backup 11.5 HP-UX
- CA, ARCserve Backup 11.5 AIX
- CA, ARCserve Backup 11.5 Tru64
- CA, ARCserve Backup 11.5 Solaris
- Compaq, Tru64 6.4
- Conectiva, Linux 10
- Conectiva, Linux 9.0
- Gentoo, Linux
- HP, HP-UX 11.00
- HP, HP-UX 11.11
- HP, HP-UX 11.22
- HP, HP-UX 11.23
- MandrakeSoft, Mandrake Linux 10.0
- MandrakeSoft, Mandrake Linux 10.0 AMD64
- MandrakeSoft, Mandrake Linux 9.2 AMD64
- MandrakeSoft, Mandrake Linux 9.2
- RedHat, Enterprise Linux 3 Desktop
- RedHat, Enterprise Linux 3 AS
- RedHat, Enterprise Linux 3 ES
- RedHat, Enterprise Linux 3 WS
- SuSE, Linux Enterprise Server 9
- SuSE, SuSE Linux 8.1
- SuSE, SuSE Linux 8.2
- SuSE, SuSE Linux 9.0
- SuSE, SuSE Linux 9.1
- SuSE, SuSE SLES 9
- Trustix, Enterprise Server 2
- Trustix, Secure Linux 2.0
- Trustix, Secure Linux 2.1
- Turbolinux, Turbolinux 10 Desktop
- Turbolinux, Turbolinux 10 F...
Remedy:
Upgrade to the latest version of Apache HTTP Server (2.0.51 or later), available from the Apache HTTP Server Web site. See References.
For Red Hat Desktop and Red Hat Enterprise Linux AS, ES and WS:
Upgrade to the latest httpd package (2.0.46-40 or later), available from RHSA-2004:463-09. See References.
For SuSE Linux:
Upgrade to the latest httpd package, as listed below. Refer to SuSE Security Announcement SUSE-SA:2004:032 for more information. See References.
SuSE Linux 9.1: 2.0.49-27.14 or later
SuSE Linux 9.0: 2.0.48-139 or later
SuSE Linux 8.2: 2.0.48-139 or later
SuSE Linux 8.1: 2.0.48-139 or later
For Mandrake Linux:
Upgrade to the latest apache2 package, as listed below. Refer to MandrakeSoft Security Advisory MDKSA-2004:096 : apache2 for more information. See References.
Mandrake Linux 9.2: 2.0.47-6.9.92mdk or later
Mandrake Linux 10.0: 2.0.48-6.6.100mdk or later
For Turbolinux:
Upgrade to the latest httpd package, as listed below. Refer to Turbolinux Security Advisory TLSA-2004-28 for more information. See References.
Turbolinux 10 Desktop: 2.0.48-6 or later
For Trustix Secure Linux:
Upgrade to the latest apache package, as listed below. Refer to Trustix Secure Linux Security Advisory #2004-0047 for more information. See References.
Trustix Secure Linux 2.0: 2.0.51-0.1tr or later
Trustix Secure Linux 2.1 and Enterprise Server 2: 2.0.51-1tr or later
For Gentoo Linux:
Upgrade to the latest version of apache (2.0.51, < 2.0 or later) or mod_dav (1.0.3-r2 or later), as listed in GLSA 200409-21. See References.
For Conectiva Linux:
Upgrade to the latest apache package, as listed below. Refer to Conectiva Linux Security Announcement CLSA-2004:868 for more information. See References.
Conectiva Linux 10: 2.0.49-61251U10_1cl or later
Conectiva Linux 9: 2.0.45-28790U90_8cl or later
For HP 11.00, 11.11, 11.22, and 11.23:
Apply the appropriate patch for your system, as listed in Hewlett-Packard Company Security Bulletin HPSBUX01090 for more information. See References.
For HP Tru64UNIX 6.4:
Apply the appropriate patch for your system, as listed in Hewlett-Packard Company Security Bulletin HPSBUX01090 for more information. See References.
For Mac OS:
Apply Security Update 2004-12-02, as listed in AppleCare Knowledge Base Document 61798. See References.
For other distributions:
Apply the appropriate update for your system. See References.
Consequences:
Gain Privileges
References:
- AppleCare Knowledge Base Document 61798, Security Update 2004-12-02 at http://docs.info.apple.com/article.html?artnum=61798.
- CA20090429-01, Security Notice for CA ARCserve Backup Apache HTTP Server at https://support.ca.com/irj/portal/anonymous/phpsupcontent?contentID=205147.
- CIAC Information Bulletin P-049, Apple Security Update 2004-12-02 at http://www.ciac.org/ciac/bulletins/p-049.shtml.
- Conectiva Linux Security Announcement CLSA-2004:868, Several vulnerabilities in apache, mod_ssl and mod_dav at http://distro.conectiva.com.br/atualizacoes/index.php?id=a&anuncio=000868.
- IBM Systems Support Web site, Support for HMC at https://www14.software.ibm.com/webapp/set2/sas/f/hmc/power5/install/v61.Readme.html#MH01110.
- SITIC Vulnerability Advisory SA04-002, Apache config file env variable buffer overflow at http://archives.neohapsis.com/archives/fulldisclosure/2004-09/0501.html.
- Trustix Secure Linux Security Advisory #2004-0047, Several security holes at http://www.trustix.net/errata/2004/0047/.
- UNIRAS (UK Govt CERT) ALERT - 34/04, Vulnerability Issues with the Apache Web Server at http://www.uniras.gov.uk/niscc/docs/re-20040915-00592.pdf?lang=en.
- BID-11182: Apache Web Server Configuration File Environment Variable Local Buffer Overflow Vulnerability
- CVE-2004-0747: Buffer overflow in Apache 2.0.50 and earlier allows local users to gain apache privileges via a .htaccess file that causes the overflow during expansion of environment variables.
- GLSA-200409-21: Apache 2, mod_dav: Multiple vulnerabilities
- MDKSA-2004:096: Updated apache2 packages fix multiple vulnerabilities
- RHSA-2004-463: httpd security update
- SA12540: Apache apr-util Library and Environment Variable Expansion Vulnerabilities
- SA34920: CA ARCserve Backup Apache HTTP Server Multiple Vulnerabilities
- SECTRACK ID: 1011303: Apache ap_resolve_env() Buffer Overflow in Reading Configuration Files May Let Local Users Gain Elevated Privileges
- SUSE-SA:2004:032: apache2: remote denial-of-service
Reported:
Sep 15, 2004
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
