From owner-freebsd-security@FreeBSD.ORG Fri Apr 22 06:17:50 2005 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 719DF16A4CE for ; Fri, 22 Apr 2005 06:17:50 +0000 (GMT) Received: from dfmm.org (treehorn.dfmm.org [66.180.195.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3190843D1D for ; Fri, 22 Apr 2005 06:17:50 +0000 (GMT) (envelope-from freebsd-security@dfmm.org) Received: (qmail 1717 invoked by uid 1000); 22 Apr 2005 06:17:50 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 22 Apr 2005 06:17:50 -0000 Date: Thu, 21 Apr 2005 23:17:50 -0700 (PDT) From: freebsd-security@dfmm.org X-X-Sender: jason@treehorn.dfmm.org To: freebsd-security@freebsd.org In-Reply-To: <20050422001054.V9404@odysseus.silby.com> Message-ID: <20050421230714.N97728@treehorn.dfmm.org> References: <42686A29.7090900@hackunite.net> <20050422001054.V9404@odysseus.silby.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: Jesper Wallin Subject: Re: Information disclosure? X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Security issues [members-only posting] List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2005 06:17:50 -0000 > For some reason, I thought little about the "clear" command today.. > Let's say a privileged user (root) logs on, edit a sensitive file (e.g, > a file containing a password, running vipw, etc) .. then runs clear and > logout. Then anyone can press the scroll-lock command, scroll back up > and read the sensitive information.. Isn't "clear" ment to clear the I've thought about this also - I think that if it's really a concern, the thing to do is to just disable the kernel-level text console scrollback completely and use screen(1) or something similar for those times when you do want scrollback. alternatively, alias clear='for i in {1..SC_HISTORY_SIZE} ; do echo "" ; done' -Jason