In the convert
function potential system halt due to processing an excessive number of zero value stems.
The convert
function can process an unlimited number of stems due to the lack of input validation. If a user sends an excessive number of zero value stems, specifically the maximum value for int96
, it can cause the system to halt. This is because the loop in the function _withdrawTokens
will attempt to process more stems than the system can handle.
function _withdrawTokens
if the value of germStem.germinatingStem
is zero and the maximum array length of stems is exceeded or zero values, it will halt the system.
System Halt: If the value of germStem.germinatingStem
is zero and the maximum array length of stems is exceeded, it will halt the system.
Manual Review
Validate Input Lengths:
Ensure the stems
array length is within acceptable limits to prevent system overload.
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.