Hidden Photos available via USB
from ramble81@lemm.ee to apple_enthusiast@lemmy.world on 14 Jul 2024 19:58
https://lemm.ee/post/37087618

Well this is interesting. I plugged my phone into my computer to pull some photos off of it and I just happen to start browsing it via Windows Explorer since the device shows up there. Imagine my surprise when I saw things that were in my Hidden folder show up clear as day. It seems that lock is only at an application level and just browsing the file system it’s there to see.

Does anyone else experience something similar? Is there a note I missed that it’s still be available via other means?

#apple_enthusiast

threaded - newest

abrahambelch@programming.dev on 14 Jul 2024 20:08 next collapse

I reverse engineered the Apple Photos library file on my Mac as a side project and can confirm that hidden assets are not actually encrypted or otherwise protected. The respective assets are just not shown in the apps and can be accessed via Finder on macOS.

I didn’t know they were visible when you connect your phone to your PC but I guess it makes sense.

SendMePhotos@lemmy.world on 15 Jul 2024 00:16 next collapse

Heeey… Reverse engineering the software is a clear violation of TOS/EULA

[deleted] on 15 Jul 2024 07:58 collapse

.

mbirth@lemmy.mbirth.uk on 15 Jul 2024 11:45 collapse

No need for reverse engineering - it has already been done: github.com/RhetTbull/osxphotos

abrahambelch@programming.dev on 15 Jul 2024 16:59 collapse

Thanks for sharing, actually this very project inspired me to do it myself. It is an incredible resource when it comes to certain aspects of the database format!

Imho it has some deeper architectural issues though which I wanted to avoid in my implementation. I’m also using an entirely different tech stack I wanted to train myself in.

My implementation is not as feature complete as osxphotos but I’m sure I will be able to contribute back to the project with the occasional bug fix.

sdc@infosec.pub on 14 Jul 2024 21:39 next collapse

The device shows up there because you connected to your computer and trusted the connection on your iPhone (and you had to type in your passcode to confirm.) If someone doesn’t know your passcode they can’t do this. If they do know it, they could access your photos anyway.

It’s probably worth filing a Feedback report to request Hidden photos don’t get served up over the standard file system access alongside the rest of your library. You can do so by typing applefeedback:// into Safari and hitting return. If you’re on a developer or public beta, you can simply use the Feedback app instead.

ramble81@lemm.ee on 14 Jul 2024 21:47 collapse

That makes sense but the one difference I see is the hidden/deleted folders are Face ID locked and you need to be present to access them at the time. Just having the passcode can get you in to the phone but not to those folders, yet all you need is the passcode for file system access.

I’ll report it via the method you suggested too.

PTKT@lemmy.world on 14 Jul 2024 23:07 collapse

Not to discount this frustration, but you can absolutely access the hidden photos with just the passcode. Try it.

ramble81@lemm.ee on 15 Jul 2024 01:28 collapse

Huh… TIL. You just have to fail it like 4-5 times and it switches to a passcode prompt.

PTKT@lemmy.world on 15 Jul 2024 02:47 next collapse

I wish there was a setting to only allow Face ID or your full AppleID password.

cantankerous_cashew@lemmy.world on 15 Jul 2024 22:40 collapse

As an added layer of security, you can set the phone to self-destruct by going to Settings > FaceID & Passcode > Erase Data. If someone enters the incorrect passcode more than 10 times, the phone will erase itself. Assuming a 6 digit passcode, there are 1 million possible combinations. An attacker would have an effective 1 in 100,000 chance (.001%) of guessing your passcode correctly

Nogami@lemmy.world on 15 Jul 2024 02:51 collapse

Hidden is not encrypted and when you trust the computer you’re connecting to you have access to the phone’s file system.

Not a bug, a design choice to allow accessing your device photos on an attached computer.

ramble81@lemm.ee on 15 Jul 2024 14:57 next collapse

I know hidden is not encrypted, but the level things can be hidden can vary too. You can have parts of the filesystem that are not shown to the USB driver without additional authentication pretty easily.

Anticorp@lemmy.world on 15 Jul 2024 18:29 collapse

Right. I used to have a program on my computer that completely removed files from the index. There was no reference to their location or existence except for within that program. Even safe mode wouldn’t reveal them. That’s the right way to go about it.

cantankerous_cashew@lemmy.world on 15 Jul 2024 22:34 collapse

Personally I like the way that this is implemented; makes it easy to download hidden media files onto my Mac. Anyways, if you’re worried about nudes/pr0n being seen by unauthorized parties, I wouldn’t recommend stashing them in your photos library anyways. There are vault-type apps in the App Store that masquerade as note/calculator apps (Calculator# comes to mind) which are more suited to addressing OP’s use case.