The addNewBatch
function in RAACNFT
only checks if the batch size is non-zero but doesn't check for reasonable upper limits:
While this might not lead to direct security vulnerabilities, it could result in operational issues:
1. An excessively large batch size could make batch operations too gas-intensive to execute
2. The currentBatchSize
could grow unreasonably large over time if not properly managed
3. No checks for arithmetic overflow in the addition operation
Manual review
Add validation checks to make sure it's within reasonable upper limits
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.