Apache HTTP Server error log terminal escape sequence injection

apache-esc-seq-injection (11412) The risk level is classified as MediumMedium Risk

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

Upgrade to the latest apache package, as listed below. Refer to RHSA-2003:243-07 for more information. See References.

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:

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

Return to the main page