FreeBSD /etc/rc startup script symbolic link could be used to delete arbitrary directories
|freebsd-rc-delete-directories (9217)||Medium Risk|
FreeBSD could allow a local attacker to delete arbitrary directories, caused by a vulnerability in the /etc/rc startup script. When removing X Window System lock files, rc fails to properly check whether /tmp/.X11-unix is a real directory. A local attacker could exploit this vulnerability by creating a symbolic link from /tmp/.X11-unix to an arbitrary directory on the system, which would be deleted the next time the system is booted.
Upgrade to latest version of 4.5-STABLE or to either of the RELENG_4_5 (4.5-RELEASE-p6) or RELENG_4_4 (4.4-RELEASE-p13) security branches dated later than 9-May-2002), as listed in FreeBSD Inc., Security Advisory FreeBSD-SA-02:27.rc. See References.
— OR —
Apply the appropriate patch for your system, as listed in FreeBSD Inc., Security Advisory FreeBSD-SA-02:27.rc t. See References.
- FreeBSD Security Advisory FreeBSD-SA-02:27.rc: rc uses file globbing dangerously.
- BID-4880: FreeBSD rc Arbitrary Directory Deletion Vulnerability
- CVE-2002-0795: The rc system startup script for FreeBSD 4 through 4.5 allows local users to delete arbitrary files via a symlink attack on X Windows lock files.
- OSVDB ID: 5083: FreeBSD /etc/rc Symlink Delete Arbitrary File
- FreeBSD FreeBSD 4.0
- FreeBSD FreeBSD 4.4
- FreeBSD FreeBSD 4.5
May 29, 2002
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this