Re: Environment Poisoning and login -p

From: Tim Kientzle (tim_at_kientzle.com)
Date: 02/27/04

  • Next message: D J Hawkey Jr: "Re: Environment Poisoning and login -p"
    Date: Thu, 26 Feb 2004 15:03:41 -0800
    To: Andrey Chernov <ache@nagual.pp.ru>
    
    

    Andrey Chernov wrote:
    > On Wed, Feb 25, 2004 at 10:54:31AM -0800, Tim Kientzle wrote:
    >
    >>Possible fix: Have login unconditionally discard LD_LIBRARY_PATH
    >>and LD_PRELOAD from the environment, even if "-p" is specified.
    >
    > Yes! It is what I say from very beginning. It is so obvious that I wonder
    > why others not see it first.

    It is obvious, it's just not very safe. In general,
    blacklist approaches are pretty poor; it's
    hard to make sure you've caught everything
    and future changes to other parts of the system
    can easily open new problems.

    Instead, I've decided to follow Jacques Vidrine's
    suggestion of using a whitelist of environment variables
    that are "known-safe."

    Tim Kientzle

    _______________________________________________
    freebsd-security@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-security
    To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"


  • Next message: D J Hawkey Jr: "Re: Environment Poisoning and login -p"

    Relevant Pages

    • Re: Environment Poisoning and login -p
      ... I've decided to follow Jacques Vidrine's ... >> suggestion of using a whitelist of environment variables ... To unsubscribe, ...
      (FreeBSD-Security)
    • Re: Environment Poisoning and login -p
      ... I've decided to follow Jacques Vidrine's ... >> suggestion of using a whitelist of environment variables ... Hey, out there - is it *you* reading me, or is it someone else? ...
      (FreeBSD-Security)
    • Re: Environment Poisoning and login -p
      ... I've decided to follow Jacques Vidrine's ... > suggestion of using a whitelist of environment variables ... To unsubscribe, ...
      (FreeBSD-Security)