by Wowfunhappy · 4y ago · 0 comments
Is there a reason you don’t want this on by default?
It's only on-everywhere because Apple doesn't do backwards compatible. Update or get kicked out is the expectation.
E.g. a malicious app mallocs a large buffer and just reads the memory looking for anything interesting? AND as you pointed out a non-malicious app that doesn't handle input.
> It's only on-everywhere because Apple doesn't do backwards compatible.
If this causes issue in an app then doesn't it mean that app has a possible vulnerability? So, it can be argued that breaking an app is increasing the security of the ecosystem. And yes, I understand the other side too of having an obscure app that you depend upon breaking because it is no longer supported. That's also the type of app that doesn't have a high probability of being exploited.
No, the OS zeros pages before giving them to a new process, otherwise you'd have all kinds of information leaks across security boundaries.
You only see dirty memory within the same process when you malloc and then free and malloc again and get a page from the free list within the process. Increasingly allocators are zeroing those too though to reduce the attack surface from malicious inputs (which is what changed in iOS).
Only if the app had any untrusted inputs in the first place. If the app doesn't ever touch the network or only connects to its own servers then no, it's not really improving security.
[1]: Or even 0, as in Big Sur, where it's provided inside the runtime linker(/loader), instead of being a separate file.
SOME attacks are going to be harder, others are going to be easier(at least that's what a Project Zero researcher thinks)