🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Joel C. McClung Tue, 16 Jul 1985 19:25
slight security bug in /bin/sort
#162
Author: Joel C. McClung
Date: Tue, 16 Jul 1985 19:25
20 lines
1409 bytes
There is a slight security bug in /bin/sort when it creates temporary
files in /usr/tmp.  The temporary files are of the form: stmPIDXX where
PID is the process id, and XX is a set of barber-pole characters (aa,
ab, ac, ..., az, ba, bb, etc).  The first temporary file is created
with a mode of 600, but any subsequent tmp files are created with your
default permissions.

Repeat by:
	Run /bin/sort on a very large file and look at the temp
	files created in /usr/tmp.  On my system, a new temp file
	is created whenever the current tmp file is approximately
	12,500 bytes large.

Fix:	I can't.  We are a binary-only site.

-- 
Joel C. McClung	 {seismo!rlgvax,cbosgd!dolqci,nrcaero,petsd,pesnta}!prcrs!joel
Planning Research Corporation
1500 Planning Research Drive
McLean, VA 22102	 (703) 556-2644
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads