FreeBSD WMMon权限提升漏洞

漏洞信息详情

FreeBSD WMMon权限提升漏洞

漏洞简介

FreeBSD中的WMMon存在漏洞,本地用户利用该漏洞通过.wmmonrc配置文件获得特权。

漏洞公告

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/wmmon.app/wmmon/wmmon.c.old Thu Dec 2 02:06:55 1999
+++ work/wmmon.app/wmmon/wmmon.c 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: %s\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;
@sea-to-sky.net>

参考网址

来源: BID
名称: 885
链接:http://www.securityfocus.com/bid/885

来源: OSVDB
名称: 1169
链接:http://www.osvdb.org/1169

受影响实体

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享