vendor:
Apache Tomcat
by:
Deniz Cevik
3,3
CVSS
LOW
Information Disclosure Vulnerability
200
CWE
Product Name: Apache Tomcat
Affected Version From: Tomcat 6.0.0
Affected Version To: Tomcat 5.5.29
Patch Exists: YES
Related CWE: None
CPE: a:apache:tomcat
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: None
2010
CVE-2010-1157: Apache Tomcat information disclosure vulnerability
The 'WWW-Authenticate' header for BASIC and DIGEST authentication includes a realm name. If a <realm-name> element is specified for the application in web.xml it will be used. However, a <realm-name> is not specified then Tomcat will generate one using the code snippet: request.getServerName() + ':' + request.getServerPort() In some circumstances this can expose the local hostname or IP address of the machine running Tomcat.
Mitigation:
Administrators of web applications that use BASIC or DIGEST authentication are recommended to set an appropriate realm name in the web application's web.xml file. Alternatively, the following patches may be used to change the default realm to 'Authentication required' (without the quotes): Tomcat 6.0.x: http://svn.apache.org/viewvc?view=rev&rev=936540 Tomcat 5.5.x: http://svn.apache.org/viewvc?view=rev&rev=936541