SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Security)  >   Sudo Vendors:   sudo.ws
(Debian Issues Fix) Sudo Environment Variable Validation Error May Let Local Users Run Arbitrary Commands
SecurityTracker Alert ID:  1012319
SecurityTracker URL:  http://securitytracker.com/id/1012319
CVE Reference:   CVE-2004-1051   (Links to External Site)
Date:  Nov 24 2004
Impact:   Execution of arbitrary code via local system, User access via local system
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): prior to 1.6.8p2
Description:   A vulnerability was reported in sudo. A local user may be able to run arbitrary shell commands.

Liam Helmer reported that the software does not properly validate environment variables. If the bash shell is installed on the target system and the local user has permission to execute bash scripts, then the local user can exploit a sudo feature to substitute arbitrary commands in any non-fully qualified programs called from the bash script.

Impact:   A local user may be able to execute arbitrary commands on the target system.
Solution:   Debian has released a fix.

Debian GNU/Linux 3.0 alias woody:

Source archives:

http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3.dsc
Size/MD5 checksum: 587 7e0e281b341966fba3cc20466b1e154e
http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3.diff.gz
Size/MD5 checksum: 12267 f3d0958f06ddf2fd1be7514b4ad6e562
http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6.orig.tar.gz
Size/MD5 checksum: 333074 4da4bf6cf31634cc7a17ec3b69fdc333

Alpha architecture:

http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_alpha.deb
Size/MD5 checksum: 151454 170391b07188d41496c2f59f5dca39c6

ARM architecture:

http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_arm.deb
Size/MD5 checksum: 141446 5b10c35c58bd29124c38a4468319cf32

Intel IA-32 architecture:

http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_i386.deb
Size/MD5 checksum: 135090 35bccb8d3e98c2744c3b59de7354903b

Intel IA-64 architecture:

http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_ia64.deb
Size/MD5 checksum: 172448 22393a9f963d07de325714d61fdeb3b1

HP Precision architecture:

http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_hppa.deb
Size/MD5 checksum: 147522 2d8554ba955b14400c09bba843a9abf1

Motorola 680x0 architecture:

http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_m68k.deb
Size/MD5 checksum: 132668 4ad7676118bb6362978d79ce44eef297

Big endian MIPS architecture:

http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_mips.deb
Size/MD5 checksum: 144396 4f272d539a01d91310c9a8600878f0ca

Little endian MIPS architecture:

http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_mipsel.deb
Size/MD5 checksum: 144246 5655087c2674e4fbd58c701b4c06ec7b

PowerPC architecture:

http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_powerpc.deb
Size/MD5 checksum: 140580 e296b3686cb6dee29ba30bb212a09d43

IBM S/390 architecture:

http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_s390.deb
Size/MD5 checksum: 140218 727a318f9a365baa2b6aed43e382f72e

Sun Sparc architecture:

http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_sparc.deb
Size/MD5 checksum: 143022 38a86a386e6cf03dc83222397e30b90f

Vendor URL:  www.sudo.ws/sudo/alerts/bash_functions.html (Links to External Site)
Cause:   Input validation error
Underlying OS:  Linux (Debian)
Underlying OS Comments:  3.0

Message History:   This archive entry is a follow-up to the message listed below.
Nov 13 2004 Sudo Environment Variable Validation Error May Let Local Users Run Arbitrary Commands



 Source Message Contents

Subject:  [SECURITY] [DSA 596-2] New sudo packages removes debug output


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- --------------------------------------------------------------------------
Debian Security Advisory DSA 596-2                     security@debian.org
http://www.debian.org/security/                             Martin Schulze
November 24th, 2004                     http://www.debian.org/security/faq
- --------------------------------------------------------------------------

Package        : sudo
Vulnerability  : missing input sanitising
Problem-Type   : local
Debian-specific: no
CVE ID         : CAN-2004-1051
Debian Bug     : 281665

This update removes the debug output which was left over in the update
from DSA 596-1.  For completeness below is the original advisory text:

   Liam Helmer noticed that sudo, a program that provides limited
   super user privileges to specific users, does not clean the
   environment sufficiently.  Bash functions and the CDPATH variable
   are still passed through to the program running as privileged user,
   leaving possibilities to overload system routines.  These
   vulnerabilities can only be exploited by users who have been
   granted limited super user privileges.

For the stable distribution (woody) these problems have been fixed in
version 1.6.6-1.3.

For the unstable distribution (sid) these problems have been fixed in
version 1.6.8p3.

We recommend that you upgrade your sudo package.


Upgrade Instructions
- --------------------

wget url
        will fetch the file for you
dpkg -i file.deb
        will install the referenced file.

If you are using the apt-get package manager, use the line for
sources.list as given below:

apt-get update
        will update the internal database
apt-get upgrade
        will install corrected packages

You may use an automated update by adding the resources from the
footer to the proper configuration.


Debian GNU/Linux 3.0 alias woody
- --------------------------------

  Source archives:

    http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3.dsc
      Size/MD5 checksum:      587 7e0e281b341966fba3cc20466b1e154e
    http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3.diff.gz
      Size/MD5 checksum:    12267 f3d0958f06ddf2fd1be7514b4ad6e562
    http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6.orig.tar.gz
      Size/MD5 checksum:   333074 4da4bf6cf31634cc7a17ec3b69fdc333

  Alpha architecture:

    http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_alpha.deb
      Size/MD5 checksum:   151454 170391b07188d41496c2f59f5dca39c6

  ARM architecture:

    http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_arm.deb
      Size/MD5 checksum:   141446 5b10c35c58bd29124c38a4468319cf32

  Intel IA-32 architecture:

    http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_i386.deb
      Size/MD5 checksum:   135090 35bccb8d3e98c2744c3b59de7354903b

  Intel IA-64 architecture:

    http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_ia64.deb
      Size/MD5 checksum:   172448 22393a9f963d07de325714d61fdeb3b1

  HP Precision architecture:

    http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_hppa.deb
      Size/MD5 checksum:   147522 2d8554ba955b14400c09bba843a9abf1

  Motorola 680x0 architecture:

    http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_m68k.deb
      Size/MD5 checksum:   132668 4ad7676118bb6362978d79ce44eef297

  Big endian MIPS architecture:

    http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_mips.deb
      Size/MD5 checksum:   144396 4f272d539a01d91310c9a8600878f0ca

  Little endian MIPS architecture:

    http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_mipsel.deb
      Size/MD5 checksum:   144246 5655087c2674e4fbd58c701b4c06ec7b

  PowerPC architecture:

    http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_powerpc.deb
      Size/MD5 checksum:   140580 e296b3686cb6dee29ba30bb212a09d43

  IBM S/390 architecture:

    http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_s390.deb
      Size/MD5 checksum:   140218 727a318f9a365baa2b6aed43e382f72e

  Sun Sparc architecture:

    http://security.debian.org/pool/updates/main/s/sudo/sudo_1.6.6-1.3_sparc.deb
      Size/MD5 checksum:   143022 38a86a386e6cf03dc83222397e30b90f


  These files will probably be moved into the stable distribution on
  its next update.

- ---------------------------------------------------------------------------------
For apt-get: deb http://security.debian.org/ stable/updates main
For dpkg-ftp: ftp://security.debian.org/debian-security dists/stable/updates/main
Mailing list: debian-security-announce@lists.debian.org
Package info: `apt-cache show <pkg>' and http://packages.debian.org/<pkg>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBpL5CW5ql+IAeqTIRAu1VAKCNh0NXRt5OXsVoR523uKuNMzXceQCgjORl
lLEF6qOfPz64UJKuu4kZar4=
=YvlD
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to debian-security-announce-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2020, SecurityGlobal.net LLC