|
|||||||||||
|
slocate vulnerability
From: Adam Gilmore <agilmore(at)optusnet.com.au>
Date: Wed Jan 29 2003 - 07:49:22 EST
#0 0x40079527 in vfprintf () from /lib/libc.so.6 #1 0x4009ab43 in vsnprintf () from /lib/libc.so.6 #2 0x0804bc06 in report_error (STATUS=0, QUIET=0, format=0x804bff5 "%s:decode_db(): %s: %s\n") at misc.c:149 #3 0x0804aa3d in decode_db (database=0x19 <Address 0x19 out of bounds>, str=0xbffff28e 'A' <repeats 200 times>...) at main.c:1164 #4 0x0804b70f in main (args=5, argv=0xbffff144) at main.c:1549 #5 0x4003e280 in __libc_start_main () from /lib/libc.so.6 As far as I can see, the error is because the function report_error is parsed the pointer database which is 0x19 (probably because the program couldn’t get the config file or what not parsed with –c). Anyone care to shed some light on the situation? USG Security Advisory http://www.usg.org.uk/advisories/2003.001.txt inkubus@hushmail.com USG- SA- 2003.001 24- Jan- 2003 Package: slocate Vulnerability: local buffer overflow Type: local Risk: high, users can gain high privileges in the system. System tested: RedHat Linux 7.3 (Valhalla) with slocate-2.6-1 from RPM Credits: Knight420, Team TESO, Michal Zalewski, Aleph1, dvdman Description: Accordingly to research done by USG team members and Knight420 who informed us about this vulnerability a week earlier, there is a local buffer overflow in th e slocate package shipped with the most newer RedHat distributions, we have tested the vulnerabil ity only in RedHat Linux 7.2 and 7.3 but we think that other Linux/*nix systems that provide sloca te package may be vulnerable too. The overflow appears when the slocate is runned with two parameters: -c and -r , using as arguments a 1024 (or 10240, as Knight420 has informed us earlier) bytes string. [inkubus@USG audit]$ rpm -qf /usr/bin/slocate && ls -al /usr/bin/slocate
slocate-2.6-1
[inkubus@USG audit]$ /usr/bin/slocate -c `perl -e "print 'A' x 1024"` -r
`perl
inkubus@hushmail.com Resistance is futile, you will be assimilated. EOF Received on Wed Jan 29 14:43:07 2003 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:37 EDT |
||||||||||
|
|||||||||||