Skip to content

A newly appended block header should not build on an invalid chain #384

@yixiao5428

Description

@yixiao5428

This is a security vulnerability.

Currently, a new header descendant from an invalid block is still accepted.

A possible solution is to get the ancestor of the block, check the validity of the block indexes, and return error is failed, in the AcceptBlockHeader() function of src/main.cpp after line 3714.

Similar fix from Bitcoin: bitcoin/bitcoin@015a525.

Reported by 6004ed5feaa31ae9df36b5dbc60f0fa53255a5fb734334082c6d202405fc738c.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions