Popular wallet developer Electrum has issued an emergency patch for a critical bug in its bitcoin wallets. The flaw allowed any website hosting the wallet to potentially steal the user’s cryptocurrency. A vulnerability meant that passwords were exposed in the JSONRPC interface, granting hackers complete control of the wallet. The first patch failed to fix the problem however, forcing Electrum to issue a second update on Sunday evening.
A Quick Fix to a Long-Standing ProblemLast week, the tech world was rocked by news of a bug in Intel computer chips that had lain undiscovered for years. It’s a similar story with the Electrum wallet vulnerability, with some reports stating that it had been in existence for over two years. Google vulnerability researcher Tavis Ormandy claims to have discovered the bug, though the flaw had been flagged last year. Within hours of Ormandy pointing out the vulnerability, Electrum had rushed out a patch to remedy it. In a Bitcointalk forum post, site admin Theymos explained: “If at any point in the past you had Electrum open with no wallet passphrase set; and had a webpage open then it is possible that your wallet is already compromised. Particularly paranoid people might want to send all of the BTC in their old Electrum wallet to a newly-generated Electrum wallet.” He later updated his post, adding: “If you had no wallet password set, then theft is trivial. If you had a somewhat-decent wallet password set, then it seems that an attacker could “only” get address/transaction info from your wallet and change your Electrum settings, the latter of which seems to me to have a high chance of being exploitable further. So if you had a wallet password set, you can reduce your panic by a few notches, but you should still treat this very seriously.”
Fatally FlawedThe individual who first reported the flaw on Github on November 24 explained: “While the electrum daemon is running, someone on a different virtual host of the web server could easily access your wallet via the local RPC port. Currently, there is no security/authentication, giving someone access to the RPC port full access to the wallet.” Electrum is free software that’s used by numerous cryptocurrency sites, including merchants and exchanges, to store bitcoin. Anyone can run an Electrum server and the software supports hardware wallets such as Trezor, Ledger and Keepkey. Enhanced features include multi-sig and the ability to sign transactions using a cold storage device that isn’t connected to the web. The bug seems to have been fixed before any damage was done – albeit at the second attempt after the first patch proved ineffective – though given the length of time it lay undiscovered, it is hard to say for certain that no funds were stolen. The case illustrates, once again, the risks of leaving bitcoin stored in a web wallet. Do you feel comfortable storing your bitcoin in a web wallet? Let us know in the comments section below.
Images courtesy of Electrum and Github.