exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

iDEFENSE Security Advisory 2004-12-21.5

iDEFENSE Security Advisory 2004-12-21.5
Posted Dec 31, 2004
Authored by iDefense Labs, infamous41md | Site idefense.com

iDEFENSE Security Advisory 12.21.2004-5 - Remote exploitation of an integer overflow in libtiff may allow for the execution of arbitrary code. The overflow occurs in the parsing of TIFF files set with the STRIPOFFSETS flag in libtiff/tif_dirread.c.

tags | advisory, remote, overflow, arbitrary
SHA-256 | 8a8254c9fc0b1a9b393e44e322fac00ab2ce5872586a7de59b5126de5d2f2431

iDEFENSE Security Advisory 2004-12-21.5

Change Mirror Download
libtiff STRIPOFFSETS Integer Overflow Vulnerability

iDEFENSE Security Advisory 12.21.04
www.idefense.com/application/poi/display?id=173&type=vulnerabilities
December 21, 2004

I. BACKGROUND

libtiff provides support for the Tag Image File Format (TIFF), a widely
used format for storing image data.

More information is available at the following site:
http://www.remotesensing.org/libtiff/

II. DESCRIPTION

Remote exploitation of an integer overflow in libtiff may allow for the
execution of arbitrary code.

The overflow occurs in the parsing of TIFF files set with the
STRIPOFFSETS flag in libtiff/tif_dirread.c. In the TIFFFetchStripThing()

function, the number of strips (nstrips) is used directly in a
CheckMalloc() routine without sanity checking. The call ultimately boils

down to:

malloc(user_supplied_int*size(int32));

When supplied 0x40000000 as the user supplied integer, malloc is called
with a length argument of 0. This has the effect of returning the
smallest possible malloc chunk. A user controlled buffer is subsequently

copied to that small heap buffer, causing a heap overflow.

When exploited, it is possible to overwrite heap structures and seize
control of execution.

III. ANALYSIS

An attacker can exploit the above-described vulnerability to execute
arbitrary code under the permissions of the target user. Successful
exploitation requires that the attacker convince the end user to open
the malicious TIFF file using an application linked with a vulnerable
version of libtiff. Exploitation of this vulnerability against a remote
target is difficult because of the precision required in the attack.

IV. DETECTION

iDEFENSE has confirmed this vulnerability in libtiff 3.6.1. Changes were

introduced in libtiff 3.7.0 that had the effect of fixing this
vulnerability.

The following vendors provide susceptible libtiff packages within their
respective operating system distributions:

- Gentoo Linux
- Fedora Linux
- RedHat Linux
- SuSE Linux
- Debian Linux

V. WORKAROUND

Only open TIFF files from trusted users.

VI. VENDOR RESPONSE

This issue is addressed in libtiff 3.7.0 and 3.7.1.

VII. CVE INFORMATION

A Mitre Corp. Common Vulnerabilities and Exposures (CVE) number has not
been assigned yet.

VIII. DISCLOSURE TIMELINE

12/15/2004 Discovery of fix in later software version
12/21/2004 Public disclosure

IX. CREDIT

infamous41md[at]hotpop.com is credited with this discovery.

Get paid for vulnerability research
http://www.idefense.com/poi/teams/vcp.jsp

X. LEGAL NOTICES

Copyright (c) 2004 iDEFENSE, Inc.

Permission is granted for the redistribution of this alert
electronically. It may not be edited in any way without the express
written consent of iDEFENSE. If you wish to reprint the whole or any
part of this alert in any other medium other than electronically, please
email customerservice@idefense.com for permission.

Disclaimer: The information in the advisory is believed to be accurate
at the time of publishing based on currently available information. Use
of the information constitutes acceptance for use in an AS IS condition.
There are no warranties with regard to this information. Neither the
author nor the publisher accepts any liability for any direct, indirect,
or consequential loss or damage arising from use of, or reliance on,
this information.
Login or Register to add favorites

File Archive:

May 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    44 Files
  • 2
    May 2nd
    5 Files
  • 3
    May 3rd
    11 Files
  • 4
    May 4th
    0 Files
  • 5
    May 5th
    0 Files
  • 6
    May 6th
    28 Files
  • 7
    May 7th
    3 Files
  • 8
    May 8th
    4 Files
  • 9
    May 9th
    54 Files
  • 10
    May 10th
    12 Files
  • 11
    May 11th
    0 Files
  • 12
    May 12th
    0 Files
  • 13
    May 13th
    17 Files
  • 14
    May 14th
    11 Files
  • 15
    May 15th
    17 Files
  • 16
    May 16th
    0 Files
  • 17
    May 17th
    0 Files
  • 18
    May 18th
    0 Files
  • 19
    May 19th
    0 Files
  • 20
    May 20th
    0 Files
  • 21
    May 21st
    0 Files
  • 22
    May 22nd
    0 Files
  • 23
    May 23rd
    0 Files
  • 24
    May 24th
    0 Files
  • 25
    May 25th
    0 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close