Bugs Discovered in Bitcoin Lightning Network Implementations, Fixed
bitcoin technology

Bugs Discovered in Bitcoin Lightning Network Implementations, Fixed

THELOGICALINDIAN - Blockstream amount architect Rusty Russell apparent analytical Bitcoin Lightning Network bugs that were affecting CLightning clair and Lightning Network Daemon lnd implementations

Early LN Versions Failed to Check Funding Transaction Amounts

Presently, three free teams are working on the Lightning Arrangement implementations: Blockstream, ACINQ, and Lightning Labs. The capital cold of these teams, amid added things, is to abate transaction costs while acceptable the scalability and aegis of the Bitcoin network.

The Lightning Network is fabricated up of micropayment channels. These channels amend balances perpetually alfresco the BTC blockchain. But, already the acquittal approach is closed, the affairs that occurred amid the micro-payment channels are again broadcast, as one transaction, to the blockchain. Thus, behindhand of the cardinal of affairs conducted, the blockchain is accessed alone twice, back the approach is aboriginal activated and back the approach is closed. Thus, this adjustment reduces the amount of the Bitcoin blockchain significantly.

While reviewing new proposed appearance for the Lightning Network, Russell performed tests beneath the afterward botheration statement,

“A lightning bulge accepting a approach charge analysis that the allotment transaction achievement does absolutely accessible the approach proposed. Otherwise, an antagonist can affirmation to accessible a approach but either not pay to the peer, or not pay the abounding amount. Once that transaction alcove the minimum depth, it can absorb funds from the channel. The victim will alone apprehension back it tries to abutting the approach and none of the charge or alternate abutting affairs it has are valid.”

As a result, Russell detected that Blockstream implementations afore the C-lightning adaptation 0.7.1, did not accomplish this check.  “This can be exploited by a abutting associate and claiming to accessible a approach with any transaction id.” (CVE-2019-12998)

Similarly, apropos Lighting Lab’s lnd implementation, Russell noted, “prior versions did not analysis the amount. v0.7.0 and aloft appropriately analysis for the scriptpubkey, v0.6.x partially enforces the allotment scriptpubkey, but pre-v0.6.0 did not verify at all.” (CVE-2019-12999)

Russell additionally activated whether ACINQ’s activity Éclair performed able checks apropos the amounts. Russell concluded, “v0.3.1 and aloft do this correctly, above-mentioned versions did not if application the bitcoin bulk backend; electrum users alone analysis the script, not the amount.” (CVE-2019-13000)

Bugs Reportedly Fixed

The acceptable account is that Russell, who belongs to the Blockstream team, aggregate his analysis with the added Lightning Network teams, ACINC and Lightning Labs. Thus, the bugs are reportedly fixed. Moreover, Russell credibility out to absolute outcomes acknowledgment to his discovery,

‘While this abiding bug had not been apart discovered, and appropriately was absurd to be apparent by a awful affair afore actuality fixed, it did accommodate an befalling to analysis communications and methods of advancement beyond the absolute lightning ecosystem.”

How do you anticipate that Lightning Network implementations are allowance to break Bitcoins’ scalability issues? Let us apperceive in the comments below!

Images via Bitcoinist Image Library, Twitter @rusty_twit