diwakergupta / stacks-blockchain-tob-audit

GNU General Public License v3.0
0 stars 0 forks source link

No checks to ensure segment proof ends in root node #5

Open blperez01 opened 4 years ago

blperez01 commented 4 years ago

In chainstate/stacks/index/proofs.rs, the function is_proof_well_formed claims to check for the following properties in a potential segment proof

However, the function does not check that segment proofs end in a Node256.

jcnelson commented 4 years ago

This is a bug; will fix.