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.FileDateTime: 0
FILE.FileSize: 366385
FILE.FileType: 2
FILE.MimeType: image/jpeg
FILE.SectionsFound: ANY_TAG, IFD0, THUMBNAIL, EXIF, GPS, INTEROP
COMPUTED.html: width="800" height="550"
COMPUTED.Height: 550
COMPUTED.Width: 800
COMPUTED.IsColor: 1
COMPUTED.ByteOrderMotorola: 1
COMPUTED.ApertureFNumber: f/5.0
COMPUTED.UserComment:
COMPUTED.UserCommentEncoding: ASCII
COMPUTED.Thumbnail.FileType: 2
COMPUTED.Thumbnail.MimeType: image/jpeg
IFD0.Make: NIKON CORPORATION
IFD0.Model: NIKON D300
IFD0.Orientation: 1
IFD0.XResolution: 3000000/10000
IFD0.YResolution: 3000000/10000
IFD0.ResolutionUnit: 2
IFD0.Software: Adobe Photoshop Elements 5.0 (20060914.r.77) Windows
IFD0.DateTime: 2008:03:28 16:09:35
IFD0.YCbCrPositioning: 2
IFD0.Exif_IFD_Pointer: 268
IFD0.GPS_IFD_Pointer: 924
THUMBNAIL.Compression: 6
THUMBNAIL.XResolution: 72/1
THUMBNAIL.YResolution: 72/1
THUMBNAIL.ResolutionUnit: 2
THUMBNAIL.JPEGInterchangeFormat: 1038
THUMBNAIL.JPEGInterchangeFormatLength: 4768
EXIF.ExposureTime: 10/600
EXIF.FNumber: 50/10
EXIF.ExposureProgram: 2
EXIF.ISOSpeedRatings: 800
EXIF.ExifVersion: 0221
EXIF.DateTimeOriginal: 2008:03:25 18:41:01
EXIF.DateTimeDigitized: 2008:03:25 18:41:01
EXIF.ComponentsConfiguration: 
EXIF.CompressedBitsPerPixel: 4/1
EXIF.ExposureBiasValue: 0/6
EXIF.MaxApertureValue: 32/10
EXIF.MeteringMode: 5
EXIF.LightSource: 0
EXIF.Flash: 13
EXIF.FocalLength: 1050/10
EXIF.UserComment: ASCII
EXIF.SubSecTime: 00
EXIF.SubSecTimeOriginal: 00
EXIF.SubSecTimeDigitized: 00
EXIF.FlashPixVersion: 0100
EXIF.ColorSpace: 1
EXIF.ExifImageWidth: 800
EXIF.ExifImageLength: 550
EXIF.InteroperabilityOffset: 892
EXIF.SensingMethod: 2
EXIF.FileSource: 
EXIF.SceneType: 
EXIF.CFAPattern: 
EXIF.CustomRendered: 0
EXIF.ExposureMode: 0
EXIF.WhiteBalance: 0
EXIF.DigitalZoomRatio: 1/1
EXIF.FocalLengthIn35mmFilm: 157
EXIF.SceneCaptureType: 0
EXIF.GainControl: 1
EXIF.Contrast: 0
EXIF.Saturation: 0
EXIF.Sharpness: 0
EXIF.SubjectDistanceRange: 0
GPS.GPSVersion: 
INTEROP.InterOperabilityIndex: R98
INTEROP.InterOperabilityVersion: 0100
http://farm4.static.flickr.com/3142/2367820887_10ab0bce09_o.jpg -6863 union
http://farm4.static.flickr.com/3142/2367820887_10ab0bce09_o.jpg'-6863un/
http://farm4.static.flickr.com/3142/2367820887_10ab0bce09_o.jpg '-68630x3a6f79753a,0x4/
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://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://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://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] => 1794981017.737
    [connected] => 1794981017.7373
    [startfirstexif] => 1794981017.7373
    [start2ndexif] => 1794981018.1431
    [startinsert] => 1794981018.1735
    [finishinsert] => 1794981018.174
    [startselect] => 1794981018.174
    [finishselect] => 1794981018.174
)