OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: Is /tmp still appropriate? (was Re: [hacksware]Pine temporary file hijacking vulnerability)
From: Michael Damm (mikedACCESSNW.NET)
Date: Fri Dec 15 2000 - 14:35:43 CST


On Thu, 14 Dec 2000, Mark Delany wrote:

> I'm sure many people have been "guilty" of writing a quick and nasty
> shell script that ends in something like: >/tmp/out.$$

I alwas was a difficult child.
TMPKEY="$RANDOM"
echo "foo" >/tmp/blah.$TMPKEY

Easiest fix for most of these issues, works great in quick bash hacks on
untrusted systems. Im sure your OS/Programming Language of choice has
support for the latest in even semi random number generation.

        -Mike

---
Michael Damm  - System Administrator  - Access Northwest, LLC  - Yakima, WA
Business:    mikedaccessnw.net - http://www.accessnw.net/ - (509) 542-3221
Personal: symetrixsymetrix.org - http://www.symetrix.org/ - (877) 534-6247