Skip to content

Follow up EOS issue 2204: check block before pushing to fork db #831

@abitmore

Description

@abitmore

EOSIO/eos#2204:

Right now we only check if a received block is linkable to an existing block in fork_db but do no other checks. If the network code also doesn't reject multiple blocks at the same block height from the same node, it opens itself up to an easy DOS attack.

Rather than relying only on the network code to protect against such attacks, we should do some light validation of the received blocks (particularly enough to check that it was correctly signed by an active producer from the perspective of that block) before including it into the fork_db.

Metadata

Metadata

Assignees

No one assigned

    Labels

    1b User StoryThe User Story details a requirement. It may reference a parent Epic. It may reference child Task(s)2b Gathering RequirementsStatus indicating currently refining User Stories and defining Requirements3c EnhancementClassification indicating a change to the functionality of the existing imlementation4b Normal PriorityPriority indicating the moderate impact to system/user -OR- existing workaround is costly to perform6 SecurityImpact flag identifying system/user securitysecurity

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions