2 ms·
I'm actually quite surprised that Apple allows apps on the App Store that make system calls directly, as those are as "private API" as you can possibly get. Al
by saagarjha 6y ago
I'm actually quite surprised that Apple allows apps on the App Store that make system calls directly, as those are as "private API" as you can possibly get. Also,
> I need to be honest, this is a very annoying way how they check for injection because it is annoying to fix. Instead of using getenv they use the environ variable. Since it is a variable, you can not “hook” it.
Once you have code execution I don't see why you can't just go change it back to how it should look…
One more interesting fact is that the checks mentioned here often catch people who are jailbreaking…and people who look like they are jailbreaking, like Apple employees with internal devices. They're indiscriminate, so if you're thinking of implementing these in your app and the many other reasons to not do so aren't enough for you, consider that you may end up annoying a number of engineers at the company that you're solely dependent on to distribute your application.
- monocasa 6y agoRight? I'm surprised Apple doesn't have a ban on an aligned "d4000001", aka 'svc #0', being anywhere in your executable segments. There's no reason for that unless you're making syscalls directly. That being said, snapchat I'm sure makes an absolutely ludicrous amount of money for Apple given that Apple would be dipping into snapchat premium subscriptions. I bet they're special cased, can annoy all the Apple engineers, and not have any repercussions from it.