In OWPIdentity.sol
, the mintBatch
and burnBatch
functions do not check the lengths of the input ids
and amounts
arrays. To ensure the two arrays do not go out of bounds, their lengths should be checked for equality.
PS: Even if MINTER_ROLE
operates with trusted, reasonable inputs, array length mismatch checks for ids
and amounts
should still be added within the functions. Recommendation: Reference the array length mismatch check in the burnBatchMultiple
function for the fix.
After inputting large amounts of data, MINTER_ROLE
could inadvertently cause the lengths of the ids
and amounts
arrays to be inconsistent due to momentary oversight, leading to incorrect operations being executed by mintBatch
and burnBatch
.
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.