Products & Services
Support

Product Categories


Popular Downloads


Manage Software

How to Buy

For Home

Linksys Products Store
Linksys is now part of Belkin
Products for everyone

All Ordering Options

Training & Events Partners
Guest

Vulnerability Alert

Sudo Uninstall Script Insecure Temporary File Creation Vulnerability

 
Threat Type:CWE: Design Error
IntelliShield ID:26601
Version:3
First Published:2012 August 08 16:03 GMT
Last Published:2013 December 06 19:43 GMT
Port: Not available
CVE:CVE-2012-3440
BugTraq ID:54868
Urgency:Unlikely Use
Credibility:Confirmed
Severity:Harassment
CVSS Base:6.3 CVSS Calculator
CVSS Version 2.0
CVSS Temporal:4.8
 
Version Summary:VMware has re-released a security advisory and software updates to address the Sudo uninstall script insecure temporary file creation vulnerability.
 
 
Description
Sudo contains a vulnerability that could allow a local attacker to overwrite arbitrary files on a targeted system.

The vulnerability is due to an insecure temporary file that is created by a script and used by the affected software. An unauthenticated, remote attacker could exploit the vulnerability by creating a symbolic link in the insecure temporary file, causing the application to overwrite arbitrary files. This could allow the attacker to execute arbitrary code via the files.

The vendor has not confirmed this vulnerability; however, third-party software updates are available.
 
Warning Indicators
Sudo versions 1.8.4p5 and prior are vulnerable.
 
IntelliShield Analysis
To exploit this vulnerability, the attacker must win a race condition between the removal of the file and its re-creation via touch. If the attacker is able to win, it could be possible to launch further attacks.

This attack is successful only while upgrading or uninstalling the sudo package installed on the targeted system.
 
Vendor Announcements
Red Hat has released an official CVE statement and a security advisory for bug 844442 at the following links: CVE-2012-3440 and RHSA-2012:1149

VMware has re-released a security advisory at the following link: VMSA-2013-0007
 
Impact
A local attacker could exploit this vulnerability to overwrite arbitrary files on the targeted system. A successful exploit could allow the attacker to execute arbitrary code via the arbitrary files.
 
Technical Information
The vulnerability exists because the postun uninstall script that is used by the affected software creates an insecure temporary file.

A local attacker with privileges to create a symlink could exploit this vulnerability to overwrite arbitrary files with the content of the /etc/nsswitch.conf file. The attacker could also manipulate the script to modify the /etc/nsswitch.conf file data, which could allow the attacker to execute arbitrary code via the overwritten files.
 
Safeguards
Administrators are advised to contact the vendor regarding future updates and releases.

Administrators are advised to allow only trusted users to access local systems.

Administrators are advised to monitor affected systems.
 
Patches/Software
CentOS packages can be updated using the up2date or yum command.

Red Hat has released updated software for registered subscribers at the following link: Red Hat Network

Red Hat packages can be updated on Red Hat Enterprise Linux versions 5 and later using the yum tool.

VMware has released updated software at the following links:

ESX 4.0
ESX400-201305402-SG

ESX 4.1
ESX410-201312401-SG

 
Alert History
 

Version 2, May 31, 2013, 2:10 PM: Sudo contains a vulnerability that could allow a local attacker to overwrite arbitrary files on a targeted system. Updates are not available.

Version 1, May 17, 2013, 4:08 PM: Sudo contains a vulnerability that could allow a local attacker to overwrite arbitrary files on a targeted system. Updates are not available.


Product Sets
 
The security vulnerability applies to the following combinations of products.

Primary Products:
Todd MillerSudo 1.8 .0, .1, .1p1, .1p2, .2, .3, .3p1, .3p2, .4, .4p1, .4p2, .4p3, .4p4, .4p5, .5 | 1.8.1 Base | 1.8.2 Base | 1.8.3 Base | 1.8.3p1 Base | 1.8.3.p2 Base | 1.8.4p5 Base

Associated Products:
CentOS ProjectCentOS 5 .0 i386, .0 x86_64, .1 i386, .1 x86_64, .2 i386, .2 x86_64, .3 i386, .3 x86_64, .4 i386, .4 x86_64, .5 i386, .5 x86_64
Red Hat, Inc.Red Hat Enterprise Linux 5 IA-32, IA-64, PPC, ppc64, s390, s390x, x86_64
Red Hat, Inc.Red Hat Enterprise Linux Desktop 5 IA-32, x86_64
VMware, Inc.VMware ESX Server 4.0 Base | 4.1 Base




Alerts and bulletins on the Cisco Security Intelligence Operations Portal are highlighted by analysts in the Cisco Threat Operations Center and represent a subset of the comprehensive content that is available through Cisco Security IntelliShield Alert Manager Service. This customizable threat and vulnerability alert service provides security staff with access to timely, accurate, and credible information about threats and vulnerabilities that may affect their environment.


LEGAL DISCLAIMER
The urgency and severity ratings of this alert are not tailored to individual users; users may value alerts differently based upon their network configurations and circumstances. THE ALERT, AND INFORMATION CONTAINED THEREIN, ARE PROVIDED ON AN "AS IS" BASIS AND DO NOT IMPLY ANY KIND OF GUARANTEE OR WARRANTY, INCLUDING THE WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. YOUR USE OF THE ALERT, AND INFORMATION CONTAINED THEREIN, OR MATERIALS LINKED FROM THE ALERT, IS AT YOUR OWN RISK. INFORMATION IN THIS ALERT AND ANY RELATED COMMUNICATIONS IS BASED ON OUR KNOWLEDGE AT THE TIME OF PUBLICATION AND IS SUBJECT TO CHANGE WITHOUT NOTICE. CISCO RESERVES THE RIGHT TO CHANGE OR UPDATE ALERTS AT ANY TIME.
Powered by  IntelliShield