The validParameters
function in the assumes that _parameters[0]
always exists if _parameters.length
is 1 or 2. If _parameters
is empty, this will cause an out-of-bounds error, potentially leading to unexpected behavior or contract failure.
The validParameters
function checks if the provided _parameters
are valid. However, it does not check if _parameters
is empty before accessing _parameters[0]
. This can lead to an out-of-bounds error if _parameters
is empty, causing the contract to revert unexpectedly.
Using the following values:
_parameters
: An empty array
Any user can call the validParameters
function with an empty array to trigger the out-of-bounds error.
The lack of input validation allows the function to access an out-of-bounds index, causing the contract to revert unexpectedly. This can lead to unexpected behavior or contract failure.
Manual review.
The lack of input validation allows the function to access an out-of-bounds index, causing the contract to revert unexpectedly. This can lead to unexpected behavior or contract failure.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelyhood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
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.