CVE-2021-21271
Tendermint Core Network Duplicate Timestamp Vulnerability
Description
Tendermint Core is an open source Byzantine Fault Tolerant (BFT) middleware that takes a state transition machine - written in any programming language - and securely replicates it on many machines. Tendermint Core v0.34.0 introduced a new way of handling evidence of misbehavior. As part of this, we added a new Timestamp field to Evidence structs. This timestamp would be calculated using the same algorithm that is used when a block is created and proposed. (This algorithm relies on the timestamp of the last commit from this specific block.) In Tendermint Core v0.34.0-v0.34.2, the consensus reactor is responsible for forming DuplicateVoteEvidence whenever double signs are observed. However, the current block is still “in flight” when it is being formed by the consensus reactor. It hasn’t been finalized through network consensus yet. This means that different nodes in the network may observe different “last commits” when assigning a timestamp to DuplicateVoteEvidence. In turn, different nodes could form DuplicateVoteEvidence objects at the same height but with different timestamps. One DuplicateVoteEvidence object (with one timestamp) will then eventually get finalized in the block, but this means that any DuplicateVoteEvidence with a different timestamp is considered invalid. Any node that formed invalid DuplicateVoteEvidence will continue to propose invalid evidence; its peers may see this, and choose to disconnect from this node. This bug means that double signs are DoS vectors in Tendermint Core v0.34.0-v0.34.2. Tendermint Core v0.34.3 is a security release which fixes this bug. As of v0.34.3, DuplicateVoteEvidence is no longer formed by the consensus reactor; rather, the consensus reactor passes the Votes themselves into the EvidencePool, which is now responsible for forming DuplicateVoteEvidence. The EvidencePool has timestamp info that should be consistent across the network, which means that DuplicateVoteEvidence formed in this reactor should have consistent timestamps. This release changes the API between the consensus and evidence reactors.
INFO
Published Date :
Jan. 26, 2021, 9:15 p.m.
Last Modified :
Nov. 21, 2024, 5:47 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
---|---|---|---|---|---|---|
CVSS 2.0 | MEDIUM | [email protected] | ||||
CVSS 3.1 | MEDIUM | [email protected] | ||||
CVSS 3.1 | MEDIUM | [email protected] |
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2021-21271
.
URL | Resource |
---|---|
https://github.com/tendermint/tendermint/blob/v0.34.3/CHANGELOG.md#v0.34.3 | Release Notes Third Party Advisory |
https://github.com/tendermint/tendermint/commit/a2a6852ab99e4a0f9e79f0ea8c1726e262e25c76 | Patch Third Party Advisory |
https://github.com/tendermint/tendermint/security/advisories/GHSA-p658-8693-mhvg | Third Party Advisory |
https://github.com/tendermint/tendermint/blob/v0.34.3/CHANGELOG.md#v0.34.3 | Release Notes Third Party Advisory |
https://github.com/tendermint/tendermint/commit/a2a6852ab99e4a0f9e79f0ea8c1726e262e25c76 | Patch Third Party Advisory |
https://github.com/tendermint/tendermint/security/advisories/GHSA-p658-8693-mhvg | Third Party Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2021-21271
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2021-21271
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2021-21271
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-21271
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/tendermint/tendermint/blob/v0.34.3/CHANGELOG.md#v0.34.3 Added Reference https://github.com/tendermint/tendermint/commit/a2a6852ab99e4a0f9e79f0ea8c1726e262e25c76 Added Reference https://github.com/tendermint/tendermint/security/advisories/GHSA-p658-8693-mhvg -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Feb. 08, 2021
Action Type Old Value New Value Added CVSS V2 NIST (AV:N/AC:L/Au:S/C:N/I:N/A:P) Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Changed Reference Type https://github.com/tendermint/tendermint/blob/v0.34.3/CHANGELOG.md#v0.34.3 No Types Assigned https://github.com/tendermint/tendermint/blob/v0.34.3/CHANGELOG.md#v0.34.3 Release Notes, Third Party Advisory Changed Reference Type https://github.com/tendermint/tendermint/commit/a2a6852ab99e4a0f9e79f0ea8c1726e262e25c76 No Types Assigned https://github.com/tendermint/tendermint/commit/a2a6852ab99e4a0f9e79f0ea8c1726e262e25c76 Patch, Third Party Advisory Changed Reference Type https://github.com/tendermint/tendermint/security/advisories/GHSA-p658-8693-mhvg No Types Assigned https://github.com/tendermint/tendermint/security/advisories/GHSA-p658-8693-mhvg Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:tendermint:tendermint:*:*:*:*:*:*:*:* versions from (including) 0.34.0 up to (including) 0.34.2
Vulnerability Scoring Details
Base CVSS Score: 6.5
Base CVSS Score: 4
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.57 }} -0.11%
score
0.66129
percentile