BidBeasts:mint function has an obvious reentrancy vulnerability.Typically, an NFT minting function should only mint one token for one user per call.
However, the logic in the BidBeasts:mint function does not follow the Checks-Effects-Interactions (CEI) pattern, allowing the operator (admin) to perform a reentrancy attack to mint tokens for multiple users in a single transaction.
BidBeasts.sol is as follows:
Likelihood:
The admin may face the possibility of a reentrancy attack each time they perform a minting operation.
Impact:
If the admin is malicious, they could create a false scenario where NFTs are minted for multiple users in a single transaction.
In most cases, victims can easily identify the issue because the NFT is not received.
However, such an obvious code issue may make the NFT contract appear poorly designed, deterring average users.
None
Follow the CEI pattern.
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.