Skip to content

missing size validations in lightclient and connection creation #8775

@yihuang

Description

@yihuang

Summary of Bug

light client and connection creation is permissionless, we should limit the field lengths of user input to mitigate storage spam.

  • The merkle root hash size in ConsensusState.
  • counterparty prefix size in ConnectionInit msg.

Expected Behaviour

Version

Steps to Reproduce


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged/assigned
  • Estimate provided

Metadata

Metadata

Assignees

No one assigned

    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