Disclosure: LND Excessive Failback Exploit

Posted by ariard

Mar 22, 2025/00:51 UTC

The analysis focuses on a specific issue within the Lightning Network, particularly in relation to BOLT3 Appendix A and subsequent specifications that affect how commitment transactions are managed and the associated fees. The computation of the maximum weight unit for a commitment transaction is established through an equation that takes into account the number of HTLC outputs, with a default value leading to a significant maximum weight. This becomes crucial when considering the fee rates applied to these transactions, especially under scenarios where the update_fee mechanism is in play, allocating the burden of escalated fees to the routing LN node via anchor outputs.

Further discussion reveals the potential financial risks for routing LN nodes when commitment transactions go on-chain, particularly under varying fee rates. These risks are not only tied to the technical mechanics of handling HTLCs but also to strategic exploitations by malicious actors within the network. For example, a scenario is outlined where a chain of nodes could be manipulated to inflate the commitment transaction size deliberately, thereby increasing the on-chain fee burden significantly. This manipulation hinges on the strategic withholding of the revoke_and_ack message, thus creating discrepancies in the perceived valid commitment transactions between parties involved.

The implications of changes to the BOLT5 specification are examined, highlighting how they might permit or even encourage such exploitative behaviors. Under the new rules, an LN node can decide to move a transaction on-chain irrespective of the status of its counterparty's commitment transaction and independent of the absolute fee cost. This opens up avenues for exploitation, particularly in a setup involving three parties, where one acts maliciously to inflate transaction sizes, consequently driving up on-chain fees to the detriment of honest nodes caught in the scheme.

An intricate example illustrates how this exploitation works, detailing the loss incurred by an honest node forced to go on-chain due to the non-cooperative behavior of another party in the presence of a known payment preimage. This scenario underscores the strategic withholding of cooperation as a means to force on-chain transactions, thereby exposing the honest node to significant fee losses, potentially in collusion with miners. Moreover, it highlights the potential for 'fee griefing,' a tactic aimed at financially penalizing certain nodes or service providers through crafted transactions that escalate on-chain fees unnecessarily.

This analysis concludes with a consideration of the strategic implications for all parties involved in the network, especially regarding the timing and execution of transactions under the threat of adversarial action. It emphasizes the nuanced strategic landscape that emerges from the interplay of technical specifications, economic incentives, and potential for malicious exploitation within the Lightning Network's operational framework.

Link to Raw Post
Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from authoritative bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiBitcoin Transcripts Review
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project?

Give Feedback