Apple users have been warned about a major security lapse that can be exploited by hackers to gain access and steal data.