Dmitry_Baryshev ksquirrel-libs库RGBE文件解析栈溢出漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1183568 漏洞类型 缓冲区溢出
发布时间 2009-02-25 更新时间 2009-02-25
CVE编号 CVE-2008-5263 CNNVD-ID CNNVD-200902-582
漏洞平台 N/A CVSS评分 6.8
|漏洞来源
https://www.securityfocus.com/bid/33902
https://cxsecurity.com/issue/WLB-2009020054
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200902-582
|漏洞详情
ksquirrel-libs是一组KSquirrel的图形解码库。ksquirrel-libs库的kernel/kls_hdr/fmt_codec_hdr.cpp文件中的mt_codec::getHdrHead()函数存在栈溢出漏洞,如果用户受骗使用链接到该库的应用程序打开了特制的RadianceRGBE(*.hdr)文件的话,就可以触发这个溢出,导致执行任意代码。
|漏洞EXP
====================================================================== 

                     Secunia Research 25/02/2009

         - ksquirrel-libs Radiance RGBE Buffer Overflows -

====================================================================== 
Table of Contents

Affected Software....................................................1
Severity.............................................................2
Vendor's Description of Software.....................................3
Description of Vulnerability.........................................4
Solution.............................................................5
Time Table...........................................................6
Credits..............................................................7
References...........................................................8
About Secunia........................................................9
Verification........................................................10

====================================================================== 
1) Affected Software 

* ksquirrel-libs 0.8.0.

NOTE: Other versions may also be affected.

====================================================================== 
2) Severity 

Rating: Moderately critical
Impact: System access
Where:  From remote

====================================================================== 
3) Vendor's Description of Software 

"ksquirrel-libs is a set of image codecs for KSquirrel. It is written
on pure C++, so you can simply use it in any other project. At this
time ksquirrel-libs supports 57 image formats.".

Product Link:
http://ksquirrel.sourceforge.net/subprojects.php

====================================================================== 
4) Description of Vulnerability

Secunia Research has discovered some buffer overflows ksquirrel-libs,
which can be exploited by malicious people to compromise an
application using the library.

The vulnerabilities are caused due to boundary errors within the
"mt_codec::getHdrHead()" function in kernel/kls_hdr/fmt_codec_hdr.cpp,
which can be exploited to cause stack-based buffer overflows by e.g.
tricking a user into opening a specially crafted Radiance RGBE 
(*.hdr) file.

====================================================================== 
5) Solution 

Do not open untrusted Radiance RGBE images in an application using
ksquirrel-libs.

====================================================================== 
6) Time Table 

09/01/2009 - Vendor notified.
04/02/2009 - Requested status update from vendor.
25/02/2009 - Public disclosure.

====================================================================== 
7) Credits 

Discovered by Stefan Cornelius, Secunia Research.

====================================================================== 
8) References

The Common Vulnerabilities and Exposures (CVE) project has assigned 
CVE-2008-5263 for the vulnerability.

====================================================================== 
9) About Secunia

Secunia offers vulnerability management solutions to corporate
customers with verified and reliable vulnerability intelligence
relevant to their specific system configuration:

http://secunia.com/advisories/business_solutions/

Secunia also provides a publicly accessible and comprehensive advisory
database as a service to the security community and private 
individuals, who are interested in or concerned about IT-security.

http://secunia.com/advisories/

Secunia believes that it is important to support the community and to
do active vulnerability research in order to aid improving the 
security and reliability of software in general:

http://secunia.com/secunia_research/

Secunia regularly hires new skilled team members. Check the URL below
to see currently vacant positions:

http://secunia.com/corporate/jobs/

Secunia offers a FREE mailing list called Secunia Security Advisories:

http://secunia.com/advisories/mailing_lists/

====================================================================== 
10) Verification 

Please verify this advisory by visiting the Secunia website:
http://secunia.com/secunia_research/2008-63/

Complete list of vulnerability reports published by Secunia Research:
http://secunia.com/secunia_research/

======================================================================
|受影响的产品
Baryshev Dmitry ksquirrel-libs 0.8 Baryshev Dmitry KSquirrel 0.8
|参考资料

来源:XF
名称:ksquirrellibs-rgbe-bo(48901)
链接:http://xforce.iss.net/xforce/xfdb/48901
来源:VUPEN
名称:ADV-2009-0528
链接:http://www.vupen.com/english/advisories/2009/0528
来源:BID
名称:33902
链接:http://www.securityfocus.com/bid/33902
来源:BUGTRAQ
名称:20090225SecuniaResearch:ksquirrel-libsRadianceRGBEBufferOverflows
链接:http://www.securityfocus.com/archive/1/archive/1/501228/100/0/threaded
来源:MISC
链接:http://secunia.com/secunia_research/2008-63/
来源:SECUNIA
名称:33469
链接:http://secunia.com/advisories/33469