The Cairo contract bridge.cairo lacks a check for the payload size, which is present in the Solidity contract Bridge.sol. This inconsistency can lead to issues with message consumption on L1 if the payload exceeds the allowable size.
When depositing to the bridge, The solidity contract Bridge.sol performs a check on payload here.
this is inconsistent with the cairo contract bridge.cairo that does not perform a check on the payload size. This can cause the message on l1 to be not consumable.
Locations:
The probability of this issue occurring is medium, and the impact is medium where messages that exceed the allowable size may not be processed correctly, leading to failed transactions.
Manual code review
add a check on the payload size on the cairo contract.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.