GIMP FIT File Format DoS

看板Bugtraq作者時間13年前 (2012/06/30 02:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
Summary =3D=3D=3D=3D=3D=3D=3D There is a file handling DoS in GIMP (the GNU Image Manipulation = Program) for the 'fit' file format affecting all versions (Windows and Linux) up to = and=20 including 2.8.0. A file in the fit format with a malformed 'XTENSION' = header=20 will cause a crash in the GIMP program. CVE number: CVE-2012-3236 Vendor Homepage: http://www.gimp.org/ Date reported to vendor: 25/05/2012 Found by Joseph Sheridan: href=3D"http://www.reactionpenetrationtesting.co.uk/joseph-sheridan.html This advisory is posted at: http://www.reactionpenetrationtesting.co.uk/FIT-file-handling-DoS.html PoC file is available here: http://www.reactionpenetrationtesting.co.uk/vuln.fit Affected Products =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Vulnerable Products +------------------ The following products are known to be affected by this vulnerability: * GIMP <=3D 2.8.0 (Windows or Linux builds) Products Not Vulnerable +-------------------------------- * GIMP 2.8.1=20 Details =3D=3D=3D=3D=3D=3D=3D There is a file handling DoS in GIMP (the GNU Image Manipulation = Program) for the 'fit' file format affecting all versions (Windows and Linux) up to = 2.8.0.=20 A file in the fit format with a malformed 'XTENSION' header will cause a = crash=20 in the GIMP program. The flaw is triggered by opening a crafted 'fit' = file or=20 allowing the file explorer dialog to preview the file. A file in the fit format starting as follows will trigger the crash: XTENSIONaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaaaHEADER2... The vulnerable code is in the fits-io.c lines where the program attempts = to=20 copy from a null pointer: { fdat =3D fits_decode_card (fits_search_card (hdr, "XTENSION"), = typ_fstring); strcpy (hdulist->xtension, fdat->fstring); } =20 This code can be patched by changing it to the following (as GIMP = 2.8.1): =20 fdat =3D fits_decode_card (fits_search_card (hdr, "XTENSION"), = typ_fstring); if(fdat !=3D NULL) { strcpy (hdulist->xtension, fdat->fstring); } else { strcpy (errmsg, "No valid XTENSION header found."); goto err_return; } =20 Impact =3D=3D=3D=3D=3D=3D Successful exploitation of the vulnerability may result in an = application=20 crash and denial of service. Solution =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The GIMP team have provided an update for this issue (release 2.8.1). Workarounds =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The fits-io.c file can be patched as above. Distribution =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D In addition to posting on the website, a text version of this notice is posted to the following e-mail and Usenet news recipients. * bugtraq () securityfocus com * full-disclosure () lists grok org uk * oss [dash] security [dash] subscribe [at] lists [dot] openwall [dot] = com=20 Future updates of this advisory, if any, will be placed on the = ReactionIS corporate website, but may or may not be actively announced on mailing lists or newsgroups. Users concerned about this problem are encouraged to check the URL below for any updates: http://www.reactionpenetrationtesting.co.uk/FIT-file-handling-DoS.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D Reaction Information Security=20 Lombard House Business Centre, Suite 117, 12-17 Upper Bridge Street, Canterbury, Kent, CT1 2NF Phone: +44 (0)1227 785050 Email: research () reactionis {dot} co {dot} uk Web: http://www.reactionpenetrationtesting.co.uk Joseph Sheridan Technical Director Principal Consultant CHECK Team Leader, CREST Infrastructure, CREST Application, CISSP Tel: 07812052515 Web: www.reactionis.com Email: joe@reactionis.co.uk Reaction Information Security Limited. Registered in England No: 6929383 Registered Office: 1, The Mews, 69 New Dover Road, Canterbury, CT1 3DZ =20 This email and any files transmitted with it are confidential and are = intended solely for the use of the individual to whom they are = addressed. If you are not the intended recipient please notify the = sender. Any unauthorised dissemination or copying of this email or its = attachments and any use or disclosure of any information contained in = them, is strictly prohibited. =EF=81=90 Please consider the environment before printing this email
文章代碼(AID): #1FxVIZ-i (Bugtraq)