iOS Has Been Saving Your Deleted SMS Attachments

Posted February 6, 2013 at 9:15am by iClarified | Please help us and submit a translation by clicking here | 24593 views

iOS has been saving your SMS and iMessage attachments even after you've deleted them, according to several tips received from iClarified readers.

When receiving an attachment via the Messages app, iOS stores the attachment in /var/mobile/Library/SMS/Attachments directory. Once an attachment is deleted the related files should be removed from the directory. Unfortunately, it appears that this has not been the case for some versions of iOS.

We used two devices, one on iOS 6.0 and another on iOS 6.1, to test the issue. After receiving an iMessage with a photo attachment on iOS 6.0, we examined the attachments directory to locate the file. We then deleted the attachment from the message history. Reexamining the directory showed the file was still there! Notably, the attachments directory is accessible without a jailbreak and is backed up to the computer each time you sync, or to iCloud if you use iCloud backups. This makes it quite easy to access. The files persisted even after a reboot.

We then performed the same test using a device on iOS 6.1. Fortunately, after deleting the attachment, it was deleted from the device.

It appears that Apple may have stealthily corrected the issue with iOS 6.1; however, it is still a major security concern for users on earlier firmware versions and users with device backups on their computer or iCloud. In addition, it appears that this bug may explain why some users have been reporting missing free space on their device. For those users these attachments have been accumulating over time and could be causing GBs of wasted space on their device.

One source tells us that he found images on his device that were deleted over two years ago. Unfortunately, the images can't be easily deleted as you probably don't want to wipe all your attachments. However, if you are worried about security it might be a good idea.

Jailbroken users can delete everything in their attachments directory by executing "rm -R /var/mobile/Library/SMS/Attachments/*" in MobileTerminal or deleting the content of the directory using iFile; however, this reportedly can cause problems with third party tweaks such as BiteSMS.

Non-jailbroken users may be able to modify a backup of their device to remove the 'deleted' attachments and then restore that back to their device. The best solution is of course a clean restore to iOS 6.1.

Please let us know in the comments if you've been experiencing this issue and if iOS 6.1 has resolved it.


iOS 6.0 (FAILS TO DELETE ATTACHMENTS):


iOS 6.1 (SUCCESSFULLY DELETES ATTACHMENTS):

Share
Add Comment
Derek Brown - March 24, 2013 at 10:52pm
I have some of these 'deleted' images on my phone. Is there a way to tell who I sent these to or who sent them to me? Or when they were sent/received?
John - May 17, 2013 at 2:16pm
Has anyone found a way to determine where these attachements originated? Like the original message information?
Derek Brown - May 17, 2013 at 6:43pm
I tried to figure it out, but I eventually gave up. I suspect the details are purged from the messages database, but the raw attachments are left intact, making it impossible to see who sent/received the attachments or any related test messages. However, if you have a jailbroken iPhone, you can look at the folders containing the attachments to see when they were created and at least get an idea of when the messages were sent/received.
Flubber - February 24, 2013 at 10:15am
Those attachments used 5Gb of my iphone... I was looking everywhere for those others file (classic directory you found on forums or tutorials to get rid of other place, till i found this article. 5Gb of loose place filled with photos of my kid took long long time ago...
Breck - February 8, 2013 at 8:48am
You do realize your home wireless router is used as a location iDevice? Not for locating you for anyone that comes in range of your wireless router. These files are not stored on the iDevice that comes in range of the wireless router, but they are stored / sent somewhere. Isn't wonderful that be cared about so much.
Breck - February 8, 2013 at 8:34am
You are just now figuring this out? Well to be honest everything from text, emails, pictures, and your location even if you turned it off , basicly anything and everything you have done on your iPhone is still there from day one you turned it on.
Jepha - February 7, 2013 at 7:50am
That's a lot of pics I need deleted.
28 More Comments
Follow iClarified
Apple Easily Tops List of World's Most Valuable Brands [Chart]
Apple has for the third time topped the Brand...
Leaked Video of Upcoming Samsung Galaxy S4 Active
Footage has leaked online of the upcoming wat...
Apple to Add Flickr, Vimeo Integration to iOS 7?
Apple is reportedly planning to add Flickr an...
Pinterest App Now Shows Pin Info Such as Pricing, Availability, Ingredients
Leaked Photos of 802.11ac 'Gigabit Wi-Fi' Card for Upcoming Macs?
Photos have surfaced allegedly showing the 80...