Sun JDK JPG/BMP解析器多个安全漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1112961 漏洞类型 数字错误
发布时间 2007-05-16 更新时间 2007-10-05
CVE编号 CVE-2007-2788 CNNVD-ID CNNVD-200705-423
漏洞平台 Linux CVSS评分 6.8
|漏洞来源
https://www.exploit-db.com/exploits/30043
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200705-423
|漏洞详情
SunJDK是一个流行的Java软件开发工具包。SunJDK在处理畸形包含畸形内容的JPG/BMP图形文件时存在整数溢出漏洞,远程攻击者可能利用此漏洞通过诱使用户处理恶意文件控制用户机器。SunJDK捆绑了一个基于javax.imagio.ImageIO类的图形解析API,程序以如下方式执行这个API:importjavax.imageio.ImageIO;importjavax.imageio.ImageReader;importjava.util.Iterator;importjava.io.InputStream;importjava.io.FileInputStream;importjava.io.ByteArrayInputStream;importjavax.imageio.stream.MemoryCacheImageInputStream;importjavax.imageio.stream.ImageInputStream;publicclassImgReader{publicstaticvoidmain(String[]args)throwsException{InputStreamis=newFileInputStream(args[0]);ImageInputStreamiis=newMemoryCacheImageInputStream(is);Iteratorit=ImageIO.getImageReaders(iis);ImageReaderreader=it.next();reader.setInput(iis);intwidth=reader.getWidth(0);}}程序将第一个命令行参数用作图形文件名并传送给JDK图形解析API。JPEG和BMP解析器支持嵌入的ICC配置文件,如果用户受骗打开了设置有恶意的嵌入ICC配置文件的JPG和BMP图形的话,就可能触发整数溢出,导致JVM崩溃或执行任意指令。此外BMP文件解析器在解析BMP文件时试图打开本地文件(/dev/tty),这个过程可能导致图形解析线程挂起。
|漏洞EXP
source: http://www.securityfocus.com/bid/24004/info

Sun JDK is prone to a multiple vulnerabilities.

An attacker can exploit these issues to crash the affected application, effectively denying service. The attacker may also be able to execute arbitrary code, which may facilitate a compromise of the underlying system.

Sun JDK 1.5.0_07-b03 is vulnerable to these issues; other versions may also be affected. 

https://github.com/offensive-security/exploit-database-bin-sploits/raw/master/bin-sploits/30043.zip

CVE: 2007-2788 & 2007-2789
OSVDB-ID: 36199 & 36200
|参考资料

来源:VU#138545
名称:VU#138545
链接:http://www.kb.cert.org/vuls/id/138545
来源:VUPEN
名称:ADV-2007-1836
链接:http://www.frsirt.com/english/advisories/2007/1836
来源:SECUNIA
名称:25295
链接:http://secunia.com/advisories/25295
来源:XF
名称:sun-java-image-bo(34652)
链接:http://xforce.iss.net/xforce/xfdb/34652
来源:XF
名称:sunjava-iccprofile-overflow(34318)
链接:http://xforce.iss.net/xforce/xfdb/34318
来源:SECTRACK
名称:1018182
链接:http://www.securitytracker.com/id?1018182
来源:BID
名称:24267
链接:http://www.securityfocus.com/bid/24267
来源:BID
名称:24004
链接:http://www.securityfocus.com/bid/24004
来源:REDHAT
名称:RHSA-2007:1086
链接:http://www.redhat.com/support/errata/RHSA-2007-1086.html
来源:REDHAT
名称:RHSA-2007:0956
链接:http://www.redhat.com/support/errata/RHSA-2007-0956.html
来源:REDHAT
名称:RHSA-2007:0829
链接:http://www.redhat.com/support/errata/RHSA-2007-0829.html
来源:REDHAT
名称:RHSA-2007:0817
链接:http://www.redhat.com/support/errata/RHSA-2007-0817.html
来源:SUSE
名称:SUSE-SA:2007:056
链接:http://www.novell.com/linux/security/advisories/2007_56_ibmjav