3145 : COPS Temporary File Race Condition and Symlink
Printer | http://osvdb.org/3145 | Email This | Edit Vulnerability

Views This Week

1

Views All Time

15

Info

Last Modified

8 months ago

Percent Complete

75%

Disclosure

Jun 28, 1998

Discovery

Unknown

Dates

Exploit

Jun 28, 1998

Solution

Unknown

Description

COPS Security Checker contains a flaw that allows local attackers to overwrite arbitrary files and possibly gain root priveleges. The flaw is due to a lack of sanity checking on calls to temporary files created in /tmp that do not check for existing files with the same name. Such flaws can be taken advantage of with symlinks and arbitrary files can be overwritten or appended to.

Classification

Location: Local Access Required
Attack Type: Race Condition

Technical

The files res_diff, checkacct/ca.src and extra_src/mail.chk contain /tmp race conditions or symlink vulnerbailities.

Solution

Modify the source code to the package to avoid using the /tmp directory. Instead, recode it to use a custom directory only accessable to root. There is also an untested patch written by the reporter of this vulnerability.

Products

Dan Farmer
Watch-list
COPS
Watch-list
1.04

References

Credit

Unknown or Incomplete

Blogs

None found at this time

Comments

No Comments.

DONATE NOW!

User Status

Quick Searches

Advertisements

The database information may change without any notice. Use of the information constitutes acceptance for use in an AS IS condition, and 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 copyright holder or distributor (OSVDB or OSF) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

© Copyright 2008 Open Source Vulnerability Database (OSVDB), All Rights Reserved.
Privacy Statement - Terms of Use