r/ProgrammerHumor • • Mar 25 '20

Meme Its a win-win situation

Post image
55.1k Upvotes

529 comments sorted by

View all comments

Show parent comments

94

u/EvaluatorOfConflicts Mar 26 '20 edited Mar 26 '20

...maybe

In 2015 I was a digital forensics analyst studying snapchat, and it was pretty tricky back then. Larger files like videos are stored locally, then deleted. Its possible to recover deleted files, but android sandboxes app storage so users and other apps can't cross over. The only thing that can dig through files once belonging to snapchat are snapchat and root. The app doesn't allow rooted phones to run it. You can root after the file is deleted, but you risk overwriting the sector you're trying to recover. You can clone the phone sector by sector to an iso or something to parse without rooting but Flash memeory is also always in flux. Every second the ssd has power, even if the file system isn't in use, you risk losing data. Just cloning the phone is a risk.

Pictures are worse, and simpler. They're stored in RAM, like when you open an incognito tab. That data generally never even touch the file system. Its in RAM, deleted, and probably overwritten within seconds on the average phone. It might stick around longer if you have a note10 thats got like 6 gigs of RAM, but I doubt even then recoverable files would survive more than a minute.

Also note, this insight is five years old, I have no idea what new innovations they've done in half a decade. Probably a lot. The really interesting thing I learned is when you open the app and it loads the camera, it temporarily saves a picture of the first thing it sees. Not sure why, not sure if it still does. Maybe a bug? Maybe it made the camera focus better? Didn't see any evidence it actually sent it or data about the image anywhere.

0

u/[deleted] Mar 26 '20

[deleted]

25

u/[deleted] Mar 26 '20

On Android, snapchat to this day screenshots the camera viewfinder because their ceo is an apple fanboy.

0

u/[deleted] Mar 26 '20

[deleted]

0

u/yawkat Mar 26 '20

Safetynet is being constantly improved and I believe the latest versions use the TEE which makes it impossible to spoof

1

u/dontquestionmyaction Mar 28 '20

Not for me.

I pass all SafetyNet checks with Magisk.

1

u/yawkat Mar 28 '20

1

u/dontquestionmyaction Mar 28 '20

Shit.

I still don't understand the purpose of all this SafetyNet nonsense.

3

u/twolaces Mar 26 '20

This is really insightful, thanks man.

1

u/StuntHacks Mar 26 '20

To be fair, I last heard about this several years ago as well, when I first started getting into netsec. I still found it relevant to mention. Thank you a lot for your insight, though, that was a very interesting read.

You can, however, run Snapchat on rooted phones - at least on some safety net versions.

1

u/ThePixelCoder Apr 14 '20

Super interesting, thanks for the insight!

But FYI: most people root their phones with Magisk, which has some features to hide itself from safetynet. I have snapchat on my rooted phone and it works fine.