There is a method called mint_range
in the custom implementation of ERC721
on L2
where it can be used by the owner to mint owner to mint more than one NFT at one time.
erc721_bridgeable.cairo#L141-L150
As we can see there is no check that end
is greater than start
which is not a normal thing to leave without checking it when doing sequential operations like minting tokens in order.
If end
equals sstart
we will end up not minting anything, as we are not including the end in that implementation of the function. and if the end
is smaller than start
will go in an infinite loop which will make our tx go OOG
.
Check that the end
is greater than start
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.