Apple has issued a warning to all iPhone users after identifying two major flaws in the system, urging them to update their devices immediately.