Cracking Meta's Messenger Certificate Pinning on macOS
61–70 of 136 posts
Re: Cracking Meta's Messenger Certificate Pinning on macOS
#62Earlier quoted context omitted.
Ok, that makes sense! Sometimes when you read a blog post that is well written and cogent it makes it feel like the author did it in 20 min! If I end up in the same arena I think I’ll look for debugging code next. I love certificate pinning as a user, but as a forensic analyst I fucking loath it.
Even as a user I don’t there’s a good reason to love cert pinning. If you’re going up against adversaries that can compromise web pki they also probably have some other exploits up their sleeve to pwn you. Cert pinning pretty much serves to protect companies from people reversing their protocols and little else imo.
https://sslmate.com/resources/certificate_authority_failures
Re: Cracking Meta's Messenger Certificate Pinning on macOS
#63How come applications from such big players are not completely obfuscated and have all kinds of other protections in them to e.g. deny modified binaries from running?
Cert pinning is basically free and is sort of a "you must be this tall to ride the ride" thing--not secure, but keeps the riff raff out.
Re: Cracking Meta's Messenger Certificate Pinning on macOS
#64Earlier quoted context omitted.
Ok, that makes sense! Sometimes when you read a blog post that is well written and cogent it makes it feel like the author did it in 20 min! If I end up in the same arena I think I’ll look for debugging code next. I love certificate pinning as a user, but as a forensic analyst I fucking loath it.
Even as a user I don’t there’s a good reason to love cert pinning. If you’re going up against adversaries that can compromise web pki they also probably have some other exploits up their sleeve to pwn you. Cert pinning pretty much serves to protect companies from people reversing their protocols and little else imo.
Re: Cracking Meta's Messenger Certificate Pinning on macOS
#65What proxy tool are you using in that write up? Does it route all application traffic through it when running? Sorry if these are dumb questions.
Re: Cracking Meta's Messenger Certificate Pinning on macOS
#66Very clever way of doing this (though I have a feeling you could probably enforce pinning even in sandboxed mode). I remember trying to MitM Snapchat back in college and couldn't figure it out as they were also using cert pinning.
I tried the same thing, and while I managed to patch the application and intercept the requests, I gave up when trying to RE the shared object responsible for request signing. I couldn't even find the entry point. For a relatively small social media app they had insane security already back in 2015.
Re: Cracking Meta's Messenger Certificate Pinning on macOS
#67Earlier quoted context omitted.
Eh, clearly it raises the barrier to entry significantly. You’re never safe from a truly determined adversary, but you can keep out the riff raff.
Perhaps I'm a bit harsh... but my suggestion to fortune 500 tech company remains. Implement integrity validation as well, otherwise all it takes is editing 2 bytes to bypass your ssl pinning.
Re: Cracking Meta's Messenger Certificate Pinning on macOS
#68Earlier quoted context omitted.
Obfuscation has costs, and certificate pinning is more to make it more difficult for user-adversarial MITM than to prevent reverse engineering. Although the impact on reverse engineering is more than a happy accident. At the end of the day, your code runs on user machines, and they can observe what the code does, so it's always possible to deobfuscate, and if one person does it and shares their results, it becomes ve…
Some app builders turn it into an art though. Like TikTok. They're infamous for it.
Re: Cracking Meta's Messenger Certificate Pinning on macOS
#69How come applications from such big players are not completely obfuscated and have all kinds of other protections in them to e.g. deny modified binaries from running?
Re: Cracking Meta's Messenger Certificate Pinning on macOS
#70Earlier quoted context omitted.
Pretty sure anything you encrypt client side can be decrypted client side, as long as you have control over the binary and OS/hardware. It's just a matter of effort.
Not the case with asymmetric encryption, you could encrypt with a public key and only the server's private key would be able to decrypt it. Not even the client could.