From owner-freebsd-security Thu Sep 7 14:57:28 2000 Delivered-To: freebsd-security@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 2EA4D37B423; Thu, 7 Sep 2000 14:57:24 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.11.0/8.11.0) id e87LuaZ19378; Fri, 8 Sep 2000 01:56:36 +0400 (MSD) (envelope-from ache) Date: Fri, 8 Sep 2000 01:56:34 +0400 From: "Andrey A. Chernov" To: "Todd C. Miller" Cc: Warner Losh , Kris Kennaway , "Vladimir Mencl, MK, susSED" , freebsd-security@FreeBSD.ORG, security-officer@FreeBSD.ORG Subject: Re: UNIX locale format string vulnerability (fwd) Message-ID: <20000908015631.A19316@nagual.pp.ru> References: <200009072126.e87LQuE12710@xerxes.courtesan.com> <200009072126.e87LQuE12710@xerxes.courtesan.com> <200009072132.PAA06187@harmony.village.org> <20000908013556.A19114@nagual.pp.ru> <200009072140.e87Le3715994@xerxes.courtesan.com> <20000908014646.A19231@nagual.pp.ru> <200009072150.e87LoDm26973@xerxes.courtesan.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200009072150.e87LoDm26973@xerxes.courtesan.com>; from Todd.Miller@courtesan.com on Thu, Sep 07, 2000 at 03:50:13PM -0600 Organization: Biomechanoid Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, Sep 07, 2000 at 03:50:13PM -0600, Todd C. Miller wrote: > In message <20000908014646.A19231@nagual.pp.ru> > so spake "Andrey A. Chernov" (ache): > > > Speaking outside of locale/nls area, 'sudo' *must* internally > > setenv TERMCAP /usr/share/misc/termcap > > too, for the same reasons. Grep 'issetugid' through libraries is your > > friend. > > That's way too platform specific; clearing TERMCAP (as well as > TERMPATH and TERMINFO) if it begins with a '/' would make more sense. Clearing all (or resetting TERMCAP as I suggest) must be done in any case, not only if it begins with '/'. The reason is simple - intruder can supply bad entry (%-infected) directly in the TERMCAP variable. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message