Apache HTTP Server error log terminal escape sequence injection
| apache-esc-seq-injection (11412) |
Description:
Apache HTTP Server fails to filter terminal escape sequences from error logs. Escape sequences are a series of characters that begin with the ASCII (0x1B) sequence and are followed by a series of arguments. If a remote attacker could inject escape sequences into an Apache error log, the attacker could take advantages of weaknesses in many terminal emulator software packages and launch further attacks against remote users. This could include denial of service attacks, file modification, data modification, and possibly the execution of arbitrary commands.
Platforms Affected:
- Apache, HTTP Server
- Apple, Mac OS X 10.2.8
- Apple, Mac OS X 10.3.6
- Apple, Mac OS X Server 10.2.8
- Apple, Mac OS X Server 10.3.6
- Compaq, Tru64 5.1b
- Conectiva, Linux 8.0
- Conectiva, Linux 9.0
- Gentoo, Linux
- HP, HP-UX 11.04
- MandrakeSoft, Mandrake Linux 10.0
- MandrakeSoft, Mandrake Linux 10.0 AMD64
- MandrakeSoft, Mandrake Linux 9.1 PPC
- MandrakeSoft, Mandrake Linux 9.1
- MandrakeSoft, Mandrake Linux 9.2 AMD64
- MandrakeSoft, Mandrake Linux 9.2
- MandrakeSoft, Mandrake Linux Corporate Server 2.1 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 2.1
- MandrakeSoft, Mandrake Multi Network Firewall 8.2
- Novell, UnitedLinux 1.0
- OpenPKG, OpenPKG 1.3
- OpenPKG, OpenPKG 2.0
- OpenPKG, OpenPKG CURRENT
- RedHat, Enterprise Linux 2.1 AS
- RedHat, Enterprise Linux 2.1 WS
- RedHat, Enterprise Linux 2.1 ES
- RedHat, Linux 7.1
- RedHat, Linux 7.2
- RedHat, Linux 7.3
- RedHat, Linux 8.0
- RedHat, Linux 9.0
- RedHat, Linux Advanced Workstation 2.1 Itanium
- RedHat, Stronghold
- SGI, IRIX 2.2.1
- SGI, IRIX 2.3
- Slackware, Slackware Linux 8.1
- Slackware, Slackware Linux 9.0
- Slackware, Slackware Linux 9.1
- Slackware, Slackware Linux current
- Sun, Solaris 8
- Sun, Solaris 9
- SuSE, SuSE Linux 8.1
- SuSE, SuSE Linux 9.0
- SuSE, SuSE Linux 9.1
- SuSE, SuSE Linux Connectivity Server
- SuSE, SuSE Linux Database Server
- SuSE, SuSE Linux Desktop 1.0
- SuSE, SuSE Linux Enterprise Server 7.0
- SuSE, SuSE Linux Office Server
- Trustix, Secure Linux 1.5
- Trustix, Secure Linux 2.0
- Trustix, Secure Linux 2.1
- Turbolinux, Turbolinux 10 Desktop
- Turbolinux, Turbolinux 7 Server
- Turbolinux, Turbolinux 7 Workstation
- Turbolinux, Turbolinux 8 Server
- Turbolinux, Turbolinux 8 Workstation
- Turbolinux, Turbolinux Advanced Server 6
- Turbolinux, Turbolinux Appliance Server 1.0 Hosting Ed
- Turbolinux, Turbolinux Appliance Server 1.0 Workgroup Ed
- Turbolinux, Turbolinux Server 6.1
- Turbolinux, Turbolinux Server 6.5
- Turbolinux, Turbolinux Workstation 6.0
Remedy:
For Red Hat Linux:
Upgrade to the latest httpd package, as listed below. Refer to RHSA-2003:139-07 for more information. See References.
Red Hat 8.0: 2.0.40-11.3 or later
Red Hat 9: 2.0.40-21.1 or later
Red Hat 7.1: 1.3.27-2.7.1 or later
Red Hat 7.2: 1.3.27-2.7.2 or later
Red Hat 7.3: 1.3.27-3 or later
For SGI IRIX:
Apply the patch for this vulnerability, as listed in SGI Security Advisory 20031002-01-U. See References.
For Trustix Secure Linux:
Upgrade to the latest apache package, as listed below. Refer to Trustix Secure Linux Security Advisory #2004-0017 for more information. See References.
Trustix Secure Linux 2.0: 2.0.49-2tr or later
Trustix Secure Linux 2.1: 2.0.49-2tr or later
For Turbolinux:
Upgrade to the latest httpd package, as listed below. Refer to Turbolinux Security Advisory TLSA-2004-11 for more information. See References.
Turbolinux 10 Desktop: 2.0.47-8 or later
For Trustix Secure Linux:
Upgrade to the latest apache package, as listed below. Refer to Trustix Secure Linux Security Advisory #2004-0027 for more information. See References.
Trustix Secure Linux 1.5: 1.3.31-1tr or later
For Conectiva Linux:
Upgrade to the latest apache package, as listed below. Refer to Conectiva Linux Security Announcement CLSA-2004:839. See References.
Conectiva Linux 8: 1.3.28-1U80_3cl or later
Conectiva Linux 9: 2.0.45-2879OU90_6cl or later
For Slackware Linux:
Upgrade to the latest apache package, as listed below. Refer to slackware-security Mailing List, Wed, 12 May 2004 16:54:58 -0700 (PDT) for more information. See References.
Slackware Linux 8.1 and 9.0: 1.3.29-i386-2 or later
Slackware Linux 9.1: 1.3.29-i486-2 or later
Slackware Linux -current: 1.3.31-i486-1
For Mandrake Linux:
Upgrade to the latest apache package, as listed below. Refer to MandrakeSoft Security Advisory MDKSA-2004:046 : apache for more information. See References.
Mandrake Linux 9.1: 1.3.27_1.3.4-7.1.91mdk or later
Mandrake Linux 9.2: 1.3.28_1.3.4-1.1.92mdk or later
Mandrake Linux Multi Network Firewall 8.2: 1.3.23-4.4.M82mdk or later
Mandrake Linux Corporate Server 2.1: 1.3.26-7.1.C21mdk or later
Mandrake Linux 10.0: 1.3.29-1.1.100mdk or later
For Gentoo Linux:
Upgrade to the latest version of apache (1.3.31 or later), as listed in GLSA 200405-22. See References.
For HP Tru64 UNIX 5.1B:
Apply the appropriate Early Release Patches (ERPs) for your system, as listed in HP Security Bulletin HPSBTU01049. See References.
For HP-UX B.11.04 with Virtualvault 4.7, Virtualvault 4.6, or Virtualvault 4.5:
Apply the appropriate patches for your system, as listed in HP Security Bulletin HPSBUX01069. See References.
For Sun Solaris:
Apply the appropriate patch for your system, as listed below. Refer to Sun Alert ID: 57628 for more information. See References.
SPARC Platform
Solaris 8 with patch 116973-01 or later
Solaris 9 with patch 113146-05 or later
x86 Platform
Solaris 8 with patch 116974-01 or later
Solaris 9 with patch 114145-04 or later
For Mac OS:
Apply Security Update 2004-12-02, as listed in AppleCare Knowledge Base Document 61798. See References.
For OpenPKG:
Refer to OpenPKG Security Advisory OpenPKG-SA-2004.021 for patch, upgrade, or suggested workaround information. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
Consequences:
Gain Access
References:
- AppleCare Knowledge Base Document 61798, Security Update 2004-12-02 at http://docs.info.apple.com/article.html?artnum=61798.
- CIAC Information Bulletin N-146, Apache 2.0.47 Release Fixes Security Vulnerabilities at http://www.ciac.org/ciac/bulletins/n-146.shtml.
- CIAC Information Bulletin O-128, Apache HTTP Server 2.0.49 Release Fixes Security Vulnerabilities at http://www.ciac.org/ciac/bulletins/o-128.shtml.
- CIAC Information Bulletin O-128, Apache HTTP Server 2.0.49 Release Fixes Security Vulnerabilities [REVISED 4 Aug 2004] at http://www.ciac.org/ciac/bulletins/o-128.shtml.
- CIAC Information Bulletin O-128, Apache HTTP Server 2.0.49 Release Fixes Security Vulnerabilities [REVISED 7 July 2004] at http://www.ciac.org/ciac/bulletins/o-128.shtml.
- CIAC Information Bulletin O-138, Apple Mac OS X Jaguar and Panther Security Vulnerabilities at http://www.ciac.org/ciac/bulletins/o-138.shtml.
- 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:839, DoS in mod_ssl and log escape sequences vulnerability at http://distro.conectiva.com/atualizacoes/index.php?id=a&anuncio=000839.
- GLSA 200405-22, Apache 1.3: Multiple vulnerabilities at http://www.linuxsecurity.com/content/view/106111/104/.
- SGI Security Advisory 20031002-01-U, SGI Advanced Linux Environment security update #3 at ftp://patches.sgi.com/support/free/security/advisories/20031002-01-U.asc.
- slackware-security Mailing List, Wed, 12 May 2004 16:54:58 -0700 (PDT), apache (SSA:2004-133-01) at http://www.slackware.org/security/viewer.php?l=slackware-security&y=2004&m=slackware-security.529643.
- Sun Alert ID: 57628, Security Vulnerabilities in the Apache Web Server and Apache Modules at http://sunsolve.sun.com/search/document.do?assetkey=1-26-57628-1&searchclause=.
- Sun Alert ID: 57628, Security Vulnerabilities in the Apache Web Server and Apache Modules at http://sunsolve.sun.com/search/document.do?assetkey=1-26-57628-1&searchclause=.
- Trustix Secure Linux Security Advisory #2004-0017, apache at http://www.linuxsecurity.com/content/view/105880/109/. (From LinuxSecurity archive)
- Trustix Secure Linux Security Advisory #2004-0027, apache at http://www.linuxsecurity.com/content/view/106042/109/.
- VulnWatch Mailing List, Mon Feb 24 2003 - 15:02:52 CST , Terminal Emulator Security Issues at http://archives.neohapsis.com/archives/vulnwatch/2003-q1/0093.html.
- BID-9930: Apache Error Log Escape Sequence Injection Vulnerability
- CVE-2003-0020: Apache does not filter terminal escape sequences from its error logs, which could make it easier for attackers to insert those sequences into terminal emulators containing vulnerabilities related to escape sequences.
- GLSA-200405-22: Apache 1.3: Multiple vulnerabilities
- MDKSA-2003:050: Updated apache packages fix denial of service vulnerabilities
- MDKSA-2004:046: Updated apache packages fix a number of vulnerabilities
- OpenPKG-SA-2004.021: Apache
- RHSA-2003-083: apache security update for Stronghold
- RHSA-2003-139: Updated httpd packages fix security vulnerabilities.
- RHSA-2003-243: Updated Apache and mod_ssl packages fix security vulnerabilities
- RHSA-2003-244: apache security update
- SUSE-SA:2003:014: kdelibs: remote file creation
- SUSE-SA:2004:008: cvs: remote code execution
- SUSE-SA:2004:009: Linux Kernel: local privilege escalation / information leakage
- SUSE-SA:2004:012: mc: local privilege escalation
- SUSE-SA:2004:015: cvs: remote command execution
Reported:
Feb 24, 2003
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 (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.
Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.
For corrections or additions please email xforce@iss.net
