what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

SA-1996.01.txt

SA-1996.01.txt
Posted Sep 23, 1999

SA-1996.01.txt

SHA-256 | c6c4d1856682d5bf179248b26c5d60c9963b5bb4bfa36fab30f696ff23cdec66

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
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close