5 ms·
Side note: This wouldn't get around cert-pinning? Even if a new trusted CA is installed on the system, an app implementing cert pinning still wouldn't trust thi
by varenc 8y ago
Side note: This wouldn't get around cert-pinning? Even if a new trusted CA is installed on the system, an app implementing cert pinning still wouldn't trust this new CA. Seems that could be a wise move for Facebook's rivals that want to limit snooping.
Edit: on 2nd thought even if Facebook can't decrypt a particular app's traffic, just knowing how many requests it makes, how large they are, and how often, could still provide some useful insights into an app's usage.
- saagarjha 8y agoAFAIK, yes. You would have to modify the application itself to disable certificate pinning.
- gcbw2 8y agoyou have root. Might be inconvenient but hardly impossible to modify files to drop your own pinned cert in other binaries.
- saagarjha 8y agoAs I've mentioned elsewhere in other threads, this app doesn't actually obtain root access (that is, it's not a jailbreak); the article/title is confusing a "root certificate" with "root access".
- Gregordinary 8y agoIf the app is hard coded it shouldn't trust another cert. Note though that browsers, like Chrome, ignore cert pinning if the cert chains up to a locally trusted CA. So the answer is more "It Depends". > Chrome does not perform pin validation when the certificate chain chains up to a private trust anchor. A key result of this policy is that private trust anchors can be used to proxy (or MITM) connections, even to pinned sites. “Data loss prevention” appliances, firewalls, content filters, and malware can use this feature to defeat the protections of key pinning. http://www.chromium.org/Home/chromium-security/security-faq#TOC-How-does-key-pinning-interact-with-local-proxies-and-filters- http://www.chromium.org/Home/chromium-security/security-faq#... EDIT: Spaced on the fact this is a phone app. While Chrome on Windows ignores certificate pins, I'm unsure if this also applies to Android / iOS root stores as well.
- dzhiurgis 8y agoSo what DOES pinning protect against? Certs generated by state actors with access to CA’s?
- frankchn 8y agoThat, and (more commonly) CAs mis-issuing certificates to malicious actors due to bugs or weak internal controls.
- jevinskie 8y agoYou can enforce certificate pinning in your own native app. You can even go as far as not trusting the hookable (on a JBen device) system libraries and link in your own OpenSSL or something similar.
- lol768 8y agoI was under the impression Chrome was dropping HPKP support (it was deprecated in 2017), so I imagine this would be across all products - desktop and mobile.
- Leace 8y agoChrome is dropping support for dynamic HPKP pins (pins that sites can add via headers) but not for static pins (Google domains etc.) Source: https://bugs.chromium.org/p/chromium/issues/detail?id=779166 https://bugs.chromium.org/p/chromium/issues/detail?id=779166 > OK, we're looking at removing dynamic PKP in M69. Static PKP will remain until further notice (we have no active plans to remove it right now).
- judge2020 8y agoI know Uber and a few other apps certificate pin, since running a mitm proxy myself made Uber non-functional.
- QualityReboot 8y agoYou can fix that with https://www.frida.re/ https://www.frida.re/
- lozaning 8y agoIs it possible to set this up to work like charles proxy?
- QualityReboot 8y agoYeah, the idea is to remove pinning with frida and then your proxy will see all the traffic. There's some sample scripts here, and if you google around you'll find one for iOS: https://codeshare.frida.re/ https://codeshare.frida.re/ Jailbreak required, of course.
- saagarjha 8y agoNot without access to a jailbroken device.
- willstrafach 8y agoYou are correct! Many apps do not do pinning currently.