Live data from Hacker News

Show HN: Snapception – Intercept all snapchats received over the network

github.com

51–60 of 84 posts

Re: Show HN: Snapception – Intercept all snapchats received over the network

#51

Earlier quoted context omitted.

Yes, but they would be clued in because the SSL certificate wouldn't be valid unless they trust your CA.

That's pretty trivial for parents. "Hey pumpkin, I need to borrow your phone for a second". That said this is something that maybe 0.1% of parents could or would set up.

Good point, but it's an interesting idea. An open-source home firewall that's designed with features/sniffers that lets parents keep an eye on their kids' online usage.

Re: Show HN: Snapception – Intercept all snapchats received over the network

#52
post #49

Earlier quoted context omitted.

To be fair, that demo only works on an uncompressed bitmap image with large areas of solid color. It relies on the fact that identical input blocks encrypt to identical outputs, leading to visible repeating patterns. In a format like JPEG, which has an entropy-coding stage and all kinds of internal headers, the chance of encountering two identical blocks in a file is miniscule. Of course ECB is still a very bad choic…

I don't know a lot about the specifics of JPG file format, but... with a complex file format you can probably make some educated guesses about the content of some of the blocks and perhaps start building up a sort of dictionary... ? Yeah, ECB is BAD.

To the extend that AES is a good random number generator, only if you have a complete dictionary of all blocks. Simply because a random number generator should produce independent output even if you only have a small perturbation in the input. That is, there should be no relation between a completely white block and an one where one of the pixels has a value of 0xfffeff.

Re: Show HN: Snapception – Intercept all snapchats received over the network

#53
post #23

Man, I was hoping it was written in C, or at least C++, not Python.

As a die-hard C programmer.

For tools and toys that are not performance sensitive, python is great. It's a lot more expressive and requires a lot less boilerplate code.

I've re-written projects from C->Python before and had them work with 30% the number of LoC. I've re-written projects from Python->C before and had a 10-fold speed increase.

Right tool for the right job and all that...

Re: Show HN: Snapception – Intercept all snapchats received over the network

#54
post #52
post #49

Earlier quoted context omitted.

I don't know a lot about the specifics of JPG file format, but... with a complex file format you can probably make some educated guesses about the content of some of the blocks and perhaps start building up a sort of dictionary... ? Yeah, ECB is BAD.

To the extend that AES is a good random number generator, only if you have a complete dictionary of all blocks. Simply because a random number generator should produce independent output even if you only have a small perturbation in the input. That is, there should be no relation between a completely white block and an one where one of the pixels has a value of 0xfffeff.

Absolutely! There's no way I know to get at partial blocks where you have some knowledge, but even then you may have the start of some plaintext-leakage with the known-data and dictionary approach.

Re: Show HN: Snapception – Intercept all snapchats received over the network

#56
post #35

Snapchat use ECB as the cipher mode of operation: https://github.com/thebradbain/snapception/blob/781ebb13cd7e... To see why this is a problem, see the ECB-encrypted Tux image on http://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#... Oops.

Not just that, but because it's a fixed key, and it's now known, there was no forward security. If you've been in any way able to collect pictures but not decrypt them, now you can.

Re: Show HN: Snapception – Intercept all snapchats received over the network

#57

But snapchat updated its encryption just a couple of days ago: https://github.com/programa-stic/snapchat-decrypt You will need the android id of the phone, which I don't think you can easily get as a man in the middle?

What do the android ids look like? I'm assuming it's just a number, but I don't know how big. The page you linked to says the key is md5(android_id + "seems legit..."). It seems to me like this could potentially be brute forced to find the android_id using a captured encrypted image.

Re: Show HN: Snapception – Intercept all snapchats received over the network

#58

Snapchat's supposed valuation at $10b while they appear to be completely inattentive to the security of their product is hard to reconcile.

It is? Startups are taught to move fast and break things. Security usually requires to be thoughtful and not intentionally ruin stuff. Runs counter to the whole new modern movement.

Yes this applies when you haven't raised funding yet, maybe if you've just raised your A Series, but not if you're a billion dollar company.

Re: Show HN: Snapception – Intercept all snapchats received over the network

#59

Snapchat's supposed valuation at $10b while they appear to be completely inattentive to the security of their product is hard to reconcile.

It is? Startups are taught to move fast and break things. Security usually requires to be thoughtful and not intentionally ruin stuff. Runs counter to the whole new modern movement.

Yes this applies when you haven't raised funding yet, maybe if you've just raised your A Series, but not if you're a billion dollar company.

Of course there are always security holes, but they should really not be that gaping.

Re: Show HN: Snapception – Intercept all snapchats received over the network

#60
post #48

Earlier quoted context omitted.

Yes, but they would be clued in because the SSL certificate wouldn't be valid unless they trust your CA.

Have you met a teenager? They will blindly just click ignore/ok until they can do what they want. an invalid cert error isn't going to stop them unless it actually blocks (rather than warns and lets them proceed)

In fact, most users will behave this way, it's not exclusive to teenagers.
Post reply on HN