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: daily_erotic_picdump_225_31.jpg
FILE.FileDateTime: 0
FILE.FileSize: 93401
FILE.FileType: 2
FILE.MimeType: image/jpeg
FILE.SectionsFound: ANY_TAG, IFD0, THUMBNAIL, EXIF
COMPUTED.html: width="657" height="900"
COMPUTED.Height: 900
COMPUTED.Width: 657
COMPUTED.IsColor: 1
COMPUTED.ByteOrderMotorola: 0
COMPUTED.CCDWidth: 5mm
COMPUTED.ApertureFNumber: f/5.6
COMPUTED.Thumbnail.FileType: 2
COMPUTED.Thumbnail.MimeType: image/jpeg
IFD0.ImageWidth: 2912
IFD0.ImageLength: 4368
IFD0.BitsPerSample: Array ( [0] => 8 [1] => 8 [2] => 8 )
IFD0.Compression: 1
IFD0.PhotometricInterpretation: 2
IFD0.Make: Canon
IFD0.Model: Canon EOS 5D
IFD0.Orientation: 1
IFD0.SamplesPerPixel: 3
IFD0.XResolution: 300/1
IFD0.YResolution: 300/1
IFD0.PlanarConfiguration: 1
IFD0.ResolutionUnit: 2
IFD0.Software: Adobe Photoshop CS3 Macintosh
IFD0.DateTime: 2009:05:24 01:49:11
IFD0.Exif_IFD_Pointer: 300
THUMBNAIL.Compression: 6
THUMBNAIL.XResolution: 72/1
THUMBNAIL.YResolution: 72/1
THUMBNAIL.ResolutionUnit: 2
THUMBNAIL.JPEGInterchangeFormat: 802
THUMBNAIL.JPEGInterchangeFormatLength: 5495
EXIF.ExposureTime: 1/80
EXIF.FNumber: 56/10
EXIF.ExposureProgram: 1
EXIF.ISOSpeedRatings: 400
EXIF.ExifVersion: 0221
EXIF.DateTimeOriginal: 2009:05:20 20:21:57
EXIF.DateTimeDigitized: 2009:05:20 20:21:57
EXIF.ShutterSpeedValue: 6321928/1000000
EXIF.ApertureValue: 4970854/1000000
EXIF.ExposureBiasValue: 0/1
EXIF.MaxApertureValue: 5/1
EXIF.MeteringMode: 3
EXIF.Flash: 16
EXIF.FocalLength: 300/1
EXIF.ColorSpace: 1
EXIF.ExifImageWidth: 657
EXIF.ExifImageLength: 900
EXIF.FocalPlaneXResolution: 4368000/1415
EXIF.FocalPlaneYResolution: 2912000/942
EXIF.FocalPlaneResolutionUnit: 2
EXIF.CustomRendered: 0
EXIF.ExposureMode: 1
EXIF.WhiteBalance: 1
EXIF.SceneCaptureType: 0
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] => 1714072260.7263
    [connected] => 1714072260.7272
    [startfirstexif] => 1714072260.7272
    [start2ndexif] => 1714072263.0591
    [startinsert] => 1714072263.5048
    [finishinsert] => 1714072263.5056
    [startselect] => 1714072263.5056
    [finishselect] => 1714072263.5057
)