In UpdateWeightRunner.sol:setWeightsManually(), the numberOfAssets parameter can be set to any value, and it does not correlate with the length of the weights array.
setWeightsManually() function caller can specify _numberOfAssets value as 0 bypassing the requirements
Validation requirements can be bypassed
Manual review
Update the code and remove _numberOfAssets:
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.