Apache Tomcat认证头信息泄露漏洞

来源:岁月联盟 编辑:猪猪 时间:2010-04-27

影响版本:
Apache Group Tomcat 6.0.x
Apache Group Tomcat 5.5.x

漏洞描述:
BUGTRAQ  ID: 39635
CVE ID: CVE-2010-1157

Apache Tomcat是一个流行的开放源码的JSP应用服务器程序。

BASIC和DIGEST认证的WWW-Authenticate头包含有区域名。如果web.xml中对应用指定了<realm- name>元素,就会使用指定的区域名,否则Tomcat就会使用以下代码段生成一个区域名:
 
request.getServerName() + ":" + request.getServerPort()

在某些环境中这可能会暴露运行Tomcat机器的本地主机名或IP地址。

<*参考

Deniz CEVIK (Deniz.Cevik@intellect.com.tr)

http://secunia.com/advisories/39574/
http://secunia.com/advisories/39574/
http://www.exploit-db.com/exploits/12343

*>

测试方法:

HTTP/1.1 401 Unauthorized
Server: Apache-Coyote/1.1 
WWW-Authenticate: Basic realm="tomcat01:8080" 
Content-Type: text/html;charset=utf-8 
Content-Length: 954 
Date: Thu, 31 Dec 2009 12:18:11 GMT 
Connection: closeSEBUG安全建议:
厂商补丁:

Apache Group
------------
目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载:

http://svn.apache.org/viewvc?view=rev&rev=936540 
http://svn.apache.org/viewvc?view=rev&rev=936541