安全研究

安全漏洞
Sun Java System Web Server WebDAV远程栈溢出漏洞

发布日期:2010-01-22
更新日期:2010-01-27

受影响系统:
Sun Java System Web Server 7.0
Sun Java System Web Server 6.1
描述:
BUGTRAQ  ID: 37874
CVE ID: CVE-2010-0361

Sun Java System Web Server是高性能的WEB服务器。

Java System Web Server的webservd守护程序的WebDAV实现中存在栈溢出漏洞,远程攻击者可以在提交的HTTP OPTIONS请求中包含超长URI触发这个溢出,导致守护程序崩溃或执行任意代码。

<*来源:Evgeny Legerov (aland@freeradius.org
  
  链接:http://intevydis.blogspot.com/2010/01/sun-java-system-web-server-70u7-webdav.html
        http://secunia.com/advisories/38260/
        http://sunsolve.sun.com/search/document.do?assetkey=1-66-275850-1
*>

测试方法:

警 告

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

s="OPTIONS "
s+="/my_dav_directory/" # DAV URI: dav support should be enabled for this directory
s+="A"*500
s+=" HTTP/1.0\n\n"

http://www.exploit-db.com/download/14194
http://www.metasploit.com/redmine/projects/framework/repository/entry/modules/exploits/multi/http/su
http://marc.info/?l=full-disclosure&m=127030136426641&w=2

建议:
临时解决方法:

* 如果在服务器上启用了WebDAV,可使用以下步骤在Web Server 6.1上禁用这个功能。
  
1. 从虚拟服务器的obj.conf文件删除以下有关WebDAV的项禁用WebDAV:

    <Object name="default">
    ...
    NameTrans fn="ntrans-dav" name="dav"
    ...
    Service fn="service-dav" method="(OPTIONS|PUT|DELETE|COPY|MOVE|PROPFIND|PROPPATCH|LOCK|UNLOCK|MKCOL|ACL|REPORT)"
    ...
    </Object>

    <Object name="dav">
    PathCheck fn="check-acl" acl="dav-src"
    Service fn="service-dav" method="(GET|HEAD|POST|PUT|DELETE|COPY|MOVE|PROPFIND|PROPPATCH|LOCK|UNLOCK|MKCOL|ACL|REPORT)"
    </Object>

   应在所有启用了WebDAV的虚拟服务器上执行这个步骤。

2. 从magnus.conf文件中删除以下项:

    Init fn="load-modules" shlib="libdavplugin.so" funcs="init-dav,ntrans-dav,
    pcheck-dav,service-dav"
    Init fn="init-dav" LateInit="yes"

在Web Server 7.0上,可通过以下命令禁用WebDAV:

    $<WS-install>/bin/wadm  disable-webdav --user=admin --password-file=<password_file> --host=<host> --port=<port>  --config=<config>

厂商补丁:

Sun
---
Sun已经为此发布了一个安全公告(Sun-Alert-6916389)以及相应补丁:
Sun-Alert-6916389:Multiple security vulnerabilities in the HTTP TRACE, WebDAV and Digest Authentication Methods in the Sun Java System Web Server and Sun Java System Web Proxy Server
链接:http://sunsolve.sun.com/search/document.do?assetkey=1-66-275850-1

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