Please note that one must first jailbreak the iPhone to then be exposed to this. If ones iPhone is not jailbroken, you are not vulnerable.
One of the largest hacks of any Apple product has left nearly a quarter million iPhones compromised, according to Palo Alto Networks, a network security company. More than 250,000 "jailbroken" iPhones — phones that people have modified to install apps not available in the App Store — in at least 18 different countries have had their Apple account logins hacked, Palo Alto Networks reports. Some have even had their iPhones remotely locked and held for ransom. Read more: http://www.techinsider.io/thousands-of-jailbroken-iphones-hacked-2015-8#ixzz3kS7Tl8qU
If you root an android device, there is so much more you can do to it. You have full access to the operating systemsystem, which can be bad for people that have no idea what they are doing. I assume "jail breaking" has the same dangers.