58972 : OpenVAS openvassd utils.c Temporary File Handling Race Condition Arbitrary File Overwrite
Printer | http://osvdb.org/58972 | Email This | Edit Vulnerability

Views This Week Views All Time Added to OSVDB Last Modified Modified (since 2008) Percent Complete
5 370 over 2 years ago about 1 year ago 8 times 100%

Timeline

Vendor Informed Date Disclosure Date
2009-10-06 2009-10-06

Description

OpenVAS contains a flaw that may allow a malicious local user to overwrite arbitrary files on the system. The issue is due to the program creating temporary files insecurely. It is possible for an attacker to use a symlink attack to cause the program to unexpectedly write to, or overwrite an attacker specified file.

Classification

Location: Local Access Required
Attack Type: Race Condition
Impact: Loss of Integrity, Loss of Availability
Solution: Solution Unknown
Disclosure: Vendor Verified
OSVDB: Security Software

Technical

OpenVAS contains a flaw that may allow a local attacker to overwrite arbitrary files. The issue is due to the temp_file_name() function in openvas-scanner/openvassd/utils.c creating a temporary file in an insecure manner. A significant amount of time occurs between the creation and use of this file by the ntp_ll_recv_file() function in ntp_11.c. During this period, an attacker can replace the temporary file with a symlink, eventually resulting in the targeted file to be overwritten. This can be used to delete the content of files and possibly escalate privileges by overwriting configuration files controlling security settings.

Solution

This was resoled with OpenVAS CR 47 (http://www.openvas.org/openvas-cr-47.html). Upgrade to version 3.0.0 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

Products

OpenVAS
Watch-list
openvas-server
Watch-list
2.0.3

References

Credit

CVSSv2 Score

We currently have no CVSS2 data on this vulnerability. Feel free to suggest it.

Blogs

This section lists the latest news and blogs found via the daylife API (and for older items, the technorati API), which mention or otherwise discuss this vulnerability.

None found at this time

Comments

No Comments.

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 2012 Open Source Vulnerability Database (OSVDB), All Rights Reserved.
Privacy Statement - Terms of Use