I'm sorry I haven't echoed this warning here but since the current RBF exploit is still an issue, better late than never:
Warning!On
a local board, I was notified about
Malicious server can replace a just-broadcast tx and try to trick user into RBF-ing it.
In short:
- when the client broadcasts a new tx1, a malicious server can swallow it,
- and update the client's history with a conflicting (invalid) tx2 that replaces the outputs with the attacker's output address.
- Tx2 has invalid signatures, but this is not checked (due to light client design).
- The wallet will display tx2 as an unconfirmed transaction - tx1 will not be displayed.
- If the client then manually RBF fee-bumps tx2, the client will sign it with a higher fee, and hence pay the attacker.
Apart from upgrading Electrum to the latest version, I want to add this:
I want to post a warning: you should not trust my Electrum server! It's supposed to be trustless, and you should thorougly check all addresses before signing anything. That includes signing for RBF.
I won't do anything bad, but my server is running on a VPS, and like any other Electrum server, that can become a target for abusers. If someone gains access to my server, that's just not something to risk.
So make sure to only sign the transaction you want to sign, and don't rely on whatever transaction your Electrum shows you already. Just verify the data and amounts, so you can be absolutely sure you don't send it to an attacker.
Do not automatically trust any Electrum server, not even ones hosted by folks you know and trust. I have no current plans to become a thief but I can't guarantee what my mood will be like tomorrow. Furthermore, the electrum.direwolfm14.com server is not hosted on my hardware and as such, there is no guarantee that I'm the only one with access to it.
On your side, don't get complacent. Electrum clients prior to 4.8.3 are vulnerable, so I recommend you keep your client updated. The RBF exploit requires you to sign a second transaction, and there have been reports that the malicious servers are generating vanity addresses to resemble the address to which you intend to send the funds. Always verify the addresses thoroughly and completely.