CVE-2006-3918: XSS
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/httpdto a version that resolves this vulnerability.Fixed in 1.3.35 - Upgrade
Upgrade
debian/apache2to a version that resolves this vulnerability.Fixed in 2.0.54-5sarge2Fixed in 2.0.55-4.1 - Upgrade
Upgrade
debian/apacheto a version that resolves this vulnerability.Fixed in 1.3.33-6sarge3Fixed in 1.3.34-3 - Upgrade
Upgrade
Apache HTTP Serverto a version that resolves this vulnerability.Fixed in 1.3.35 - Upgrade
Upgrade
Apache HTTP Serverto a version that resolves this vulnerability.Fixed in 2.0.58 - Upgrade
Upgrade
Apache HTTP Serverto a version that resolves this vulnerability.Fixed in 2.2.2 - Upgrade
Upgrade
IBM HTTP Serverto a version that resolves this vulnerability.Fixed in 6.0.2.13 - Upgrade
Upgrade
IBM HTTP Serverto a version that resolves this vulnerability.Fixed in 6.1.0.1
Event History
Frequently Asked Questions
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.
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.
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.
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.
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.