CVE-2002-0387
CVSS7.5
发布时间 :2003-03-18 00:00:00
修订时间 :2008-09-05 16:27:53
NMCOS    

[原文]Buffer overflow in gxnsapi6.dll NSAPI plugin of the Connector Module for Sun ONE Application Server before 6.5 allows remote attackers to execute arbitrary code via a long HTTP request URL.


[CNNVD]Sun ONE(iPlanet)应用服务器Connector NSAPI模块远程缓冲区溢出漏洞(CNNVD-200303-052)

        
        Sun ONE应用服务程序包含Connector模块,此模块是NSAPI插件集成在Sun ONE应用服务器上的WEB服务程序上。
        Connector模块在处理进入的HTTP请求URL缺少边界缓冲区检查,远程攻击者利用这个漏洞进行缓冲区溢出攻击,可能以WEB进程权限在系统上执行任意指令。
        Sun ONE应用服务器上的gxnsapi6.dll模块使用静态缓冲区处理进入的URI请求,/[AppServerPrefix]/[long buffer]形式的超长URL请求可导致缓冲区溢出,通过控制保存的EIP可能以WEB进程权限在系统上执行任意指令。
        

- CVSS (基础分值)

CVSS分值: 7.5 [严重(HIGH)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

- CPE (受影响的平台与产品)

cpe:/a:sun:one_application_server:6.5Sun ONE Application Server 6.5
cpe:/a:sun:one_application_server:6.0Sun ONE Application Server 6.0

- OVAL (用于检测的技术细节)

未找到相关OVAL定义

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2002-0387
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2002-0387
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200303-052
(官方数据源) CNNVD

- 其它链接及资源

http://www.securityfocus.com/bid/7082
(VENDOR_ADVISORY)  BID  7082
http://www.atstake.com/research/advisories/2003/a031303-1.txt
(VENDOR_ADVISORY)  ATSTAKE  A031303-1
http://xforce.iss.net/xforce/xfdb/11529
(VENDOR_ADVISORY)  XF  sunone-gxnsapi6-bo(11529)
http://www.ciac.org/ciac/bulletins/n-064.shtml
(UNKNOWN)  CIAC  N-064
http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsalert/52022
(UNKNOWN)  SUNALERT  52022

- 漏洞信息

Sun ONE(iPlanet)应用服务器Connector NSAPI模块远程缓冲区溢出漏洞
高危 边界条件错误
2003-03-18 00:00:00 2005-05-13 00:00:00
远程  
        
        Sun ONE应用服务程序包含Connector模块,此模块是NSAPI插件集成在Sun ONE应用服务器上的WEB服务程序上。
        Connector模块在处理进入的HTTP请求URL缺少边界缓冲区检查,远程攻击者利用这个漏洞进行缓冲区溢出攻击,可能以WEB进程权限在系统上执行任意指令。
        Sun ONE应用服务器上的gxnsapi6.dll模块使用静态缓冲区处理进入的URI请求,/[AppServerPrefix]/[long buffer]形式的超长URL请求可导致缓冲区溢出,通过控制保存的EIP可能以WEB进程权限在系统上执行任意指令。
        

- 公告与补丁

        临时解决方法:
        如果您不能立刻安装补丁或者升级,CNNVD建议您采取以下措施以降低威胁:
        * 如果用户使用6.5版本建议采用SP1。
        * 使用或写自己的NSAPI模块处理HTTP请求,下面的模块可允许obj.conf文件中指定长度的URI请求,否则会发送"440 Possible Attack Detected"应答给客户端:
        =============================
        NSAPI Data Validation Module:
        =============================
        Usage:
        In [server-root]/[server-instance]/config/obj.conf:
        ...
        Init fn="load-modules" shlib="[path to libs]/long.so"
        funcs="bounds_check"
        
        # Make sure this function is the first to be called
        NameTrans fn=bounds_check maxlength=500
        ...
        ----- BEGIN -----
        #include "nsapi.h"
        static int max_req_len = 0;
        NSAPI_PUBLIC int bounds_check(pblock *pb, Session *sn,
         Request *rq) {
         char *temp;
         max_req_len = atoi(pblock_findval("maxlength", pb));
         temp = pblock_findval("uri", rq->reqpb);
         if (temp != NULL) {
         if (strlen(temp) > max_req_len) {
         log_error(LOG_SECURITY, "bounds_check", sn, rq,
         "Overly long URI header (%d bytes)...
         aborting.",
         strlen(temp));
         protocol_status(sn, rq, 440, "Potential Attack
         Detected");
         return REQ_ABORTED;
         }
         }
         return REQ_NOACTION;
        }
        ----- END -----
        * 使用IDS监视通信,过滤超长不正常的HTTP URI请求。
        * 使用反向代理服务程序检查HTTP请求的头数据,如果长度超长就进行匹配的相应操作。
        厂商补丁:
        Sun
        ---
        Sun One Application Server 6.5补丁下载:
        
        http://wwws.sun.com/software/download/products/3e3afb89.html

        供应商没有为6.0版本提供补丁。

- 漏洞信息

11708
Sun ONE Applicaton Server Connector Module gxnsapi6.dll NSAPI Plugin Overflow
Input Manipulation
Loss of Integrity, Loss of Availability Patch / RCS
Vendor Verified

- 漏洞描述

- 时间线

2003-03-13 Unknow
Unknow Unknow

- 解决方案

Upgrade to version 6.5 SP1 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

Sun ONE Application Server Connector NSAPI Module Remote Buffer Overflow Vulnerability
Boundary Condition Error 7082
Yes No
2003-03-13 12:00:00 2009-07-11 09:06:00
The discovery of this vulnerability has been credited to @stake.

- 受影响的程序版本

Sun ONE Application Server 6.5 MU2
Sun ONE Application Server 6.5 MU1
Sun ONE Application Server 6.5
Sun ONE Application Server 6.0 SP4
Sun ONE Application Server 6.0 SP3
Sun ONE Application Server 6.0 SP2
Sun ONE Application Server 6.0 SP1
Sun ONE Application Server 6.0
Sun ONE Application Server 7.0 Standard Edition
Sun ONE Application Server 7.0 Platform Edition
Sun ONE Application Server 6.5 SP1
Sun ONE Application Server 6.5 MU3

- 不受影响的程序版本

Sun ONE Application Server 7.0 Standard Edition
Sun ONE Application Server 7.0 Platform Edition
Sun ONE Application Server 6.5 SP1
Sun ONE Application Server 6.5 MU3

- 漏洞讨论

A vulnerability has been discovered in Sun ONE Application Server. Specifically, a buffer overflow has been discovered in the NSAPI Connector Module. An attacker could exploit this vulnerability by making a URI request to the module containing data of excessive length.

Successful exploitation of this vulnerability could allow an attacker to overwrite sensitive locations in memory, potentially resulting in arbitrary code execution.

This issue affects Sun ONE Application Server version 6.5 and earlier.

- 漏洞利用

Currently we are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: vuldb@securityfocus.com <mailto:vuldb@securityfocus.com>.

- 解决方案

Sun has released fixed versions of the software. It should be noted that a fix for version 6.0 is not currently available and may not be developed. Users are urged to upgrade to the latest available version.


Sun ONE Application Server 6.0 SP4

Sun ONE Application Server 6.0 SP3

Sun ONE Application Server 6.0 SP2

Sun ONE Application Server 6.0 SP1

Sun ONE Application Server 6.0

Sun ONE Application Server 6.5 MU1

Sun ONE Application Server 6.5 MU2

Sun ONE Application Server 6.5

- 相关参考

  • 52022 (Sun Microsystems)
 

 

关于SCAP中文社区

SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

版权声明

CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站