The BTCPay Server team has confirmed the exploitation of a critical vulnerability that led to the theft of funds from some users. In connection with the incident, developers have released an emergency update and strongly recommend that all operators immediately upgrade to version 2.4.2. Any software versions below the specified one are at risk.

The essence of the problem and the attack vector

The discovered flaw allowed an attacker to remotely gain access to authentication files .macaroon for LND — the most common implementation of the Lightning Network. These files are, in essence, access keys to the node, and their compromise gives the attacker full control over channels and funds. The stolen credentials allow the attacker to directly withdraw funds from the LND node, bypassing any additional checks.

It is important to emphasize that the vulnerability affects exclusively configurations with LND connected. Users who do not use the Lightning Network, as well as official online and custodial BTCPay Server wallets, were not affected. Nevertheless, I strongly recommend that all operators, without exception, perform the update to eliminate any potential risks.

Immediate actions for operators

Operators using LND need to urgently upgrade to BTCPay Server version 2.4.2 and LND 0.21.1. The update is available through the admin panel, and the macaroon files will be recreated automatically. If installing the patch is not possible in the near future, the only safe solution is to completely shut down the server until the update is performed.

Additionally, I advise all LND users to conduct a thorough review of their node's history. Pay attention to any suspicious connections, unexpected channel closures, or outgoing payments that you did not initiate. These signs may indicate that your node has already been compromised.

Second wave of attacks on Bitcoin infrastructure

This incident occurred against the backdrop of another high-profile hack. Last week, Galaxy Research analysts confirmed that 1,719 BTC were stolen from users of Coldcard hardware wallets, which at that time amounted to approximately $111 million. According to expert estimates, after reviewing all cases of attacks, the final damage could exceed $130 million.

Both attacks did not affect the Bitcoin protocol itself, which once again confirms its reliability. The vulnerabilities were found in tools built on top of the underlying blockchain. This is an alarming signal for the entire industry: the security of the ecosystem depends not only on the protocol but also on the quality of implementation of the accompanying software. Incidents of this scale highlight the need for stricter security standards for all market participants.