r/iOSProgramming • u/agoldis • Mar 14 '17
Article An Open Letter to Apple from Rollout.io - Proposing a SECURE JavaScript Injection Approval Process
https://rollout.io/blog/open-letter-to-apple-secure-javascript-injection-ios/9
u/weichbild Mar 14 '17
"Add a ton of complexity to your key management and code signing so we can stay in business doing something clever that you consider a policy gray area" is the least Apple idea ever.
4
u/bobotwf Mar 14 '17
If the point of going through app review was simply to run automated tools on your code then no one would need rollout in the first place; your app would go live as fast as it goes through to testflight. The usefulness of rollout is that it circumvents the days of waiting for the human interaction part of review.
0
Mar 14 '17
[deleted]
5
u/kranker Mar 14 '17
Yeah, ultimately what he's saying isn't realistic.
Apple could implement a secondary channel for quicker updates, but if they do that and plan on allowing updates to native functionality (like rollout.io does) then there's no need to bring in javascript or rollout.io at all.
5
3
u/erusovsk Mar 14 '17
DOA
Yes, Rollout is more extreme than CodePush + RN, but they are definitely not contained only to webviews, they can use JScore, plus Apple does not scan the remote assets that can be loaded remote, so if I have RN app that has a view that takes a CC, potentially a MiTM attack can inject JS with some other code that steals the CC. Moreover objc is dynamic, you can bypass App Store Private API scan easily, a simple native code that uses objective-c NSInvocation class (which is public API) can be used to move all the the actual private API usage to the server. Here are 20 lines of code that allows any developer to push private API code from the server side: (just in native) see unnamed.png
12
u/dom_P Mar 14 '17 edited Mar 14 '17
Bullshit, if apple wanted to support hot patches they wouldn't have such strict review requirements. Just because your startup depends on loose interpretation of their rules doesn't make it right.
In fact I'm surprised it took them this long to close the loophole. I would be thanking Apple for being so slow :))