Skip to content

[BUG] MerklePatriciaProofVerifier contains a critical severity vulnerability #11

Description

@trocher

The MerklePatriciaProofVerifier contract of this repository contains a critical severity vulnerability, do not use this in production.

About

When transitioning from one node to the next, the library fails to verify whether the next node was actually provided in the proof. See MerklePatriciaProofVerifier.sol#L156-L160.
This a critical bug that allow proving exclusion of a key which is included.

Thorough breakdown: https://www.chainsecurity.com/blog/when-empty-means-valid-exploiting-mpt-proof-verification-for-an-alternative-truth

Credits

@romanagureev

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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