News for hackers. Stuff that matters.
[dead]
Re:Beware of Applications Misusing Root Stores by dang on Tuesday May 11, 2021 @04:24PM (#27123030)
> As usual, Apple fanboys, downvote away.

Please stop breaking the site guidelines like that. I'm sure you wouldn't think of littering in a city park or starting fires in trash barrels, so please don't do the equivalent here.

https://news.ycombinator.com/newsguidelines.html

Re:Beware of Applications Misusing Root Stores by morpheuskafka on Monday May 10, 2021 @07:16PM (#27112093)
This situation is the same on Android, presuming you do not have a rooted device. On Android >7 third-party apps do not trust user certificates by default, and a non-root user cannot install new system certificates. And afaik there is nothing stopping them from using custom crypto libraries that do not use the system roots at all. And of course, even if you could decrypt the HTTPS traffic the actual API payloads and endpoints need not be in any kind of human readable format.
Re:Beware of Applications Misusing Root Stores by fomine3 on Monday May 10, 2021 @11:56PM (#27114073)
Re:Beware of Applications Misusing Root Stores by dheera on Monday May 10, 2021 @08:32PM (#27112731)
It's much, much easier to root Android than it is to jailbreak iOS.

For one I run a rooted image to start with so I don't need to actually root it.

Re:Beware of Applications Misusing Root Stores by tinus_hn on Tuesday May 11, 2021 @02:54PM (#27121998)
For what it’s worth, there’s just a normal way to install custom root certificates on iOS, no jailbreak required.
Re:Beware of Applications Misusing Root Stores by Operyl on Monday May 10, 2021 @05:57PM (#27111368)
This isn’t Apple or Google’s fault that application developers are choosing to pin their certificates in their apps?
Re:Beware of Applications Misusing Root Stores by aftbit on Monday May 10, 2021 @07:08PM (#27112014)
Well they could prohibit it if they wanted. They could even require that apps provide a method to inspect traffic. They never will though, because cert pinning is good for security, and any user-accessible method to access secrets becomes a target for phishing or other social engineering.
Re:Beware of Applications Misusing Root Stores by Operyl on Monday May 10, 2021 @07:10PM (#27112036)
That would certainly be the day I go "what the heck, Apple/Google." They could certainly try and prohibit it, but I don't think the backlash would bode well for them, and we'd only see people obfuscating their traffic even more.
Re:Beware of Applications Misusing Root Stores by TechBro8615 on Monday May 10, 2021 @07:41PM (#27112342)
It does suck and it's a tradeoff of security/privacy. But it's not impossible, you just need to try a bit harder. If you have a jailbroken phone (the latest jailbroken version can almost always run every modern app), it's easy to install iOS SSL Kill Switch. If you don't have a jailbroken phone, you can wrap the app in your own certificate and side load it with hooks that disable the SSL routines.
Re:Beware of Applications Misusing Root Stores by ROARosen on Monday May 10, 2021 @06:02PM (#27111425)
> Also, I'm miffed about how hard it is to mitmproxy apps on iOS to see what they are sending to servers.

Did you ever try with Fiddler? You can allow local connections through your PC and proxy through, download a Fiddler root cert, and it should work.

Re:Beware of Applications Misusing Root Stores by jrockway on Monday May 10, 2021 @06:11PM (#27111508)
I think the underlying problem is that the apps stop talking because the certificate validity check fails when traffic is proxied through your MITM. No MITM proxy can make that succeed, but if you can control the CA store that apps read, then you can create a certificate, add it to the trusted roots, use that cert to sign a certificate for someone else's website, and then when the app uses the system library to verify the validity of the certificate, it will appear valid, even though it's not. Without being able to hack the certificate verification, you can't MITM traffic between two devices you own. I think that's the complaint the grandparent has.

Apps can still pin certificates, of course. At that point, you have to exploit the app's other faulty assumptions like "I'm running the same code that the compiler produced" or "writing 0 to memory address 0x12344321 and then reading memory address 0x12344321 will result in reading 0", which are straightforward to make false. Though probably not on a stock iPhone.

Re:Beware of Applications Misusing Root Stores by ROARosen on Monday May 10, 2021 @06:43PM (#27111768)
Are you saying that most apps don't rely on the system Trust Store?

I believe manually trusting Fiddler's cert adds it to the Trust Store.

The only iOS apps I couldn't successfully MITM with this were stock Apple apps.

Re:Beware of Applications Misusing Root Stores by TechBro8615 on Monday May 10, 2021 @07:43PM (#27112361)
I would bet that > 75% of the top 50 apps use SSL pinning. Apple makes it really easy to do and it's an obvious first defense against reverse engineering.
Re:Beware of Applications Misusing Root Stores by judge2020 on Monday May 10, 2021 @07:16PM (#27112095)
What happens is that apps don't work if their cert is issued by another CA, eg. "we only use digicert so any other CA issuing us is either attacking us or a enterprise/hobbyist MITM which we don't care about anyways".
Re:Beware of Applications Misusing Root Stores by llacb47 on Monday May 10, 2021 @07:15PM (#27112077)
Try Twitter, Instagram, Twitch, etc.