Vulnerability Note VU#867593
Web servers enable HTTP TRACE method by default
Overview
The HTTP TRACE method returns the contents of client HTTP requests in the entity-body of the TRACE response. Attackers could leverage this behavior to access sensitive information, such as cookies or authentication data, contained in the HTTP headers of the request.
Description
The HTTP TRACE method asks a web server to echo the contents of the request back to the client for debugging purposes. The HTTP TRACE method is described in the HTTP 1.1 standard (RFC 2616, section 9.8): 9.8 TRACE The TRACE method is used to invoke a remote, application-layer loop- back of the request message. The final recipient of the request SHOULD reflect the message received back to the client as the entity-body of a 200 (OK) response. ... If the request is valid, the response SHOULD contain the entire request message in the entity-body, with a Content-Type of "message/http". Responses to this method MUST NOT be cached. As defined above, the complete request, including HTTP headers, is returned in the entity-body of a TRACE response. Using features that provide client-side HTTP protocol support, such as XMLHTTP ActiveX or XMLDOM scripting objects, a web site can cause browsers to issue TRACE requests. The site can read the TRACE response, including sensitive header information such as cookies or authentication data. |
Impact
Attackers may abuse HTTP TRACE functionality to gain access to information in HTTP headers such as cookies and authentication data. In the presence of other cross-domain vulnerabilities in web browsers, sensitive header information could be read from any domains that support the HTTP TRACE method. |
Solution
Alternatively, use the Apache mod_rewrite module to deny HTTP TRACE requests or to permit only the methods needed to meet site requirements and policy. TRACE requests can be disabled with the following mod_rewrite syntax:
RewriteCond %{REQUEST_METHOD} ^TRACE RewriteRule .* - [F] Disabling HTTP TRACE with the TraceEnable directive is simpler, more direct, and requires less overhead than using mod_rewrite.
|
Systems Affected (Learn More)
| Vendor | Status | Date Notified | Date Updated |
|---|---|---|---|
| Apache | Affected | 08 Jan 2003 | 10 Jan 2003 |
| IBM Corporation | Affected | - | 22 Feb 2008 |
| Lotus Software | Affected | - | 22 Feb 2008 |
| Microsoft Corporation | Affected | 08 Jan 2003 | 23 Jan 2003 |
| Sun Microsystems, Inc. | Affected | 08 Jan 2003 | 17 Aug 2009 |
| BEA Systems Inc. | Unknown | - | 24 Feb 2003 |
| Oracle Corporation | Unknown | - | 24 Feb 2003 |
| Roxen Internet Software AB | Unknown | - | 24 Feb 2003 |
| thttpd | Unknown | - | 24 Feb 2003 |
CVSS Metrics (Learn More)
| Group | Score | Vector |
|---|---|---|
| Base | N/A | N/A |
| Temporal | N/A | N/A |
| Environmental | N/A | N/A |
References
- http://www.ietf.org/rfc/rfc2616.txt
- http://www.cgisecurity.com/whitehat-mirror/WH-WhitePaper_XST_ebook.pdf
- http://www.microsoft.com/technet/security/tools/urlscan.asp
- http://httpd.apache.org/docs/mod/mod_rewrite.html
- http://msdn.microsoft.com/workshop/author/dhtml/httponly_cookies.asp
- http://www.w3.org/DOM/
- http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/dhtml_node_entry.asp
- http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/cookie.asp
- http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/htm/xml_obj_ixmlhttprequest_8bp0.asp
- http://www.apacheweek.com/issues/03-01-24#news
- http://secunia.com/advisories/13090/
- http://sunsolve.sun.com/search/document.do?assetkey=1-26-57670-1
- http://sunsolve.sun.com/search/document.do?assetkey=1-66-200942-1
- http://www-1.ibm.com/support/docview.wss?&uid=swg21201202
Credit
This issue was researched and reported by Jeremiah Grossman of WhiteHat Security.
This document was written by Art Manion.
Other Information
- CVE IDs: Unknown
- Date Public: 20 Jan 2003
- Date First Published: 23 Jan 2003
- Date Last Updated: 17 Aug 2009
- Severity Metric: 3.71
- Document Revision: 48
Feedback
If you have feedback, comments, or additional information about this vulnerability, please send us email.