Bitcoin Core developer Abubakar Sadiq Ismail warned that for less than 35 cents, an attacker could use the transaction rebroadcast mechanism of the Bitcoin Core wallet to find out the IP address of the node monitoring a specific Bitcoin address, and then speculate on the user's network location, which may even be narrowed down to the home range. However, this attack is currently only verified on the test network, and it has not yet been confirmed whether it can be reproduced on the Bitcoin main network.

Ismail posted an article on the Bitcoin developer forum Delving Bitcoin this week explaining the attack method. He used standard Bitcoin Core software for testing, and the tracking program successfully identified the correct node in 30 experiments.

The key to the attack lies in Bitcoin Core’s transaction rebroadcast mechanism. When a transaction sent or received by the wallet has not been confirmed for about 12 to 36 hours, the software may broadcast it to other nodes again to increase the chance of the transaction being processed.

An attacker can deliberately exploit this mechanism to send a very small transaction to a previously used Bitcoin address, and use the lowest fee allowed by the network to make it difficult for the transaction to be confirmed. After waiting for about a day, the attacker observes which nodes rebroadcast the transaction, and can find out the wallet node that is monitoring the address, and further connect the wallet address to the node IP address.

At a Bitcoin price of about $60,000, the cost of each transaction used to trigger the attack is about 18 to 34 cents. Since the IP address may reveal the Internet service provider and city, and in some cases may even point to a specific home, this vulnerability may pose a threat to user privacy.

The impact is not limited to wallets that use Bitcoin Core directly, but also includes Sparrow operating in Core mode, as well as services such as Specter, Liana, JoinMarket, and Electrum Personal Server.

Even if a node hides its IP address through Tor, it does not mean it is completely safe. If the node still maintains a normal network connection, it may send messages through different networks at the same time when rebroadcasting the transaction, causing the real IP address to be exposed.

Currently, users can turn off the automatic broadcast function of the wallet by setting -walletbroadcast=0, but then each transaction must be sent manually, and the operational convenience will also be affected.

Bitcoin Core developers have proposed PR #36482, which plans to limit the rebroadcast scope to transactions newly added to the node memory pool (Mempool). However, another core contributor, Martin Zumsande, believes that this modification can only slightly increase the cost of attack, and advocates that the rebroadcast function of received transactions should be changed to allow users to choose to enable it.

At present, PR #36482 has not been officially released. The selective activation solution proposed by Zumsande is listed in PR #36398 and PR #36481 respectively, and is still subject to subsequent development and review.

Source