Feeds

Using Android 4.3? Don't let malware snatch your private login keys

Bad news: One in ten devices suffer KeyStore flaw. Good news: It's hard to exploit

Choosing a cloud hosting partner with confidence

If you're one of the 10.3 per cent of Android users running version 4.3, aka Jelly Bean, your login keys are at risk of theft – thanks to a vulnerability in the operating system's KeyStore software.

KeyStore, as the name suggests, stores a user's cryptographic keys, which are used by apps to log into services without the user having to retype their password.

But IBM researchers have found that the program is vulnerable to a classic stack-based buffer overflow by an attacker who is able to get a dodgy app running on a device. By borking KeyStore, some secure login functions could be accessed and master keys obtained.

The team notes that Google's KeyStore source code contains this harbinger of the vulnerability in the comments: "To keep things simple, buffers are always larger than the maximum space we needed, so boundary checks on buffers are omitted."

Unfortunately, applications can set the size of the data processed, meaning the buffers are not always large enough, and malicious software can therefore inject bytes into the KeyStore app's memory where it shouldn't. From there, the attacking code will try to hijack the flow of execution in KeyStore.

However, before people panic, the IBM advisory does explain that the flaw is a particularly tricky one to exploit.

An attacker would need to write an app that contained malware, convince the user to download and install it, and then evade multiple security defenses – DEP, ASLR and stack cookies – to exploit the buffer overflow and execute code within the KeyStore process. And even then some of the KeyStore information is still protected.

The IBM researchers found the flaw last September and alerted the Android security team privately about the issue. By November a fix was developed for Android 4.4, but not the Jelly Bean build, so the team sat on the problem a while longer before disclosing it.

"Considering Android’s fragmented nature and the fact that this was a code-execution vulnerability, we decided to wait a bit with the public disclosure," said Roee Hay, IBM's application security research team lead, in a blog post about the hole. ®

Internet Security Threat Report 2014

More from The Register

next story
FYI: OS X Yosemite's Spotlight tells Apple EVERYTHING you're looking for
It's on by default – didn't you read the small print?
Russian hackers exploit 'Sandworm' bug 'to spy on NATO, EU PCs'
Fix imminent from Microsoft for Vista, Server 2008, other stuff
Edward who? GCHQ boss dodges Snowden topic during last speech
UK spies would rather 'walk' than do 'mass surveillance'
Microsoft pulls another dodgy patch
Redmond makes a hash of hashing add-on
NOT OK GOOGLE: Android images can conceal code
It's been fixed, but hordes won't have applied the upgrade
Apple grapple: Congress kills FBI's Cupertino crypto kybosh plan
Encryption would lead us all into a 'dark place', claim G-Men
DEATH by PowerPoint: Microsoft warns of 0-day attack hidden in slides
Might put out patch in update, might chuck it out sooner
'LulzSec leader Aush0k' found to be naughty boy not worthy of jail
15 months home detention leaves egg on feds' faces as they grab for more power
prev story

Whitepapers

Forging a new future with identity relationship management
Learn about ForgeRock's next generation IRM platform and how it is designed to empower CEOS's and enterprises to engage with consumers.
Why and how to choose the right cloud vendor
The benefits of cloud-based storage in your processes. Eliminate onsite, disk-based backup and archiving in favor of cloud-based data protection.
Three 1TB solid state scorchers up for grabs
Big SSDs can be expensive but think big and think free because you could be the lucky winner of one of three 1TB Samsung SSD 840 EVO drives that we’re giving away worth over £300 apiece.
Reg Reader Research: SaaS based Email and Office Productivity Tools
Read this Reg reader report which provides advice and guidance for SMBs towards the use of SaaS based email and Office productivity tools.
Security for virtualized datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.