Vulnerability Tutorial - Cross site tracing
  Updated: 02/12/10     (YELLOW light)  
Impact
A malicious web site could cause a user to reveal sensitive information through a specially crafted link to the vulnerable server.
Background
Many web servers support the TRACE request method, which causes the server to simply echo an HTTP request back to the client unchanged.
The Problem
02/12/10

The response to a TRACE request includes the HTTP headers sent by the client, which could include sensitive information such as cookies. Although it is not a concern for a user to see the headers being sent by his or her own browser, a user could be tricked into sending these headers to an attacker by following a specially-crafted link on another web server. This vulnerability is known as cross-site tracing, which is a variant of the well-known cross-site scripting vulnerability. A web server which is vulnerable to cross-site tracing could be exploited by a malicious web site to trick an unsuspecting user into revealing sensitive information to an attacker.

Related CVE entries:
CVE 2004-2320 BEA WebLogic
CVE 2009-2823 Mac OS cross-site tracing
CVE 2010-0386 Sun Java System Application Server cross-site tracing

Resolution
Cross-site tracing can be fixed by disabling the TRACE request method. If this is not an option for your web server, install a vendor fix or use one of the following workarounds:
  • Microsoft IIS: Use URL Scan to filter both TRACE and TRACK requests.
  • Apache: Enable the mod_rewrite module, and add the following lines to the configuration file:
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} ^TRACE
    RewriteRule .* - [F]
  • iPlanet: Disabling the TRACE request method currently requires making a change to a shared object library. See the White Paper for details.
  • BEA WebLogic Server and Express: Upgrade and apply the appropriate patch described in the BEA Advisory BEA04-48.01.
  • Sun Java System Application Server Upgrade to enterprise edition 8.2 or higher when available.
More Information
Sun Java System Application Server cross-site tracing was reported in Bugtraq ID 37995, and US-CERT Vulnerability Note VU#867593.

Mac OS cross-site tracing was reported in Apple article HT3937.

Cross-site tracing was reported in a White Paper from White Hat Security.