When Bridging NFTs from L1
to L2
there is a check that ensures the payload data we are Bridging do not exceed MAX_PAYLOAD_LENGTH
which is set to 300
But if we check bridge.cairo
we will find that this check is not implemented, we are not checking whether the payload length exceeds a certain value or not.
This will make L1Bridge
and L2Bridge
work with different logic. where one of them restricts the payload length and other is not.
Manual Review
Implement the max payload check in L2Bridge
.
Please, do not suppose impacts, think about the real impact of the bug and check the CodeHawks documentation to confirm: https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity A PoC always helps to understand the real impact possible.
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.