LibTIFF explained

LibTIFF
Collapsible:yes
Author:Sam Leffler,
Silicon Graphics
Programming Language:C
License:BSD-like licence

LibTIFF is a library for reading and writing Tag Image File Format (abbreviated TIFF) files. The set also contains command line tools for processing TIFFs. It is distributed in source code and can be found as binary builds for all kinds of platforms. The LibTIFF software was originally written by Sam Leffler while working for Silicon Graphics.

Features

Support for BigTIFF, files larger than 4 GiB, was included for LibTIFF 4.0.

Tiff tools

As of version 4.6.0 several tools are no longer built by default, as they suffered from lack of maintenance. These tools are still available as source code. The only remaining tools supported are: tiffinfo, tiffdump, tiffcp, tiffset and tiffsplit.

Exploits

A TIFF file is composed of small descriptor blocks containing offsets into the file which point to a variety of data types. Incorrect offset values can cause programs to attempt to read erroneous portions of the file or attempt to read past the physical end of file. Improperly encoded packet or line lengths within the file can cause rendering programs which lack appropriate boundary checks to overflow their internal buffers.

Multiple buffer overflows have been found in LibTIFF.[1] [2] [3] Some of these have also been used to execute unsigned code on the PlayStation Portable,[4] as well as run third-party applications on the iPhone and iPod Touch firmware.[5]

External links

Notes and References

  1. http://secunia.com/advisories/15320/ libTIFF BitsPerSample Tag Buffer Overflow Vulnerability
  2. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-1544 Stack-based buffer overflow in libTIFF before 3.7.2 allows remote attackers to execute arbitrary code via a TIFF file with a malformed BitsPerSample tag.
  3. http://secunia.com/advisories/21304/ libTIFF Multiple Vulnerabilities
  4. http://secunia.com/advisories/21672/ Sony PSP TIFF Image Viewing Code Execution Vulnerability
  5. http://www.macnn.com/articles/07/10/17/iphone.tiff.exploit.detail/ Details of iPhone TIFF exploit posted