CERT home
vulnerabilities & fixesevaluations & practicesresearch & analysistraining & education
homesearchFAQsite indexcontact
Vulnerability
Notes
Database

Search Vulnerability Notes

Vulnerability Notes Help Information
 

 View Notes By
Name

ID Number

CVE Name

Date Public

Date Published

Date Updated

Severity Metric

Vulnerability Note VU#626919

Race condition in periodic

Overview

A race condition in the 'periodic' script allows local files to be overwritten. We believe that 'periodic' is typically used only with FreeBSD systems, though it may be installed on other systems.

I. Description

'periodic' is a script used in conjunction with cron to execute jobs at specified intervals. During ordinary work, periodic creates temporary files with predictable names of the form /tmp/periodic.$PID where $PID is the process identifier of the process running periodic. Because periodic is called by cron it runs with enhanced privileges. By polling the system for an executing instance of periodic, an intruder can exploit a race condition and create a symbolic link from /tmp/periodic.$PID to a file of the intruders choosing. The target file will be overwritten.

II. Impact

An attacker or intruder who has write access to the local file system and who can discover the PIDs of other processes (both capabilities are typical for ordinary local users) can overwrite any file
on the system regardless of the permissions on the file. This ability can be leveraged to gain root access in many circumstances.

III. Solution

Apply a patch from your vendor.

Systems Affected

VendorStatusDate Updated
AppleNot Vulnerable13-Nov-2000
BSDINot Vulnerable13-Nov-2000
CalderaUnknown13-Nov-2000
Compaq Computer CorporationNot Vulnerable13-Nov-2000
Data GeneralUnknown13-Nov-2000
DebianUnknown13-Nov-2000
FreeBSDVulnerable13-Nov-2000
FujitsuUnknown13-Nov-2000
Hewlett PackardUnknown13-Nov-2000
IBMNot Vulnerable10-Jan-2001
NCRUnknown13-Nov-2000
NECUnknown13-Nov-2000
NetBSDNot Vulnerable2-Nov-2000
OpenBSDNot Vulnerable13-Nov-2000
RedHatUnknown13-Nov-2000
SCOUnknown13-Nov-2000
SequentUnknown13-Nov-2000
SGIUnknown13-Nov-2000
SonyUnknown13-Nov-2000
SunUnknown13-Nov-2000
UnisysUnknown13-Nov-2000

References


http://www.FreeBSD.org/cgi/man.cgi?query=periodic&apropos=0&sektion=0&manpath=FreeBSD+5.0-current&format=html
http://www.securityfocus.com/bid/2325

Credit

Our thanks to David Lary of SecureWorks for reporting this vulnerability to us and providing technical detail.

This document was written by Shawn Hernan.

Other Information

Date Public11/13/2000
Date First Published11/13/2000 05:27:42 PM
Date Last Updated03/28/2001
CERT Advisory 
CVE NameCAN-2000-0890
Metric0.21
Document Revision14

If you have feedback, comments, or additional information about this vulnerability, please send us email.
 

Copyright 2000 Carnegie Mellon University