安全研究

安全漏洞
Apache Tomcat表单认证用户名枚举漏洞

发布日期:2009-06-03
更新日期:2009-06-04

受影响系统:
Apache Group Tomcat 6.0.x
Apache Group Tomcat 5.5.x
Apache Group Tomcat 4.1.x
不受影响系统:
Apache Group Tomcat 6.0.20
Apache Group Tomcat 5.5.28
Apache Group Tomcat 4.1.40
描述:
BUGTRAQ  ID: 35196
CVE(CAN) ID: CVE-2009-0580

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

由于某些认证类中的不充分错误检查,如果远程攻击者向Tomcat服务器提交了非法URL编码的口令就可能通过返回判断是否存在所请求的用户名。如果基于表单的认证(j_security_check)使用了任意以下认证域就可以执行这种攻击:

* MemoryRealm
* DataSourceRealm
* JDBCRealm

<*来源:D. Matscheko
        T. Hackner
  
  链接:http://marc.info/?l=bugtraq&m=124404991325840&w=2
        http://secunia.com/advisories/35326/
        http://sunsolve.sun.com/search/printfriendly.do?assetkey=1-66-263529-1
        https://www.redhat.com/support/errata/RHSA-2009-1506.html
        https://www.redhat.com/support/errata/RHSA-2009-1563.html
        https://www.redhat.com/support/errata/RHSA-2009-1562.html
        https://www.redhat.com/support/errata/RHSA-2009-1616.html
*>

测试方法:

警 告

以下程序(方法)可能带有攻击性,仅供安全研究与教学之用。使用者风险自负!

POST /j_security_check HTTP/1.1
Host: localhost

j_username=tomcat&j_password=%

建议:
厂商补丁:

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

http://svn.apache.org/viewvc?rev=747840&view=rev
http://svn.apache.org/viewvc?rev=781379&view=rev
http://svn.apache.org/viewvc?rev=781382&view=rev

RedHat
------
RedHat已经为此发布了一个安全公告(RHSA-2009:1506-01)以及相应补丁:
RHSA-2009:1506-01:Important: tomcat6 security update
链接:https://www.redhat.com/support/errata/RHSA-2009-1506.html

Sun
---
Sun已经为此发布了一个安全公告(Sun-Alert-263529)以及相应补丁:
Sun-Alert-263529:Security Vulnerabilities in Solaris Bundled Tomcat May Lead to Unauthorized Access to Data or Denial of Service (DoS)
链接:http://sunsolve.sun.com/search/printfriendly.do?assetkey=1-66-263529-1

浏览次数:3849
严重程度:0(网友投票)
本安全漏洞由绿盟科技翻译整理,版权所有,未经许可,不得转载
绿盟科技给您安全的保障