You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function VerifyBlockJustification(hash common.Hash, justification []byte) verifies that a justification justifies a block with hash.
There is no check to ensure that Justification.Hash equals hash . As a result it is possible that this justification is for a future block.
Substrate performs this check to ensure the justification of for this specific block and thus will reject justifications that are accepted by Gossamer.
The impact is rated low as the verification will only succeed if there are sufficient votes for a descendant of hash and thus a future block is already finalised.
Consider including a check that ensures the justification is for this specific block. That is, ensure Justification.Hash equals hash. Alternatively, it's possible that the specification could be updated to allow justifications for descendants to be used.
The text was updated successfully, but these errors were encountered:
The function
VerifyBlockJustification(hash common.Hash, justification []byte)
verifies that ajustification
justifies a block withhash
.There is no check to ensure that
Justification.Hash
equalshash
. As a result it is possible that this justification is for a future block.Substrate performs this check to ensure the justification of for this specific block and thus will reject justifications that are accepted by Gossamer.
The impact is rated low as the verification will only succeed if there are sufficient votes for a descendant of
hash
and thus a future block is already finalised.Consider including a check that ensures the justification is for this specific block. That is, ensure
Justification.Hash
equalshash
. Alternatively, it's possible that the specification could be updated to allow justifications for descendants to be used.The text was updated successfully, but these errors were encountered: