Latest

Cybersecurity

BTCPay Server confirms theft of funds after exploiting a critical vulnerability

BTCPay Server confirms theft of funds after an attack that exploited a critical vulnerability in servers using LND

BTCPay Server confirms theft of funds after exploiting a critical vulnerability
BTCPay Server confirms theft of funds after exploiting a critical vulnerability

BTCPay Server has confirmed that a critical vulnerability present in all versions prior to 2.4.2 has been actively exploited and that some users have suffered thefts of funds. The flaw allows an unauthenticated remote attacker to obtain .macaroon files, used as credentials by LND, a Lightning Network implementation. The company is asking users to immediately update to BTCPay Server 2.4.2 and LND 0.21.1. So far, no official figures have been provided on the amount stolen or the number of users affected.

Theft at BTCPay Server

BTCPay Server is an open source, self-hosted Bitcoin and Lightning payment processor that allows merchants and businesses to accept payments directly, without relying on a custodial payment processor. The company has published a security advisory requesting the immediate update of servers that use LND and run any version of BTCPay Server prior to 2.4.2.

The warning affects all versions prior to BTCPay Server 2.4.2, including the release candidates of 2.4.2 itself. The severity of the incident lies in the fact that this is not simply a vulnerability discovered before being used. BTCPay Server says it has confirmed that attackers managed to exploit it against real installations. "We have confirmed that attackers exploited this vulnerability. Users were affected and funds were stolen," BTCPay Server states in its release.

Macaroon credential files

.macaroon credential files

The project is not yet publishing all the technical details of the vulnerability because it considers it necessary to give operators time to update servers that remain exposed. The vulnerability is present in all versions of BTCPay Server prior to 2.4.2, but the risk of theft of funds identified by the project specifically affects installations that use LND, Lightning Network Daemon, as their Lightning Network implementation.

Are cold wallets safe? The Coldcard flaw explained According toBTCPay Server

, the flaw may allow an unauthenticated remote attacker to obtain .macaroon credential files belonging to LND. Macaroons function as authorization credentials within LND and allow access to different node functions depending on the permissions associated with them. In the incident investigated by BTCPay Server, these credentials could be used to access LND nodes and move funds. The project states that the attacks analyzed were directed exclusively against files with the .macaroon extension.

Pavlenex, one of the leading figures at BTCPay Server, later explained that the project's analysis confirms this mechanism. "Our analysis confirms that the attacker used exposed LND .macaroon credentials to access funds," he said. So far, BTCPay Server has not given official figures on the total amount stolen, the number of users affected or the number of servers compromised. Therefore, although it is confirmed that there are financial losses, the financial scale of the attack cannot yet be publicly determined.

Pavlenex has lamented the losses suffered by some users, which he described as "devastating," but he also did not provide a global financial estimate. BTCPay Server has announced that it will publish a full report on the incident in the coming days.

BTCPay Server's on-chain wallets are not affected

One of the most important aspects of the investigation is the clarification made by BTCPay Server regarding its initial warnings. Initially, the project recommended that users move funds stored in BTCPay Server's on-chain wallets as a precaution.

After analyzing the attacks, BTCPay says it has confirmed that the problem specifically affects LND. BTCPay Server's on-chain wallets, including hot wallets, are not affected by this vulnerability, according to the statement.

However, there is an important difference: funds stored in the LND node's own on-chain wallet may be at risk, because they are part of the potentially compromised node. Therefore, the fact that some bitcoins are on-chain does not by itself determine whether they are affected. The question is whether they belong to a wallet managed by BTCPay Server or to the internal wallet of the compromised LND node.

BTCPay Server has also clarified that those who use other Lightning Network implementations or who do not use Lightning are not exposed to the specific risk related to LND's .macaroon credentials. Even so, the project recommends that all users update BTCPay Server to version 2.4.2.

Maria Gonzalez

Author

Maria Gonzalez

Journalist specializing in cryptocurrencies, artificial intelligence and emerging technology, with experience in trend analysis, innovation coverage and writing features that connect the digital economy with the real world.

The latest
From Huang to Botín, from Zara to Byron: corporate responsibility in global capitalism

Keep reading