Researcher finds iOS flaw to bypass App Store code signing

Charlie Miller finds memory flaw in Apple iOS again.

Security researcher Charlie Miller has discovered a flaw in iOS 4.3 which allows an attacker to run unsigned code on an iPhone or iPad, breaking the vetting system Apple uses to keep malware off the platform.

Miller released a demo on YouTube showing that the bug allowed him to use a rigged app to steal contact lists, view directory listings and processes on the iOS device, and even make the phone vibrate. "Code signing's important," Miller points out in the video, "because that's the way Apple protects you from malware." While he never revealed exactly what flaw he found, according to Kaspersky Lab's Threatpost blog, Miller said his app was "allocating memory in this weird way".

To get past Apple's signing processes, Miller wrote a legitimate looking stock market ticker app "InstaStock" that was published on September 14 — a week prior to Miller posting his demo on YouTube and a month prior to him disclosing the flaw to Apple.

Despite getting around the App Store check, Miller was rejected twice before — the first time because Apple believed a feature in a previous app had no real value to users and the second time because Miller used an illegal API.

The first thing the app does after a user installs it is check in with his demo attack server to see if there's any code to download.

In the first demonstration the app had nothing to download from the remote server, which would have been what the people who vet apps for the App Store would have seen, said Miller.

Later he demonstrates the app’s installation after placing a nastier file on his attack server containing code he was able to run on the iOS device "that Apple definitely wouldn't have approved if they had seen it".

That code would give the attack system a remote "shell" which would in Miller's words "allow the attacker to do whatever they want."

"It shows malware can run on the iPhone with this flaw and Apple's going to fix this flaw and we'll be back in the place where we'll be protected because of the App Store," said Miller.

According to Threatpost, Miller alerted Apple to the bug on October 14. The flaw affects any iOS device running 4.3 or later.

The exploit was less serious than remote code execution bugs, such as the bugs because a user would first have to install it, Milled pointed out.

Miller, who has found several important flaws in iOS and Mac OS X, this March found a memory flaw in iOS 4.2.1 that prompted Apple to include address space layout randomisation (ASLR) protection in iOS 4.3.

He will discuss the flaw at the SyScan conference in Taiwan later this month.

Follow @CSO_Australia and sign up to the CSO Australia newsletter.

Join the CSO newsletter!

Error: Please check your email address.

Tags securityCharlie Millerapp storeApple iOSoperating systems

More about AppleApple.KasperskyKaspersky

Show Comments

Featured Whitepapers

Editor's Recommendations

Solution Centres

Stories by Liam Tung

Latest Videos

  • 150x50

    CSO Webinar: Will your data protection strategy be enough when disaster strikes?

    Speakers: - Paul O’Connor, Engagement leader - Performance Audit Group, Victorian Auditor-General’s Office (VAGO) - Nigel Phair, Managing Director, Centre for Internet Safety - Joshua Stenhouse, Technical Evangelist, Zerto - Anthony Caruana, CSO MC & Moderator

    Play Video

  • 150x50

    CSO Webinar: The Human Factor - Your people are your biggest security weakness

    ​Speakers: David Lacey, Researcher and former CISO Royal Mail David Turner - Global Risk Management Expert Mark Guntrip - Group Manager, Email Protection, Proofpoint

    Play Video

  • 150x50

    CSO Webinar: Current ransomware defences are failing – but machine learning can drive a more proactive solution

    Speakers • Ty Miller, Director, Threat Intelligence • Mark Gregory, Leader, Network Engineering Research Group, RMIT • Jeff Lanza, Retired FBI Agent (USA) • Andy Solterbeck, VP Asia Pacific, Cylance • David Braue, CSO MC/Moderator What to expect: ​Hear from industry experts on the local and global ransomware threat landscape. Explore a new approach to dealing with ransomware using machine-learning techniques and by thinking about the problem in a fundamentally different way. Apply techniques for gathering insight into ransomware behaviour and find out what elements must go into a truly effective ransomware defence. Get a first-hand look at how ransomware actually works in practice, and how machine-learning techniques can pick up on its activities long before your employees do.

    Play Video

  • 150x50

    CSO Webinar: Get real about metadata to avoid a false sense of security

    Speakers: • Anthony Caruana – CSO MC and moderator • Ian Farquhar, Worldwide Virtual Security Team Lead, Gigamon • John Lindsay, Former CTO, iiNet • Skeeve Stevens, Futurist, Future Sumo • David Vaile - Vice chair of APF, Co-Convenor of the Cyberspace Law And Policy Community, UNSW Law Faculty This webinar covers: - A 101 on metadata - what it is and how to use it - Insight into a typical attack, what happens and what we would find when looking into the metadata - How to collect metadata, use this to detect attacks and get greater insight into how you can use this to protect your organisation - Learn how much raw data and metadata to retain and how long for - Get a reality check on how you're using your metadata and if this is enough to secure your organisation

    Play Video

  • 150x50

    CSO Webinar: How banking trojans work and how you can stop them

    CSO Webinar: How banking trojans work and how you can stop them Featuring: • John Baird, Director of Global Technology Production, Deutsche Bank • Samantha Macleod, GM Cyber Security, ME Bank • Sherrod DeGrippo, Director of Emerging Threats, Proofpoint (USA)

    Play Video

More videos

Blog Posts

Market Place