Nimiq: Validity store off by one error
nimiq core-rs-albatross
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| nimiq-blockchain crates.io |
|
|
Original description
Nimiq is a Rust implementation of the Nimiq Proof-of-Stake protocol based on the Albatross consensus algorithm. Through 1.5.0, the validity store uses a strict lower-bound comparison that expires a stored transaction too early relative to Transaction::is_valid_at, allowing a remote attacker to replay the same signed transaction during a blocks_per_batch minus one block window and cause the sender and recipient balances to be updated twice. This issue is fixed in version 1.5.1.
From the CVE record · GitHub_M