5 ms·
Certificate pinning does not work with certificates that are installed in the devices trusted certificate store.
by RKearney 11y ago
Certificate pinning does not work with certificates that are installed in the devices trusted certificate store.
- infinity0 11y agoYou are confused. This is exactly what pinning defends against.
- cbr 11y agoSorry, no: 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. -- https://www.chromium.org/Home/chromium-security/security-faq#TOC-How-does-key-pinning-interact-with-local-proxies-and-filters- https://www.chromium.org/Home/chromium-security/security-faq...
- deleted 11y ago[deleted]
- mil0 11y agoHow would the telco get their Private Trust Anchor into the certificate store ? More social engineering, i suppose. At the app level though, a chain resolution like what you describe is not required.
- maaku 11y agoI'll give you a hint: they run customs.
- blazespin 11y agoWuh? Why not just ask the user to insert the cert?
- therein 11y agoThey COULD do that but they almost certainly aren't doing that. That's a tedious task that requires a lot of time and technically competent employees. Also we are talking about apps implementing certificate pinning. Not reading from the OS store etc., and therefore, I don't see Kazakhstan reverse engineering and patching executables.
- nathan_f77 11y agoThey will be telling citizens to install a "national security certificate". After they implement this, you won't be able to access the internet without it.
- tremon 11y agoHow does "Chrome does not perform pin validation" translate to "This is not what pinning defends against"? The fact that Chrome ships with a broken implementation does not imply the concept is broken.
- tripzilch 11y agoYou are right of course, but there are apparently a whole lot of people of the opinion that since Chrome was (one of the?) first apps implementing some sort of pinning, that this is de facto what certificate pinning "is". I don't really agree with that, but it's IMO more useful to acknowledge the confusion, than having an argument about whether Chrome really does pinning or even gets to de facto define pinning or not, since this isn't even about Chrome :)
- tremon 11y agoI get your point. The notion of designating a broken implementation as "the standard" makes me queasy, ever since IE6 happened. But still, I would have much preferred if the GP would have started their comment with "yes, but" instead of "sorry, no". That would have made the distinction much clearer.
- mtgx 11y agoWhy the hell doesn't Chrome have its own root cert store by now anyway? I can't believe they are leaving such an important trust piece to Microsoft's Windows...
- FiloSottile 11y agoHe's talking about mobile apps pinning the backend certificates, not HPKP.
- patcheudor 11y agoCertificate pinning is absolutely targeted at stopping the use of rogue root CA's installed in devices. OWASP does a pretty good job of covering the topic. https://www.owasp.org/index.php/Certificate_and_Public_Key_Pinning https://www.owasp.org/index.php/Certificate_and_Public_Key_P...
- zurn 11y agoYou just linked to 20 screenfuls of text that explain pinning in general, without a single mention of "rogue". The fact is that pinning as implemented in Chrome exempts installed CA's from pinning checks because they want to allow administrator-mandated MITM - apparently "market requirement" because it's a common practice in schools and workplaces in some countries that lack reasonable communications privacy legislation.
- antocv 11y agoLol, you already see where this is going "market requirements dictates backdoors everywhere!"
- Excavator 11y agoOf course a system misbehaves if you use an (intentionally) broken application. That's a Google Chrome issue and not an issue with pinning.
- zurn 11y agoYou might have a point if Chrome hadn't been the first browser to implement pinning, therefore defining the concept in web context to a large extent. You may argue that this is is broken behaviour, but that's what pinning currently is in browsers. Seems it's this way in Firefox too ("pinning not enforced if the trust anchor is a user inserted CA, default" - https://wiki.mozilla.org/SecurityEngineering/Public_Key_Pinning https://wiki.mozilla.org/SecurityEngineering/Public_Key_Pinn...)
- HappyTypist 11y agoI don't think you understand how certificate pinning works then. Many apps right now allow local trust stores, but with this announcement I bet that'll change.
- KirinDave 11y agoApps can certificate pin in 2 ways. One, they can directly inspect the certificate fingerprint and pin to a specific fingerprint (I chose this method for Level Money's product). The other option is to examine and pin the signing certificate. This is more code and more prone to error, but makes your connection slighty more robus in the face of a compromised certificate. And yes, both techniques work even if a cert in your root store has another certificate. Applications can simply refuse to function, but this has to be done on an ad hoc basis.