BTCPay Server exploit drains Bitcoin Lightning nodes at Foundation, Citadel21

3 min read
BTCPay Server exploit drains Bitcoin Lightning nodes at Foundation, Citadel21
PrimeXBT Editorial Team
Reviewed by PrimeXBT

Topics in article

A critical flaw in BTCPay Server let attackers drain Bitcoin Lightning nodes late on Friday by exposing the credentials that protect them. BTCPay told operators running LND to update to version 2.4.2 immediately or take their servers offline, and confirmed its standard on-chain wallets were not affected. Hardware-wallet maker Foundation and bitcoin publication Citadel21 are among the confirmed victims.

Attackers drained Lightning nodes running behind BTCPay Server late on Friday, exploiting a critical vulnerability that exposed the credentials protecting them. BTCPay confirmed funds were stolen and told anyone running LND, the most widely used Lightning node software, to update immediately to version 2.4.2 or take the server offline.

A credential flaw, not a wallet breach

The bug let an unauthenticated remote attacker obtain LND's ".macaroon" files, credentials that can then be used to take control of a node and move its funds. BTCPay narrowed the scope after its initial alert, saying its standard on-chain wallets, including hot wallets generated inside BTCPay, are not affected by the credential flaw. The exposure applies specifically to LND deployments, so funds sitting inside LND's own on-chain wallet can still be at risk because they sit under the compromised node.

According to Crypto Briefing, the credentials were also unusually persistent: the macaroons remained valid even after operators applied earlier software updates, so a manual credential refresh was needed on top of the patch. BTCPay released version 2.4.2 alongside guidance to upgrade its NBXplorer backend to version 2.6.10. This vulnerability was separate from a prior authentication bug the project had already patched days earlier.

Foundation and Citadel21 among the victims

Foundation, the hardware-wallet maker, was among those hit. Chief Executive Zach Herbert said attackers drained the company's BTCPay Lightning node overnight, closing its channels and sweeping the funds, while its on-chain hot wallet stayed untouched. Citadel21, the bitcoin publication run by hodlonaut, also reported that its Lightning node had been swept, though it said little money was held there. BTCPay has not disclosed how many users were hit or how much bitcoin was taken.

The flaw had already been reported to BTCPay by members of the Bitcoin Red Team, a group BTCPay credited — Craig Raw, Rob Hamilton, Calle and Evan Kaloudis — for responsibly disclosing and helping analyze the issue. The group began pointing AI models at bitcoin codebases this week and has filed thousands of findings across hundreds of projects since, yet attackers were already exploiting this bug against live servers by the time BTCPay's public warning went out. BTCPay has not yet published technical details, saying operators need time to patch, and a full postmortem is due in the coming days.

Sources: CoinDesk, Crypto Briefing

Trading involves risk.

Most traded markets

XAU / USD
-0.9% 4,127.61
BRENT
+1.35% 73.620
BTC / USD
+0.7% 63,151.2
EUR / USD
-0.12% 1.14269
USTEC
-0.91% 29,428.7
XAU / USD.24
-0.9% 4,127.61
View all markets

Author

PrimeXBT
Our Editorial Team consists of leading experts with a proven record in the fields of trading, cryptocurrencies, blockchain and finance. We thoroughly research the sources of information in order to provide readers with quality content that serves edu...
Read author’s articles
Alert Triangle Risk Disclaimer
Disclaimer: Some past publications may be outdated. We recommend following our news to stay up to date with the latest information. For any questions, feel free to contact our support team via the chat below.
The content provided here is for informational purposes only. It is not intended as personal investment advice and does not constitute a solicitation or invitation to engage in any financial transactions, investments, or related activities. Past performance is not a reliable indicator of future results.
The financial products offered by the Company are complex and come with a high risk of losing money rapidly due to leverage. These products may not be suitable for all investors. Before engaging, you should consider whether you understand how these leveraged products work and whether you can afford the high risk of losing your money.
The Company does not accept clients from the Restricted Jurisdictions as indicated in our website/ T&C. Some services or products may not be available in your jurisdiction.
The applicable legal entity and its respective products and services depend on the client’s country of residence and the entity with which the client has established a contractual relationship during registration.

Today in markets

Browse Crypto News

Register Now

Trading involves risk

Get started in minutes

Our clients love how fast and simple our sign-up is. It takes just a few minutes to get started!

Get Started Get Started
Get started in minutes

Need Help?

Risk Warning:
Trading in leveraged products carries a high level of risk and may not be suitable for all investors.