Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS01NTVwLW00djYtY3F4ds4AA5lr
ASA-2024-004: Default configuration param for Evidence may limit window of validity
ASA-2024-004: Default configuration param for Evidence may limit window of validity
Component: CometBFT
Criticality: Low
Affected versions: All
Affected users: Validators, Chain Builders + Maintainers
Summary
A default configuration in CometBFT has been found to be small for common use cases, and may prevent the slashing mechanism from working in specific cases. The default values for EvidenceParams.MaxAgeNumBlocks
and EvidenceParams.MaxAgeDuration
consensus parameters may not be sufficient for common use cases to provide coverage for the entire unbonding period for a chain (Staking.UnbondingTime
). If the conditions of both of these parameters are exceeded, evidence may be prematurely expired and considered no longer valid, potentially allowing for unpunished Byzantine behavior if evidence is discovered outside of that window.
Next Steps for Chains and Validators
It is recommended that chain ecosystems and their maintainers set the consensus parameters EvidenceParams.MaxAgeNumBlocks
and EvidenceParams.MaxAgeDuration
to values appropriate for their use case:
EvidenceParams.MaxAgeDuration
(set in nanoseconds) should exceed the duration of the chain’s unbonding periodEvidenceParams.MaxAgeNumBlocks
should exceed the number of estimated blocks that will be produced by your chain throughout the unbonding period
For more information about evidence in CometBFT, please see: https://docs.cometbft.com/v0.37/spec/consensus/evidence.
For more information about the cosmos-sdk x/staking
and x/slashing
modules, and UnbondingTime
parameter, please see: https://docs.cosmos.network/v0.50/build/modules/staking and https://docs.cosmos.network/v0.50/build/modules/slashing.
CometBFT is designed to be configurable by chains, and implements many different configuration variables and parameters to allow chain developers, validators, node operators, and chain participants to customize it best to their use case.
As more chains adopt the Interchain Stack for new and cutting-edge use cases, the CometBFT team recommends that all chains regularly evaluate their consensus parameters and configurations to ensure they meet the needs of their ecosystem as their networks mature.
A Github Security Advisory for this issue is available in the CometBFT repository. For more information about CometBFT, see https://docs.cometbft.com/.
This issue was reported to the Cosmos Bug Bounty Program on HackerOne on February 15, 2024. If you believe you have found a bug in the Interchain Stack or would like to contribute to the program by reporting a bug, please see https://hackerone.com/cosmos.
Permalink: https://github.com/advisories/GHSA-555p-m4v6-cqxvJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS01NTVwLW00djYtY3F4ds4AA5lr
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Low
Classification: General
Published: 9 months ago
Updated: 9 months ago
Identifiers: GHSA-555p-m4v6-cqxv
References:
- https://github.com/cometbft/cometbft/security/advisories/GHSA-555p-m4v6-cqxv
- https://github.com/advisories/GHSA-555p-m4v6-cqxv
Blast Radius: 0.0
Affected Packages
go:github.com/cometbft/cometbft
Dependent packages: 1,504Dependent repositories: 122
Downloads:
Affected Version Ranges: <= 0.38.5
No known fixed version
All affected versions: 0.34.27, 0.34.28, 0.34.29, 0.34.30, 0.34.31, 0.34.32, 0.34.33, 0.34.34, 0.34.35, 0.37.0, 0.37.1, 0.37.2, 0.37.3, 0.37.4, 0.37.5, 0.37.6, 0.37.7, 0.37.8, 0.37.9, 0.37.10, 0.37.11, 0.37.12, 0.37.13, 0.38.0, 0.38.1, 0.38.2, 0.38.3, 0.38.4, 0.38.5