CVE-2006-3918: XSS

Published Jul 28, 2006
·
Updated

httpprotocol.c in (1) IBM HTTP Server 6.0 before 6.0.2.13 and 6.1 before 6.1.0.1, and (2) Apache HTTP Server 1.3 before 1.3.35, 2.0 before 2.0.58, and 2.2 before 2.2.2, does not sanitize the Expect header from an HTTP request when it is reflected back in an error message, which might allow cross-site scripting (XSS) style attacks using web client components that can send arbitrary headers in requests, as demonstrated using a Flash SWF file.

Other sources

In May 2006 a reporter found a bug in Apache where an invalid Expect header sent to the server (Apache 1.3.3 onwards) would be returned to the user in an error message, unescaped. This could allow a cross-site scripting attack only if a victim can tricked into connecting to a site and sending such a carefully crafted Expect header. Whist browsers do not provide this functionality, it was recently discovered that Flash allows you to make a connection with arbitrary headers. The attack mechanism is therefore:

1. User is tricked into visiting a malicious web site with a flash-enabled browser 2. Malicious web site uses a flash movie to make a connection to the target site with custom Expect header 3. This results in cross-site scripting (attacker could steal your cookies from the third party site, or inject content etc)

Note that this also affects RHEL2.1, and RHEL3.

On RHEL3 and RHEL4 the cross-site scripting does not happen immediately, step 3 is delayed until the Apache server times out. On a default installation this could be 2-5 minutes. Therefore the attack is less likely to succeed.

Patch: http://svn.apache.org/viewcvs?rev=394965&view=rev [1.3] http://svn.apache.org/viewcvs?rev=395172&view=rev [2.0]

— Red Hat

Affected Software

11 affected componentsFixes available
Apache HTTP Server>=1.3.3<1.3.35
Debian Debian Linux=3.1
Canonical Ubuntu Linux=6.06
Canonical Ubuntu Linux=6.10
Canonical Ubuntu Linux=7.04
Canonical Ubuntu Linux=7.10
redhat Enterprise Linux Server=2.0
redhat Enterprise Linux Workstation=2.0
redhat/httpd<1.3.35
1.3.35
debian/apache2
2.0.54-5sarge22.0.55-4.1
debian/apache
1.3.33-6sarge31.3.34-3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/httpd to a version that resolves this vulnerability.

    Fixed in 1.3.35
  2. Upgrade

    Upgrade debian/apache2 to a version that resolves this vulnerability.

    Fixed in 2.0.54-5sarge2Fixed in 2.0.55-4.1
  3. Upgrade

    Upgrade debian/apache to a version that resolves this vulnerability.

    Fixed in 1.3.33-6sarge3Fixed in 1.3.34-3
  4. Upgrade

    Upgrade Apache HTTP Server to a version that resolves this vulnerability.

    Fixed in 1.3.35
  5. Upgrade

    Upgrade Apache HTTP Server to a version that resolves this vulnerability.

    Fixed in 2.0.58
  6. Upgrade

    Upgrade Apache HTTP Server to a version that resolves this vulnerability.

    Fixed in 2.2.2
  7. Upgrade

    Upgrade IBM HTTP Server to a version that resolves this vulnerability.

    Fixed in 6.0.2.13
  8. Upgrade

    Upgrade IBM HTTP Server to a version that resolves this vulnerability.

    Fixed in 6.1.0.1

Event History

Jul 28, 2006
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
12:04 AM
DescriptionWeaknessAffected Software
Data Sourced
via NVD·12:04 AM
RemedyDescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·04:00 AM
Jul 31, 2006
Data Sourced
via Red Hat·12:49 PM
DescriptionSeverityAffected Software
Sep 21, 2022
Data Sourced
07:35 PM
RemedySeverity

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What are the implications of CVE-2006-3918?

CVE-2006-3918 allows attackers to exploit the Expect header vulnerability, potentially leading to cross-site scripting attacks.

2

How do I mitigate CVE-2006-3918 on my server?

To mitigate CVE-2006-3918, update your Apache HTTP Server to versions 1.3.35 or later, or 2.0.58 and later.

3

Which versions of software are affected by CVE-2006-3918?

CVE-2006-3918 affects IBM HTTP Server 6.0 before 6.0.2.13, Apache HTTP Server 1.3 before 1.3.35, and other versions prior to their secure releases.

4

Is CVE-2006-3918 a serious vulnerability?

Yes, CVE-2006-3918 is considered a serious vulnerability due to its potential for enabling cross-site scripting attacks.

5

What should I do if I cannot update to a patched version for CVE-2006-3918?

If you cannot update, you should implement proper filtering and sanitization of the Expect header to reduce the risk associated with CVE-2006-3918.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203