EXIF security problem

Digital cameras store small image called "thumbnail" inside big image content. Usually
this image gets lost in later image processing, but sometimes thumbnail contain sensitive
information cropped off from big image.

This script allows you to view this EXIF data for possible sensitive information leaks.

Original picture:
EXIF Thumbnail:

Image contains headers
FILE.FileName: y081026-02f.jpg
FILE.FileDateTime: 0
FILE.FileSize: 109825
FILE.FileType: 2
FILE.MimeType: image/jpeg
FILE.SectionsFound: ANY_TAG, IFD0, THUMBNAIL, EXIF, INTEROP
COMPUTED.html: width="450" height="800"
COMPUTED.Height: 800
COMPUTED.Width: 450
COMPUTED.IsColor: 1
COMPUTED.ByteOrderMotorola: 0
COMPUTED.ApertureFNumber: f/4.0
COMPUTED.Thumbnail.FileType: 2
COMPUTED.Thumbnail.MimeType: image/jpeg
IFD0.Make: LEICA
IFD0.Model: D-LUX 3
IFD0.Orientation: 1
IFD0.XResolution: 720000/10000
IFD0.YResolution: 720000/10000
IFD0.ResolutionUnit: 2
IFD0.Software: Adobe Photoshop CS3 Windows
IFD0.DateTime: 2008:11:13 16:28:20
IFD0.YCbCrPositioning: 2
IFD0.UndefinedTag:0xC4A5: PrintIM0250d ¬ Ä€ ' '—'°''^'‹'Ë'å'
IFD0.Exif_IFD_Pointer: 432
THUMBNAIL.Compression: 6
THUMBNAIL.XResolution: 72/1
THUMBNAIL.YResolution: 72/1
THUMBNAIL.ResolutionUnit: 2
THUMBNAIL.JPEGInterchangeFormat: 1058
THUMBNAIL.JPEGInterchangeFormatLength: 6160
EXIF.ExposureTime: 10/1600
EXIF.FNumber: 40/10
EXIF.ExposureProgram: 2
EXIF.ISOSpeedRatings: 100
EXIF.ExifVersion: 0221
EXIF.DateTimeOriginal: 2008:10:26 07:38:57
EXIF.DateTimeDigitized: 2008:10:26 07:38:57
EXIF.ComponentsConfiguration: 
EXIF.CompressedBitsPerPixel: 4/1
EXIF.ExposureBiasValue: 0/100
EXIF.MaxApertureValue: 30/10
EXIF.MeteringMode: 5
EXIF.LightSource: 10
EXIF.Flash: 16
EXIF.FocalLength: 63/10
EXIF.FlashPixVersion: 0100
EXIF.ColorSpace: 1
EXIF.ExifImageWidth: 450
EXIF.ExifImageLength: 800
EXIF.InteroperabilityOffset: 932
EXIF.SensingMethod: 2
EXIF.FileSource: 
EXIF.SceneType: 
EXIF.CustomRendered: 1
EXIF.ExposureMode: 0
EXIF.WhiteBalance: 1
EXIF.DigitalZoomRatio: 0/10
EXIF.FocalLengthIn35mmFilm: 28
EXIF.SceneCaptureType: 0
EXIF.GainControl: 0
EXIF.Contrast: 0
EXIF.Saturation: 0
EXIF.Sharpness: 0
INTEROP.InterOperabilityIndex: R98
INTEROP.InterOperabilityVersion: 0100
http://erooups.com/img/img3/20100326/erotic/daily_erotic_picdump_225_31.jpg
http://1.bp.blogspot.com/-q0CE_NcMuFY/TYHTPvQbW3I/AAAAAAAABqU/Sqbp2VqlY_Y/s1600/kekasih'
http://4.bp.blogspot.com/-qsy5Frvmun4/TuYoFrE5VJI/AAAAAAAAGGs/k_k8_hcYZG0/s1600/Fotografia0297.jpg''
http://1.bp.blogspot.com/-q0CE_NcMuFY/TYHTPvQbW3I/AAAAAAAABqU/Sqbp2VqlY_Y/s1600/kekasih''
+http://bvsystems.be/demo_small_1.jpg
http://inapcache.boston.com/universal/site_graphics/blogs/bigpicture/themine/bp4.jpg
http://2.bp.blogspot.com/_v_ABHm1ZKQ0/SVUQNMOSZ2I/AAAAAAAAAEE/CnVfJ3wNkCE/s1600/081226_224011.JPG
+http://www.swaminarayan.org/vicharan/2008/10/02/photo/gondal/y081026-02f.jpg
http://2.bp.blogspot.com/_v_ABHm1ZKQ0/SVUQNMOSZ2I/AAAAAAAAAEE/CnVfJ3wNkCE/s320/081226_224011.JPG
http://inapcache.boston.com/universal/site_graphics/blogs/bigpicture/themine/bp10.jpg
http://inapcache.boston.com/universal/site_graphics/blogs/bigpicture/afghanistan_082011/bp21.jpg
http://4.bp.blogspot.com/-qsy5Frvmun4/TuYoFrE5VJI/AAAAAAAAGGs/k_k8_hcYZG0/s1600/Fotografia0297.jpg
http://3.bp.blogspot.com/-stmneEmPFzE/UL1qi3S-5UI/AAAAAAAACYE/SnSRrYJZwNo/s640/I
http://1.bp.blogspot.com/-q0CE_NcMuFY/TYHTPvQbW3I/AAAAAAAABqU/Sqbp2VqlY_Y/s1600/kekasih
http://farm4.static.flickr.com/3142/2367820887_10ab0bce09_o.jpg all salbum/2787/
http://3.bp.blogspot.com/-stmneEmPFzE/UL1qi3S-5UI/AAAAAAAACYE/SnSRrYJZwNo/s640/IMG_1470.JPG
http://1.bp.blogspot.com/-q0CE_NcMuFY/TYHTPvQbW3I/AAAAAAAABqU/Sqbp2VqlY_Y/s1600/kekasih+gelap.jpg
+http://www.bvsystems.be/demo_small_1.jpg
+http://cms.vantan.co.jp/upload/media_library/blog/20140521134630F3dRrwWQ6kuihjpX/800x800_0_90.jpg
+http://ec2.images-amazon.com/images/I/61IzOWD0gkL.jpg
+http://swaminarayan.org/vicharan/2008/10/02/photo/gondal/y081026-02f.jpg
http://1.bp.blogspot.com/-q0CE_NcMuFY/TYHTPvQbW3I/AAAAAAAABqU/Sqbp2VqlY_Y/s1600/kekasih%2Bgelap.jpg
Array
(
    [start] => 1714080488.1416
    [connected] => 1714080488.1418
    [startfirstexif] => 1714080488.1418
    [start2ndexif] => 1714080488.3446
    [startinsert] => 1714080488.4672
    [finishinsert] => 1714080488.4675
    [startselect] => 1714080488.4675
    [finishselect] => 1714080488.4676
)