Skip to content

dash-spv: verify MnListDiff against the coinbase merkle roots before applying #1117

Closed
PastaPastaPasta/dashwallet-desktop
#334

Description

@ZocoLini

The masternode sync manager applies peer MnListDiffs without checking the coinbase merkle proof or the merkle_root_mn_list / merkle_root_quorums commitments. MasternodeList::has_valid_mn_list_root exists but is never called. A malicious peer can inject quorum keys and then get ChainLocks it signed itself accepted.

Fix: verify the coinbase inclusion against the stored header and the list/quorum roots against the coinbase payload before apply_diff. Only use verified quorums in ChainLock verification.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions