Miggo Logo

GHSA-g5xx-c4hv-9ccc: CometBFT's state syncing validator from malicious node may lead to a chain split

4.7

CVSS Score
3.1

Basic Information

CVE ID
-
EPSS Score
-
CWE
-
Published
9/3/2024
Updated
11/18/2024
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/cometbft/cometbft/lightgo>= 0.34.0, < 0.34.340.34.34
github.com/cometbft/cometbft/lightgo>= 0.37.0, < 0.37.110.37.11
github.com/cometbft/cometbft/lightgo>= 0.38.0, < 0.38.120.38.12
github.com/cometbft/cometbftgo>= 0.37.0, < 0.37.110.37.11
github.com/cometbft/cometbftgo>= 0.38.0, < 0.38.120.38.12

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stemmed from missing validation of ProposerPriority fields during light client verification. The core issue was in functions handling validator set comparisons:

  1. Header comparison functions in light client logic failed to check ProposerPriority hashes
  2. ValidatorSet.Hash() intentionally excluded ProposerPriority values
  3. The patch added ProposerPriorityHash() and updated verification functions to use it, confirming these were the missing checks
  4. Commit diffs show modifications to comparison functions and ValidatorSet hashing logic
  5. Vulnerability manifests when these functions accept validator sets with mismatched proposer priorities

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

**N*m***: *S*-****-***: St*t* syn*in* v*li**tor *rom m*li*ious no** m*y l*** to * ***in split ***ompon*nt**: *om*t**T ***riti**lity**: M**ium ([**Mv*.*](*ttps://*it*u*.*om/int*r***inio/s**urity/*lo*/m*in/r*sour**s/*L*SSI*I**TION_M*TRIX.m*): I:Mo**r*t

Reasoning

T** vuln*r**ility st*mm** *rom missin* v*li**tion o* Propos*rPriority *i*l*s *urin* li**t *li*nt v*ri*i**tion. T** *or* issu* w*s in *un*tions **n*lin* v*li**tor s*t *omp*risons: *. *****r *omp*rison *un*tions in li**t *li*nt lo*i* **il** to ****k Pr