From owner-freebsd-security@FreeBSD.ORG Fri Apr 22 05:14:24 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 EC52816A4CE for ; Fri, 22 Apr 2005 05:14:24 +0000 (GMT) Received: from relay01.pair.com (relay01.pair.com [209.68.5.15]) by mx1.FreeBSD.org (Postfix) with SMTP id 61A6743D46 for ; Fri, 22 Apr 2005 05:14:24 +0000 (GMT) (envelope-from silby@silby.com) Received: (qmail 33507 invoked from network); 22 Apr 2005 05:14:23 -0000 Received: from unknown (HELO localhost) (unknown) by unknown with SMTP; 22 Apr 2005 05:14:23 -0000 X-pair-Authenticated: 209.68.2.70 Date: Fri, 22 Apr 2005 00:14:21 -0500 (CDT) From: Mike Silbersack To: Jesper Wallin In-Reply-To: <42686A29.7090900@hackunite.net> Message-ID: <20050422001054.V9404@odysseus.silby.com> References: <42686A29.7090900@hackunite.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-security@freebsd.org 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 05:14:25 -0000 On Fri, 22 Apr 2005, Jesper Wallin wrote: > Hello, > > 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 backbuffer instead of > printing a full screen of returns? If it does, I'm not sure how that would > effect a user running "clear" on a pty (telnet, sshd, screen, etc) .. > > > Best regards, > Jesper Wallin I've often wondered the same thing when connected in via a ssh session. If there was a way to implement this functionality without uglifying the code too much, I don't see why anyone would object to it. But I don't think you're going to get someone else to code it for you. :) Mike "Silby" Silbersack