Cscope temporary file race condition
| cscope-tmp-race-condition (18125) |
Description:
Cscope creates temporary files with an easily predictable file name. A local attacker could exploit this vulnerability by launching a symlink attack and possibly gain elevated privileges on the system.
Platforms Affected:
- Apple, Mac OS X 10.3.9
- Apple, Mac OS X 10.4.10
- Apple, Mac OS X Server 10.3.9
- Apple, Mac OS X Server 10.4.10
- Cscope, Cscope 15.5
- Debian, Debian Linux 3.0
- Debian, Debian Linux 3.1
- Digital, OSF/1
- Gentoo, Linux
- SCO, SCO OpenServer 5.0.6
- SCO, SCO OpenServer 5.0.7
Remedy:
For Mac OS:
Apply Apple Security Update 2007-007, available from the Apple Web site. See References.
For Debian GNU/Linux 3.0 (alias woody):
Upgrade to the latest cscope package (15.3-1woody2 or later), as listed in DSA-610-1. See References.
For Debian GNU/Linux:
Refer to DSA-1064-1 for patch, upgrade, or suggested workaround information. See References.
For Gentoo Linux:
Upgrade to the latest version of cscope (15.5-r2 or later), as listed in GLSA 200412-11. See References.
For SCO OpenServer 5.0.6:
Upgrade to the appropriate fixed binaries, as listed in SCO Security Advisory SCOSA-2005.11. See References.
For SCO OpenServer 5.0.7:
Upgrade to the appropriate fixed binaries, as listed in SCO Security Advisory SCOSA-2005.11. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
Consequences:
Gain Privileges
References:
- Apple Security Update 2007-007 , About Security Update 2007-007 at http://docs.info.apple.com/article.html?artnum=306172.
- Apple Web site, Apple security updates at http://docs.info.apple.com/article.html?artnum=61798.
- BugTraq Mailing List, Wed Nov 17 2004 - 15:27:18 CST , RX171104 Cscope v15.5 and minors - symlink vulnerability - advisory, exploit and patch. at http://archives.neohapsis.com/archives/bugtraq/2004-11/0223.html.
- SCO Security Advisory SCOSA-2005.11, OpenServer 5.0.6 OpenServer 5.0.7 : cscope local attacker can remove arbitrary fi at ftp://ftp.sco.com/pub/updates/OpenServer/SCOSA-2005.11/SCOSA-2005.11.txt.
- SourceForge.net, Cscope at http://sourceforge.net/projects/cscope/.
- BID-11697: Cscope Insecure Temporary File Creation Vulnerabilities
- BID-25159: Apple Mac OS X 2007-007 Multiple Security Vulnerabilities
- CVE-2004-0996: main.c in cscope 15-4 and 15-5 creates temporary files with predictable filenames, which allows local users to overwrite arbitrary files via a symlink attack.
- DSA-610: cscope -- insecure temporary file
- GLSA-200412-11: Cscope: Insecure creation of temporary files
- SA13237: Cscope Insecure Temporary File Creation and Buffer Overflow Vulnerabilities
- SA26235: Mac OS X Security Update Fixes Multiple Vulnerabilities
- VUPEN/ADV-2007-2732: Apple Mac OS X Multiple Code Execution and Denial of Service Vulnerabilities
Reported:
Nov 17, 2004
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 xforce@iss.net
