Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 8 Mar 2011 10:14:39 +0100
From: Tomas Hoger <thoger@...hat.com>
To: oss-security@...ts.openwall.com
Cc: sgrubb@...hat.com
Subject: Re: ldd can execute an app unexpectedly

On Mon, 7 Mar 2011 18:27:05 -0500 Steve Grubb wrote:

>  http://reverse.lostrealm.com/protect/ldd.html
>  http://www.catonmat.net/blog/ldd-arbitrary-code-execution/
> 
> Besides telling everyone don't do that. ldd could take the PoV that
> it should only call runtime linkers in trusted directories like /sbin
> or /usr/sbin.

Upstream does not seem to consider this to be an issue:
  https://bugzilla.redhat.com/show_bug.cgi?id=531160#c1

Debian also uses the patch similar to what ldv pointed out - it changes
ldd to always do:

  LD_TRACE_LOADED_OBJECTS=1 /lib/ld-linux.so.2 /path/to/ELF-lib-or-binary

rather than:

  LD_TRACE_LOADED_OBJECTS=1 /path/to/ELF-lib-or-binary

-- 
Tomas Hoger / Red Hat Security Response Team

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.