 |
Today at 09:45:52 PM |
|
Evidently there's a Dos vulnerability discovered by security researcher Nishant Bansal affecting CLN versions 0.12.0 from August 2022 through to version 26.06.7 from August 2026 which apparently allows the attacker to crash a victim's node, which by exploiting the bug can be done continuously which puts the channel funds at risk. A malicious peer could open a channel by providing another channel’s funding outpoint. Since channel_id is derived from that outpoint, according to BOLT2, two channels would thus have matching IDs. CLN runs a channeld subdaemon for each channel, while connectd routes messages to the correct subdaemon based on their channel_id. Since CLN assumes the uniqueness of channel_id, collisions led the node to crash. Everyone is advised to upgrade to version 26.06.8 where the bug is fixed or the latest version 26.06.10. My question is that if lightning implementations should be designed in such a way that allows peer controlled input to crash an entire node in the first place? I mean, shouldn't the implementation should be designed to detect duplicate channel IDs and reject it or disconnect the offending peer without bringing down the entire node? So malformed peer messages are unable to trigger a process wide crash through an internal assertion?
|