ID CVE-2011-0010
Summary check.c in sudo 1.7.x before 1.7.4p5, when a Runas group is configured, does not require a password for command execution that involves a gid change but no uid change, which allows local users to bypass an intended authentication requirement via the -g option to a sudo command.
References
Vulnerable Configurations
  • cpe:2.3:a:todd_miller:sudo:1.7.0:*:*:*:*:*:*:*
    cpe:2.3:a:todd_miller:sudo:1.7.0:*:*:*:*:*:*:*
  • cpe:2.3:a:todd_miller:sudo:1.7.1:*:*:*:*:*:*:*
    cpe:2.3:a:todd_miller:sudo:1.7.1:*:*:*:*:*:*:*
  • cpe:2.3:a:todd_miller:sudo:1.7.2:*:*:*:*:*:*:*
    cpe:2.3:a:todd_miller:sudo:1.7.2:*:*:*:*:*:*:*
  • cpe:2.3:a:todd_miller:sudo:1.7.2p1:*:*:*:*:*:*:*
    cpe:2.3:a:todd_miller:sudo:1.7.2p1:*:*:*:*:*:*:*
  • cpe:2.3:a:todd_miller:sudo:1.7.2p2:*:*:*:*:*:*:*
    cpe:2.3:a:todd_miller:sudo:1.7.2p2:*:*:*:*:*:*:*
  • cpe:2.3:a:todd_miller:sudo:1.7.2p3:*:*:*:*:*:*:*
    cpe:2.3:a:todd_miller:sudo:1.7.2p3:*:*:*:*:*:*:*
  • cpe:2.3:a:todd_miller:sudo:1.7.2p4:*:*:*:*:*:*:*
    cpe:2.3:a:todd_miller:sudo:1.7.2p4:*:*:*:*:*:*:*
  • cpe:2.3:a:todd_miller:sudo:1.7.2p5:*:*:*:*:*:*:*
    cpe:2.3:a:todd_miller:sudo:1.7.2p5:*:*:*:*:*:*:*
  • cpe:2.3:a:todd_miller:sudo:1.7.2p6:*:*:*:*:*:*:*
    cpe:2.3:a:todd_miller:sudo:1.7.2p6:*:*:*:*:*:*:*
  • cpe:2.3:a:todd_miller:sudo:1.7.2p7:*:*:*:*:*:*:*
    cpe:2.3:a:todd_miller:sudo:1.7.2p7:*:*:*:*:*:*:*
  • cpe:2.3:a:todd_miller:sudo:1.7.3b1:*:*:*:*:*:*:*
    cpe:2.3:a:todd_miller:sudo:1.7.3b1:*:*:*:*:*:*:*
  • cpe:2.3:a:todd_miller:sudo:1.7.4:*:*:*:*:*:*:*
    cpe:2.3:a:todd_miller:sudo:1.7.4:*:*:*:*:*:*:*
  • cpe:2.3:a:todd_miller:sudo:1.7.4p1:*:*:*:*:*:*:*
    cpe:2.3:a:todd_miller:sudo:1.7.4p1:*:*:*:*:*:*:*
  • cpe:2.3:a:todd_miller:sudo:1.7.4p2:*:*:*:*:*:*:*
    cpe:2.3:a:todd_miller:sudo:1.7.4p2:*:*:*:*:*:*:*
  • cpe:2.3:a:todd_miller:sudo:1.7.4p3:*:*:*:*:*:*:*
    cpe:2.3:a:todd_miller:sudo:1.7.4p3:*:*:*:*:*:*:*
  • cpe:2.3:a:todd_miller:sudo:1.7.4p4:*:*:*:*:*:*:*
    cpe:2.3:a:todd_miller:sudo:1.7.4p4:*:*:*:*:*:*:*
CVSS
Base: 4.4 (as of 05-01-2018 - 02:29)
Impact:
Exploitability:
CWE CWE-264
CAPEC
  • Manipulating Web Input to File System Calls
    An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files. When the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high.
  • Using Malicious Files
    An attack of this type exploits a system's configuration that allows an attacker to either directly access an executable file, for example through shell access; or in a possible worst case allows an attacker to upload a file and then execute it. Web servers, ftp servers, and message oriented middleware systems which have many integration points are particularly vulnerable, because both the programmers and the administrators must be in synch regarding the interfaces and the correct privileges for each interface.
  • Target Programs with Elevated Privileges
    This attack targets programs running with elevated privileges. The attacker would try to leverage a bug in the running program and get arbitrary code to execute with elevated privileges. For instance an attacker would look for programs that write to the system directories or registry keys (such as HKLM, which stores a number of critical Windows environment variables). These programs are typically running with elevated privileges and have usually not been designed with security in mind. Such programs are excellent exploit targets because they yield lots of power when they break. The malicious user try to execute its code at the same level as a privileged system call.
  • Restful Privilege Elevation
    Rest uses standard HTTP (Get, Put, Delete) style permissions methods, but these are not necessarily correlated generally with back end programs. Strict interpretation of HTTP get methods means that these HTTP Get services should not be used to delete information on the server, but there is no access control mechanism to back up this logic. This means that unless the services are properly ACL'd and the application's service implementation are following these guidelines then an HTTP request can easily execute a delete or update on the server side. The attacker identifies a HTTP Get URL such as http://victimsite/updateOrder, which calls out to a program to update orders on a database or other resource. The URL is not idempotent so the request can be submitted multiple times by the attacker, additionally, the attacker may be able to exploit the URL published as a Get method that actually performs updates (instead of merely retrieving data). This may result in malicious or inadvertent altering of data on the server.
Access
VectorComplexityAuthentication
LOCAL MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
cvss-vector via4 AV:L/AC:M/Au:N/C:P/I:P/A:P
redhat via4
advisories
  • bugzilla
    id 688640
    title Add comment about the visiblepw option into sudoers
    oval
    OR
    • comment Red Hat Enterprise Linux must be installed
      oval oval:com.redhat.rhba:tst:20070304026
    • AND
      • comment Red Hat Enterprise Linux 6 is installed
        oval oval:com.redhat.rhba:tst:20111656003
      • comment sudo is earlier than 0:1.7.4p5-5.el6
        oval oval:com.redhat.rhsa:tst:20110599001
      • comment sudo is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhba:tst:20130363002
    rhsa
    id RHSA-2011:0599
    released 2011-05-19
    severity Low
    title RHSA-2011:0599: sudo security and bug fix update (Low)
  • bugzilla
    id 697111
    title sudo -l inserts new lines based on terminal width, causing errors when output is piped.
    oval
    OR
    • comment Red Hat Enterprise Linux must be installed
      oval oval:com.redhat.rhba:tst:20070304026
    • AND
      • comment Red Hat Enterprise Linux 5 is installed
        oval oval:com.redhat.rhba:tst:20070331005
      • comment sudo is earlier than 0:1.7.2p1-13.el5
        oval oval:com.redhat.rhsa:tst:20120309001
      • comment sudo is signed with Red Hat redhatrelease key
        oval oval:com.redhat.rhsa:tst:20090267002
    rhsa
    id RHSA-2012:0309
    released 2012-02-21
    severity Low
    title RHSA-2012:0309: sudo security and bug fix update (Low)
rpms
  • sudo-0:1.7.4p5-5.el6
  • sudo-debuginfo-0:1.7.4p5-5.el6
  • sudo-0:1.7.2p1-13.el5
  • sudo-debuginfo-0:1.7.2p1-13.el5
refmap via4
bid 45774
confirm
fedora
  • FEDORA-2011-0455
  • FEDORA-2011-0470
gentoo GLSA-201203-06
mandriva MDVSA-2011:018
misc http://www.sudo.ws/repos/sudo/rev/07d1b0ce530e
mlist
  • [oss-security] 20110111 CVE request: sudo does not ask for password on GID changes
  • [oss-security] 20110112 Re: CVE request: sudo does not ask for password on GID changes
osvdb 70400
secunia
  • 42886
  • 42949
  • 42968
  • 43068
  • 43282
slackware SSA:2011-041-05
suse SUSE-SR:2011:002
ubuntu USN-1046-1
vupen
  • ADV-2011-0089
  • ADV-2011-0182
  • ADV-2011-0195
  • ADV-2011-0199
  • ADV-2011-0212
  • ADV-2011-0362
xf sudo-groupid-privilege-escalation(64636)
Last major update 05-01-2018 - 02:29
Published 18-01-2011 - 18:03
Last modified 05-01-2018 - 02:29
Back to Top