Apple warns of security flaw