search menu icon-carat-right cmu-wordmark

CERT Coordination Center

Apache Tomcat fails to properly handle cookies containing single quotes

Vulnerability Note VU#993544

Original Release Date: 2007-08-14 | Last Revised: 2007-08-15

Overview

Apache Tomcat fails to properly handle cookies that contain a single quote, which may allow session hijacking.

Description

Apache Tomcat is an implementation of the Java Servlet and JavaServer Page (JSP) technologies. Apache Tomcat incorrectly treats a single quote as a cookie delimiter. This can cause the Tomcat cookie parsing mechanism to improperly handle all of the cookies in the cookie string that follow the cookie with the single quote. According to the vendor, the following versions of Apache Tomcat are affected

6.0.0 to 6.0.13
5.5.0 to 5.5.24
5.0.0 to 5.0.30
4.1.0 to 4.1.36
3.3 to 3.3.2

Impact

This vulnerability can increase the possibility of a session hijacking success. In the presense of a cross-site scripting vulnerability, it may allow a denial-of-service attack against a web site by preventing a client from being able to log in using cookies.

Solution

Apply an update

This vulnerability is addressed in Apache Tomcat 6.0.14. Please check the Apache Tomcat Security page for availability of fixes for this and other versions of Tomcat.

Vendor Information

993544
 

Apache Tomcat Affected

Notified:  July 02, 2007 Updated: August 14, 2007

Status

Affected

Vendor Statement

We have not received a statement from the vendor.

Vendor Information

The vendor has not provided us with any further information regarding this vulnerability.

Addendum

This vulnerability is addressed in Apache Tomcat 6.0.14. Please check the Apache Tomcat Security page for availability of fixes for this and other versions of Tomcat.

If you have feedback, comments, or additional information about this vulnerability, please send us email.


CVSS Metrics

Group Score Vector
Base
Temporal
Environmental

References

Acknowledgements

Thanks to Tomasz Kuczynski for reporting this vulnerability.

This document was written by Will Dormann.

Other Information

CVE IDs: CVE-2007-3382
Severity Metric: 4.61
Date Public: 2007-08-13
Date First Published: 2007-08-14
Date Last Updated: 2007-08-15 18:09 UTC
Document Revision: 6

Sponsored by CISA.