Skip to content

Nervos CKB BlockTimeTooNew should not be considered as invalid block

Moderate severity GitHub Reviewed Published Jul 3, 2020 in nervosnetwork/ckb • Updated Feb 2, 2024

Package

cargo ckb (Rust)

Affected versions

<= 0.33.0

Patched versions

0.33.1

Description

Impact

Currently, when a node receives a block in future according to its local wall clock, it will mark the block as invalid and ban the peer.

If the header's timestamp is more than 15 seconds ahead of our current time. In that case, the header may become valid in the future, and we don't want to disconnect a peer merely for serving us one too-far-ahead block header, to prevent an attacker from splitting the network by mining a block right at the 15 seconds boundary.

Patches

Upgrade to v0.33.1 or above.

Workarounds

Don't ban peer serving too-far-ahead block header.

References

@doitian doitian published to nervosnetwork/ckb Jul 3, 2020
Published to the GitHub Advisory Database Feb 2, 2024
Reviewed Feb 2, 2024
Last updated Feb 2, 2024

Severity

Moderate

Weaknesses

No CWEs

CVE ID

No known CVE

GHSA ID

GHSA-r9rv-9mh8-pxf4

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.