#asknostr #bitcoin #plebs do you understand the #lightning vulnerability called the #replacement-cycling attack?
TLDR; it is a REAL vulnerability and funds CAN get stolen!
In the lightning network, transactions are send while being abscent on the blockchain: in order to still have security, every channel requires a secret pass from both users, say, Alice and Bob.
To change the balance in the channel, the initiator has to publish the previous secret to create a new one. If Bobs payment is malicious, Alice can use Bobs own past secret against him to retrieve all funds in the channel (stored on-chain and requires on-chain transactions). This has to happen in a short time: a day. Otherwise the attacker can still succeed in stealing all funds. Normally, this is enough to disincentivise hackers from ever trying.
Unless...
And this is where the vulnerability is so critical: it allows hackers to delay Alices transaction, up until it is too late for her to get refunded. They do this by replacing her transaction to get refunded by another "version" with a higher fee, so that Alices transaction gets ignored.
If everyone helps think of a solution, we could maybe solve it.