CVE-1999-0674
CVSS7.2
发布时间 :1999-08-09 00:00:00
修订时间 :2008-09-09 08:35:12
NMCOE    

[原文]The BSD profil system call allows a local user to modify the internal data space of a program via profiling and execve.


[CNNVD]The BSD profil漏洞(CNNVD-199908-016)

        The BSD profil系统呼叫存在漏洞。本地用户可以通过profiling和描述执行文件修改程序空白中的中间数据。

- CVSS (基础分值)

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

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

cpe:/o:openbsd:openbsd:2.0OpenBSD 2.0
cpe:/o:netbsd:netbsd:1.1NetBSD 1.1
cpe:/o:sun:solaris:2.5
cpe:/o:sun:solaris:2.5::x86
cpe:/o:sun:solaris:2.6
cpe:/o:netbsd:netbsd:1.3.2NetBSD 1.3.2
cpe:/o:sun:solaris:2.5.1
cpe:/o:openbsd:openbsd:2.3OpenBSD 2.3
cpe:/o:openbsd:openbsd:2.5OpenBSD 2.5
cpe:/o:sun:solaris:2.4
cpe:/o:sun:solaris:2.6::x86
cpe:/o:netbsd:netbsd:1.3NetBSD 1.3
cpe:/o:netbsd:netbsd:1.4NetBSD 1.4
cpe:/o:sun:solaris:2.4::x86
cpe:/o:openbsd:openbsd:2.4OpenBSD 2.4
cpe:/o:netbsd:netbsd:1.2.1NetBSD 1.2.1
cpe:/o:netbsd:netbsd:1.2NetBSD 1.2
cpe:/o:netbsd:netbsd:1.3.1NetBSD 1.3.1
cpe:/o:netbsd:netbsd:1.0NetBSD 1.0
cpe:/o:openbsd:openbsd:2.2OpenBSD 2.2
cpe:/o:sun:solaris:2.2
cpe:/o:sun:solaris:2.3
cpe:/o:netbsd:netbsd:1.3.3NetBSD 1.3.3
cpe:/o:openbsd:openbsd:2.1OpenBSD 2.1
cpe:/o:sun:solaris:2.1
cpe:/o:sun:solaris:7.0::x86
cpe:/o:sun:solaris:7.0

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.securityfocus.com/bid/570
(VENDOR_ADVISORY)  BID  570
http://www.ciac.org/ciac/bulletins/j-067.shtml
(UNKNOWN)  CIAC  J-067

- 漏洞信息

The BSD profil漏洞
高危 未知
1999-08-09 00:00:00 2005-05-02 00:00:00
本地  
        The BSD profil系统呼叫存在漏洞。本地用户可以通过profiling和描述执行文件修改程序空白中的中间数据。

- 公告与补丁

        

- 漏洞信息 (19447)

NetBSD <= 1.4,OpenBSD <= 2.5,Solaris <= 7.0 profil(2) Vulnerability (EDBID:19447)
multiple local
1999-08-09 Verified
0 Ross Harvey
N/A [点击下载]
source: http://www.securityfocus.com/bid/570/info

Some *BSD's use a profil(2) system call that dates back to "version 6" unix. This system call arranges for the kernel to sample the PC and increment an element of an array on every profile clock tick.

The security issue stems from the fact that profiling is not turned off when a process execve(2)'s another program image.

As the size and location of this array as well as the scale factor are under the program's control, it is possible to arrange for an arbitrary 16-bit program virtual address to be incremented on each profile clock tick.

Although unlikely, it is theoretically possible that an attacker with local access and knowledge of the addresses used by privileged programs could construct an exploit.

It may be that there are no candidate addresses that, when incremented, result in a security failure. However, as this can turn -1 into 0, and 0 into 1, and as security-related system calls and library functions often return either -1 or 0, this mechanism could turn system call returns of success into failure or failure into success if a program stores system call results into memory locations.

Currently the SecurityFocus staff are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: vuldb@securityfocus.com. The following program will test for the vulnerability although not exploit it:

/* This program will check to see if a given system has the profil(2) bug
described in NetBSD Security Advisory 1999-011. If it prints `Counting!'
then you've got it...

At least one system (Solaris) appears to fix the security issue but
doesn't turn off profiling unless the new image is owned by a different
user. To check for this, you need to do something like:

% cc profiltest.c
% su
# cp a.out prog.setuid
# chown (something) prog.setuid
# (possibly make it setuid)
# exit
% ./a.out

If the program doesn't find prog.setuid, it just exec's itself; this
gets the same result on most systems. (So: % cc profiltest.c; ./a.out)

So far, I've only found it in BSD systems. Linux hasn't had profiling
in the kernel for a while, so current versions should not be vulnerable. */

#include <sys/types.h>
#include <stdio.h>
#include <unistd.h>

volatile unsigned short twobins[2];

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

if (ac == 1) {
/* can't check the return value; on some systems it's void */
profil((char *)twobins, sizeof twobins, (u_long)&main, 2);
/* try a different image for uid/setuid tests */
execl("prog.setuid", "tryroot", "-", 0);
/* otherwise, just chain to ourself */
execl(av[0], av[0], "-", 0);
fprintf(stderr, "problems\n");
exit(1);
}
for(;;) {
if (twobins[0] | twobins[1]) {
printf("Counting!\n");
twobins[0] = twobins[1] = 0;
}
}
}

/* ross.harvey@computer.org */ 

  			

- 漏洞信息

1033
OpenBSD profil(2) System Call Local Privilege Escalation
Local Access Required Input Manipulation
Loss of Integrity Upgrade
Exploit Public

- 漏洞描述

OpenBSD contains a flaw that leads to unauthorized privileges being gained. The issue is due to an error in profil(2) exec file in the kernel when profiling another program's image. This may allow a local attacker to gain escalated privileges.

- 时间线

1999-08-09 Unknow
Unknow 1999-08-09

- 解决方案

Products

OpenBSD

OpenBSD

2.0
2.4
2.1
2.2
2.5
2.3

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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