Electrum flaw let hackers steal Bitcoin without private keys

An Electrum flaw let malicious servers redirect pending Bitcoin payments when users raised fees. Electrum released version 4.8.3 after confirming active exploitation.

Electrum’s developers disclosed the vulnerability on Oct. 24 after receiving complaints on Oct. 11 and Oct. 18. At least one user lost Bitcoin after approving a fraudulent transaction. The number of affected wallets and the total amount stolen remain unknown.

The flaw affected Electrum versions earlier than 4.8.3. It involved wallets that used external servers to track unconfirmed Bitcoin transactions. A malicious server could withhold a legitimate payment and show the user a different transaction sending the funds to an attacker-controlled address.

The replacement transaction initially had invalid signatures. Affected Electrum versions did not check those signatures before displaying the transaction in the wallet’s unconfirmed history. The legitimate payment then disappeared from view, making the fraudulent transaction appear to be awaiting confirmation.

The attackers used Bitcoin’s Replace-by-Fee feature, which lets users increase the fee on a delayed transaction. When a victim raised the fee on the fraudulent transaction, Electrum generated new signatures for the altered payment details. The transaction then became valid and authorized the transfer without exposing the user’s private keys.

In both reported incidents, the attackers used recipient addresses that matched the final four characters of the intended addresses. In the Oct. 18 incident, the fraudulent transaction had a zero fee, which may have prompted the user to increase it.

Electrum tagged version 4.8.3 on Oct. 23 and released it on Oct. 24. The update checks signatures for wallet-owned inputs before adding an unconfirmed transaction to the client’s local history, blocking the reported substitution method before a user can increase its fee.

Electrum advised users to download the update from its official website and check complete recipient addresses and payment amounts before signing transactions. Wallets connected exclusively to trusted servers, including privately operated servers, were not exposed to the reported attack.

Articles by this author