never stop questioning

SA-1996.01.txt

SA-1996.01.txt
Posted Sep 23, 1999

SA-1996.01.txt

MD5 | 75b2c195aada47089b5b16337fe9060d

SA-1996.01.txt

Change Mirror Download
Caldera Security Advisory SA-96.01
March 21, 1996

Topic: File deletion via /etc/crontab entries

I. Problem Description

The system-wide crontab(5) file, /etc/crontab, contains entries
executed by various users including root. Some of these entries
are intended to automatically remove old files from publicly
writable directories such as /tmp. It has been reported that
the default entries in CND 1.0 can be misused by non-privileged
users to delete arbitrary files.

II. Impact

Any file on the system could be potentially deleted by a
non-privileged user.

III. Solution / Workaround

Remove entries that use 'find' on a public directory with
'-exec rm -f' as root. It is suggested that the following entries
in /etc/crontab should be disabled or removed:

*******************************************************************************
# Remove /var/tmp files not accessed in 10 days
43 02 * * * root find /var/tmp/* -atime +3 -exec rm -f {} \; 2> /dev/null

# Remove /tmp files not accessed in 10 days
41 02 * * * root find /tmp/* -atime +10 -exec rm -f {} \; 2> /dev/null

# Remove formatted man pages not accessed in 10 days
39 02 * * * root find /var/catman/cat?/* -atime +10 -exec rm -f {} \; 2> /dev/n
ull

# Remove and TeX fonts not used in 10 days
35 02 * * * root find /var/lib/texmf/* -type f -atime +10 -exec rm -f {} \; 2>
/dev/null
*******************************************************************************

Though not tested by Caldera, the following "file garbage collector"
has been suggested as a replacement for the above entries in
/etc/crontab:

http://www.ultratech.net/~zblaxell/admin_utils/filereaper.txt

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

May 2012

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    37 Files
  • 2
    May 2nd
    53 Files
  • 3
    May 3rd
    33 Files
  • 4
    May 4th
    4 Files
  • 5
    May 5th
    10 Files
  • 6
    May 6th
    17 Files
  • 7
    May 7th
    19 Files
  • 8
    May 8th
    36 Files
  • 9
    May 9th
    34 Files
  • 10
    May 10th
    35 Files
  • 11
    May 11th
    20 Files
  • 12
    May 12th
    18 Files
  • 13
    May 13th
    11 Files
  • 14
    May 14th
    27 Files
  • 15
    May 15th
    58 Files
  • 16
    May 16th
    54 Files
  • 17
    May 17th
    25 Files
  • 18
    May 18th
    53 Files
  • 19
    May 19th
    9 Files
  • 20
    May 20th
    15 Files
  • 21
    May 21st
    25 Files
  • 22
    May 22nd
    32 Files
  • 23
    May 23rd
    35 Files
  • 24
    May 24th
    26 Files
  • 25
    May 25th
    25 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2012 Packet Storm. All rights reserved.

close