SkipNavigation
US-CERT
American Flag
  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



 Other Documents
  Technical Alerts

Technical Bulletins

Alerts

Security Tips

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 NotifiedDate 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 Public:2000-11-13
Date First Published:2000-11-13
Date Last Updated:2001-03-28
CERT Advisory: 
CVE-ID(s):CAN-2000-0890
NVD-ID(s):CAN-2000-0890
US-CERT Technical Alerts: 
Metric:0.21
Document Revision:14

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

 
Page Corner Image
Copyright 2000 Carnegie Mellon University
Disclaimers and copyright information
Get Adobe Reader Get Adobe Reader