Vulnerabilities > CVE-2014-0106 - Improper Input Validation vulnerability in multiple products

047910
CVSS 6.6 - MEDIUM
Attack vector
LOCAL
Attack complexity
MEDIUM
Privileges required
SINGLE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE

Summary

Sudo 1.6.9 before 1.8.5, when env_reset is disabled, does not properly check environment variables for the env_delete restriction, which allows local users with sudo permissions to bypass intended command restrictions via a crafted environment variable.

Vulnerable Configurations

Part Description Count
OS
Apple
91
Application
Todd_Miller
58

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Server Side Include (SSI) Injection
    An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
  • Cross Zone Scripting
    An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
  • Cross Site Scripting through Log Files
    An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
  • Command Line Execution through SQL Injection
    An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.

Nessus

  • NASL familyOracleVM Local Security Checks
    NASL idORACLEVM_OVMSA-2016-0079.NASL
    descriptionThe remote OracleVM system is missing necessary patches to address critical security updates : - added patch for CVE-2014-0106: certain environment variables not sanitized when env_reset is disabled Resolves: rhbz#1072210 - backported fixes for CVE-2013-1775 CVE-2013-1776 (CVE-2013-2776) CVE-2013-2777 Resolves: rhbz#968221 - visudo: fixed incorrect warning and parse error regarding undefined aliases which were in fact defined Resolves: rhbz#849679 Resolves: rhbz#905624 - updated sudoers man-page to clarify the behavior of the user negation operator and the behavior of wildcard matching in command specifications Resolves: rhbz#846118 Resolves: rhbz#856902 - fixed regression in escaping of sudo -i arguments Resolves: rhbz#853203 - bump release number - Fixed caching of user and group names - Backported RFC 4515 escaping of LDAP queries Resolves: rhbz#855836 Resolves: rhbz#869287 - Add the -c option to sed commands in post/postun scripts Resolves: rhbz#818585 - Implement a new sudoers Defaults option to restore old command exec behavior Resolves: rhbz#840971 - Add ability to treat files authoritatively in sudoers.ldap Resolves: rhbz#840097 - Changed policycoreutils dependency to a context specific dependency (post & postun) Resolves: rhbz#846694 - don
    last seen2020-06-01
    modified2020-06-02
    plugin id91755
    published2016-06-22
    reporterThis script is Copyright (C) 2016-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/91755
    titleOracleVM 3.2 : sudo (OVMSA-2016-0079)
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2014-0266.NASL
    descriptionAn updated sudo package that fixes one security issue is now available for Red Hat Enterprise Linux 5. The Red Hat Security Response Team has rated this update as having Moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. The sudo (superuser do) utility allows system administrators to give certain users the ability to run commands as root. A flaw was found in the way sudo handled its blacklist of environment variables. When the
    last seen2020-06-01
    modified2020-06-02
    plugin id72923
    published2014-03-11
    reporterThis script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/72923
    titleRHEL 5 : sudo (RHSA-2014:0266)
  • NASL familyScientific Linux Local Security Checks
    NASL idSL_20140310_SUDO_ON_SL5_X.NASL
    descriptionA flaw was found in the way sudo handled its blacklist of environment variables. When the
    last seen2020-03-18
    modified2014-03-11
    plugin id72924
    published2014-03-11
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/72924
    titleScientific Linux Security Update : sudo on SL5.x i386/x86_64 (20140310)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DLA-160.NASL
    descriptionThis update fixes the CVEs described below. CVE-2014-0106 Todd C. Miller reported that if the env_reset option is disabled in the sudoers file, the env_delete option is not correctly applied to environment variables specified on the command line. A malicious user with sudo permissions may be able to run arbitrary commands with elevated privileges by manipulating the environment of a command the user is legitimately allowed to run. CVE-2014-9680 Jakub Wilk reported that sudo preserves the TZ variable from a user
    last seen2020-03-17
    modified2015-03-26
    plugin id82144
    published2015-03-26
    reporterThis script is Copyright (C) 2015-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/82144
    titleDebian DLA-160-1 : sudo security update
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2014-0266.NASL
    descriptionAn updated sudo package that fixes one security issue is now available for Red Hat Enterprise Linux 5. The Red Hat Security Response Team has rated this update as having Moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. The sudo (superuser do) utility allows system administrators to give certain users the ability to run commands as root. A flaw was found in the way sudo handled its blacklist of environment variables. When the
    last seen2020-06-01
    modified2020-06-02
    plugin id72910
    published2014-03-11
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/72910
    titleCentOS 5 : sudo (CESA-2014:0266)
  • NASL familyMacOS X Local Security Checks
    NASL idMACOSX_10_10_5.NASL
    descriptionThe remote host is running a version of Mac OS X 10.10.x that is prior to 10.10.5. It is, therefore, affected by multiple vulnerabilities in the following components : - apache - apache_mod_php - Apple ID OD Plug-in - AppleGraphicsControl - Bluetooth - bootp - CloudKit - CoreMedia Playback - CoreText - curl - Data Detectors Engine - Date & Time pref pane - Dictionary Application - DiskImages - dyld - FontParser - groff - ImageIO - Install Framework Legacy - IOFireWireFamily - IOGraphics - IOHIDFamily - Kernel - Libc - Libinfo - libpthread - libxml2 - libxpc - mail_cmds - Notification Center OSX - ntfs - OpenSSH - OpenSSL - perl - PostgreSQL - python - QL Office - Quartz Composer Framework - Quick Look - QuickTime 7 - SceneKit - Security - SMBClient - Speech UI - sudo - tcpdump - Text Formats - udf Note that successful exploitation of the most serious issues can result in arbitrary code execution.
    last seen2020-06-01
    modified2020-06-02
    plugin id85408
    published2015-08-17
    reporterThis script is Copyright (C) 2015-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/85408
    titleMac OS X 10.10.x < 10.10.5 Multiple Vulnerabilities
  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-2146-1.NASL
    descriptionSebastien Macke discovered that Sudo incorrectly handled blacklisted environment variables when the env_reset option was disabled. A local attacker could use this issue to possibly run unintended commands by using blacklisted environment variables. In a default Ubuntu installation, the env_reset option is enabled by default. This issue only affected Ubuntu 10.04 LTS and Ubuntu 12.04 LTS. (CVE-2014-0106) It was discovered that the Sudo init script set a date in the past on existing timestamp files instead of using epoch to invalidate them completely. A local attacker could possibly modify the system time to attempt to reuse timestamp files. This issue only applied to Ubuntu 12.04 LTS, Ubuntu 12.10 and Ubuntu 13.10. (LP: #1223297). Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-03-18
    modified2014-03-14
    plugin id73016
    published2014-03-14
    reporterUbuntu Security Notice (C) 2014-2020 Canonical, Inc. / NASL script (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/73016
    titleUbuntu 10.04 LTS / 12.04 LTS / 12.10 / 13.10 : sudo vulnerabilities (USN-2146-1)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_SUDO-140320.NASL
    descriptionThis collective update for sudo provides fixes for the following issues : - Security policy bypass when env_reset is disabled. (CVE-2014-0106, bnc#866503) - Regression in the previous update that causes a segmentation fault when running
    last seen2020-06-05
    modified2014-04-04
    plugin id73327
    published2014-04-04
    reporterThis script is Copyright (C) 2014-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/73327
    titleSuSE 11.3 Security Update : sudo (SAT Patch Number 9044)
  • NASL familyOracle Linux Local Security Checks
    NASL idORACLELINUX_ELSA-2014-0266.NASL
    descriptionFrom Red Hat Security Advisory 2014:0266 : An updated sudo package that fixes one security issue is now available for Red Hat Enterprise Linux 5. The Red Hat Security Response Team has rated this update as having Moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. The sudo (superuser do) utility allows system administrators to give certain users the ability to run commands as root. A flaw was found in the way sudo handled its blacklist of environment variables. When the
    last seen2020-06-01
    modified2020-06-02
    plugin id72922
    published2014-03-11
    reporterThis script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/72922
    titleOracle Linux 5 : sudo (ELSA-2014-0266)
  • NASL familySlackware Local Security Checks
    NASL idSLACKWARE_SSA_2014-064-01.NASL
    descriptionNew sudo packages are available for Slackware 13.0, 13.1, and 13.37 to fix a security issue.
    last seen2020-06-01
    modified2020-06-02
    plugin id72838
    published2014-03-06
    reporterThis script is Copyright (C) 2014 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/72838
    titleSlackware 13.0 / 13.1 / 13.37 : sudo (SSA:2014-064-01)
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-201406-30.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-201406-30 (sudo: Privilege escalation) When the Sudo env_reset option is disabled (it is enabled by default), certain environment variables are not blacklisted as expected. Impact : A local attacker, authorized to run commands using sudo, can use this flaw to execute arbitrary code or escalate his privileges. Workaround : There is no known workaround at this time.
    last seen2020-06-01
    modified2020-06-02
    plugin id76287
    published2014-06-28
    reporterThis script is Copyright (C) 2014-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/76287
    titleGLSA-201406-30 : sudo: Privilege escalation

Redhat

advisories
bugzilla
id1071780
titleCVE-2014-0106 sudo: certain environment variables not sanitized when env_reset is disabled
oval
OR
  • commentRed Hat Enterprise Linux must be installed
    ovaloval:com.redhat.rhba:tst:20070304026
  • AND
    • commentRed Hat Enterprise Linux 5 is installed
      ovaloval:com.redhat.rhba:tst:20070331005
    • commentsudo is earlier than 0:1.7.2p1-29.el5_10
      ovaloval:com.redhat.rhsa:tst:20140266001
    • commentsudo is signed with Red Hat redhatrelease key
      ovaloval:com.redhat.rhsa:tst:20090267002
rhsa
idRHSA-2014:0266
released2014-03-10
severityModerate
titleRHSA-2014:0266: sudo security update (Moderate)
rpms
  • sudo-0:1.7.2p1-29.el5_10
  • sudo-debuginfo-0:1.7.2p1-29.el5_10

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 65997 CVE(CAN) ID: CVE-2014-0106 Sudo是允许系统管理员让普通用户执行一些或者全部的root命令的一个工具,减少了root用户的登陆和管理时间,提高了安全性。 sudo 1.6.9-1.8.4p5版本启用后env_reset后,没有正确过滤某些环境变量,在实现上存在本地权限提升漏洞,本地攻击者可利用此漏洞以提升的权限运行任意命令。 0 Todd Miller Sudo 1.6.9 - 1.8.4p5 厂商补丁: Todd Miller ----------- 目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载: http://www.sudo.ws/sudo/dist/
idSSV:61746
last seen2017-11-19
modified2014-03-12
published2014-03-12
reporterRoot
titleTodd Miller Sudo 'validate_env_vars()'本地权限提升漏洞