Tipped off by a Mac OS X security expert, Apple is working to repair a serious security flaw in the iPhones operating system one that could allow an attacker to track the phones location via GPS, eavesdrop on conversations via the microphone, or create a mobile bot net capable of unleashing denial of service attacks.