Skip to content

M 02/version check can be arbitrarily bypassed #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Melvillian
Copy link
Collaborator

remove supported version checks on _verifyBlockBuilderProof

This addresses the Q3 2025 OZ audit item M-02, which pointed out that there
are no onchain checks that verify the proof was built according to
the version passed in the '_verifyBlockBuilderProof' function call.

This is correct, there are no checks, and in fact there is no way to perform
these checks since the 'blockContentHash' portion of the proof is generated
entirely offchain. So rather than perform these needless 'isSupportedVersion'
checks, we are going to remove that check to save gas, and we assume that the
version passed in the function call is not to be trusted.

Instead, it serves as a notice to any offchain verifiers reading the event data
that this is the version of the flashtestation proof they should assume when
verifying the proof. It could be the wrong version, but that's fine because the
proving code is assumed to perform adequate checks if the version is wrong

@Melvillian Melvillian changed the base branch from main to M-01/fee-incompatability-with-attestation-contract August 15, 2025 14:13
This addresses the Q3 2025 OZ audit item M-02, which pointed out that there
are no onchain checks that verify the proof was built according to
the version passed in the '_verifyBlockBuilderProof' function call.

This is correct, there are no checks, and in fact there is no way to perform
these checks since the 'blockContentHash' portion of the proof is generated
entirely offchain. So rather than perform these needless 'isSupportedVersion'
checks, we are going to remove that check to save gas, and we assume that the
version passed in the function call is not to be trusted.

Instead, it serves as a notice to any offchain verifiers reading the event data
that this is the version of the flashtestation proof they should assume when
verifying the proof. It could be the wrong version, but that's fine because the
proving code is assumed to perform adequate checks if the version is wrong
@Melvillian Melvillian force-pushed the M-02/version-check-can-be-arbitrarily-bypassed branch from 1235caf to 38e19c2 Compare August 15, 2025 14:15
@Melvillian Melvillian changed the base branch from M-01/fee-incompatability-with-attestation-contract to main August 15, 2025 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant