iOS 6.1 Passcode bug

Yesterday, Jailbreak Nation highlighted a bug with iOS 6.1 that allows users to bypass a passcode lock on an iPhone to access the phone function and contacts on the device. While the bug allows only limited access to the device and can require several attempts to achieve the correct timing to exploit, it is gaining significant attention today.

Having this kind of bug in the OS is certainly not good and Apple needs to fix it ASAP. I still don’t understand how do people figure this stuff out?