74371 sc insight zkverifier sol declares sp1verificationfailed error that is never raised leaving the sp1 trust boundary without a defensive wrapper
Impacts
Description
Brief/Intro
Vulnerability Details
contract ZkVerifier is Verifier {
ISP1Verifier public immutable SP1_VERIFIER;
/// @notice Thrown when SP1 proof verification reverts.
error SP1VerificationFailed(); // declared, never raised
function verify(bytes calldata proofBytes, bytes32 imageId, bytes32 journal)
external view override notNullified returns (bool)
{
SP1_VERIFIER.verifyProof(imageId, abi.encodePacked(journal), proofBytes);
return true; // no catch, no wrapper
}
}Impact Details
Recommendation
References
Link to Proof of Concept
Previous76410 bc medium stateless gamescanner permanently drops invalid in progress dispute games whose factory index falls below gamecount lookback games after any single missed tickNext74978 bc medium a bug in the respective layer 0 1 2 network code that results in unintended smart contract behavior with no concrete funds at direct risk
Was this helpful?