[18147] in bugtraq

home help back first fref pref prev next nref lref last post

Re: Is /tmp still appropriate? (was Re: [hacksware]Pine temporary

daemon@ATHENA.MIT.EDU (Christian)
Mon Dec 18 20:21:11 2000

Mail-Followup-To: Mark Delany <MarkD@BUSHWIRE.NET>, BUGTRAQ@SECURITYFOCUS.COM
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Message-Id:  <20001217111852.A22168@diffie.it.murdoch.edu.au>
Date:         Sun, 17 Dec 2000 11:18:52 +0800
Reply-To: Christian <christian@dijkstra.MURDOCH.EDU.AU>
From: Christian <christian@dijkstra.MURDOCH.EDU.AU>
X-To:         Mark Delany <MarkD@BUSHWIRE.NET>
To: BUGTRAQ@SECURITYFOCUS.COM
In-Reply-To:  <20001214225127.625.qmail@geex.bushwire.net>; from
              MarkD@BUSHWIRE.NET on Thu, Dec 14, 2000 at 10:51:27PM +0000

On Thu, Dec 14, 2000 at 10:51:27PM +0000, Mark Delany wrote:

> I'm not so sure that the Internet is the cause of anti-social users
> sharing Unix systems.. Be that as it may, one of the biggest issues
> with using /tmp is it creates a security issue for a whole class of
> programs and programmers that generally don't have to worry about
> security. Programmers who write general purpose shells and editors and
> sorts shouldn't have to worry about security issues.

I'm afraid I have to strongly disagree with this.  Any program that has
to deal with untrusted data (i.e., the source of the data is not the
user running the program) has to consider security issues.  If people
who write shells and editors don't have to worry about these things then
these shells can never operate on any filenames or directory names etc.
that do not belong to the user running the shell.  Similarly editors
cannot operate on files that come from other users.  The situation is
bad enough now but imagine if you couldn't be sure whether you could
safely open up and hack that C program you just downloaded...

Unfortunately all programmers need to have a basic awareness of security
issues.  Educating them all is obviously an ENORMOUS job and making the
decision that /tmp should no longer be used and thus taken out of the
equation doesn't make this job significantly smaller.

Regards,

Christian.

home help back first fref pref prev next nref lref last post