Apple iOS bug makes devices vulnerable to attack