Title: Multiple BSD FTS Directory Traversal Race Condition Vulnerability
Severity: MODERATE
Description:
BSD is a freely available implementation of the UNIX Operating System, distributed and maintained by various project groups, and based off the original Berkeley Software Distribution.
A problem with the fts routines in the system libc makes it possible for a user to take advantage of a race condition in file system the user controls.
The problem is in the handling of directory structure by the fts program. When an application using the fts code uses the fts_safe_changedir() function in previous revisions, it does not record the path. Programs such as find using the -exec or -delete flags are vulnerable to this.
This makes it possible for a program executing in directory space controlled by a user to be tricked into entering a different part of the file system. This could be done to cause the process using the fts functions to execute arbitrary programs, or potentially delete arbitrary files on the system.
This vulnerability could result in either a denial of service against legitimate users of the system, or potentially elevated privileges, depending upon the UID of the process executing using the fts functions.
Affected Products:
- FreeBSD FreeBSD 4.3.0 -RELEASE
- FreeBSD FreeBSD 4.3.0 -STABLE
- NetBSD NetBSD 1.5.0
- NetBSD NetBSD 1.5.1
- OpenBSD OpenBSD 2.8.0
References:
- OpenBSD: 029: SECURITY FIX: May 30, 2001
Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.