The Wayback Machine - https://web.archive.org/web/20130815181104/http://www.theregister.co.uk:80/2013/08/12/android_bug_batters_bitcoin_wallets

The Register® — Biting the hand that feeds IT

Feeds

Android bug batters Bitcoin wallets

Old flaw, new problem

Win Spectre Laptop with HP and The Register

Users of Android Bitcoin apps have woken to the unpleasant news that an old pseudo random number generation bug has been exploited to steal balances from users' wallets.

The Bitcoin Foundation's announcement, here, merely states that an unspecified component of Android “responsible for generating secure random numbers contains critical weaknesses, that render all Android wallets generated to date vulnerable to theft.”

Such wallets would include Bitcoin Wallet, blockchain.info wallet, BitcoinSpinner and Mycelium Wallet.

The problem is this: the elliptic curve digital signature algorithm – ECDSA – demands that the random number used to sign a private key is only ever used once. If the random number generator is used twice, the private key is recoverable.

This blog post, describing a presentation given at the RSA conference in March, gives a hint at what's going on. It described how the Java class SecureRandom (used by the vulnerable wallets) can generate collisions for the value r.

Moreover, r collisions appear to have been spotted in the wild as early as January – although the author of that post, Nils Schneider did not link the collision to SecureRandom.

According to The Genesis Block, SecureRandom was flagged by Google's Mike Hearn as the problem, in an e-mail to Bitcoin developers:

“Android phones/tablets are weak and some signatures have been observed to have colliding R values, allowing the private key to be solved and money to be stolen”.

Hearn says the Bitcoin Wallet app “has been prepared that bypasses the system SecureRandom implementation and reads directly from /dev/urandom instead, which is believed to be functioning correctly. All unspent outputs in the wallet are then respent to this new key.”

Given, however, the prior observations both of Bitcoin signature collisions and SecureRandom problems, The Register has asked Hearn if developers should have been advised to avoid SecureRandom sooner. ®

Free whitepaper : Supercharge your infrastructure

Whitepapers

High Performance for All
While HPC is not new, it has traditionally been seen as a specialist area – is it now geared up to meet more mainstream requirements?
What you need to know about cloud backup
This resource answers the common questions enterprises have about cloud backup and recovery including its security, affordability, and flexibility.
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.
Requirements Checklist for Choosing a Cloud Backup and Recovery Service Provider
Find out the top five questions you should be asking when selecting the most qualified backup and recovery service provider.
Steps to Take Before Choosing a Business Continuity Partner
This Aberdeen Analyst report details the necessities in creating business continuity plans and if there’s the need to outsource part/all of the process.

More from The Register

next story
Horrific moment curvy mum-of-none Mail Online spills everyone's data
'Once you go cyber, they got you by the short n curlies' - DM commentard
NSA to world+dog: We're only watching 1.6% of internet, honest
Trust us: We're hardly paying attention to the stuff we do collect
 breaking news
REVEALED: Simple 'open sesame' to unlock your HOME by radiowave
Schoolboy security slip-ups in burglar sensors, electronic locks discovered
 breaking news
Mobe-slurping Wi-Fi SPY BINS banned from London's streets
Watchdog peers into robo-trash-cans that stalked half a MILLION City slickers
Infosec analysts back away from 'Feds attacked Tor' theory
Those IP addresses we said belong to the NSA? We were probably wrong
Violent Hamlet 'bard' by British Library Wi-Fi filters
'Conscience doth make cowards of us all'
Serious Farce Office: 32K secret BAE probe files spaffed to WRONG bod
Anti-fraud squad coughs to stunning evidence leak blunder
Admins warned: Drill SSL knowledge into your Chrome users
Google research finds whopping SSL click-through rates
 breaking news
The Pirate Bay's new censorship-dodging browser 'not secure'
Iranians can now access 'ayatollahsucks.com'*. Oh S$%t, actually...
NSA-proof email encryption? Cobblers, sniff German hackers
'Comical, shameless game' based on tech that won't stop determined g-men
prev story