31420 - [SC - Insight] No array lengths check in VotersolclaimBribes
Description
Brief/Intro
Vulnerability Details
// @audit No check for _bribes.length == _tokens.length
/// @inheritdoc IVoter
function claimBribes(address[] memory _bribes, address[][] memory _tokens, uint256 _tokenId) external {
require(IVotingEscrow(veALCX).isApprovedOrOwner(msg.sender, _tokenId));
for (uint256 i = 0; i < _bribes.length; i++) {
IBribe(_bribes[i]).getRewardForOwner(_tokenId, _tokens[i]);
}
}Impact Details
Suggestion/ Recommendation
References
Proof of Concept
Previous31418 - [SC - Critical] the killed gauge collect claim amountNext31425 - [SC - Medium] Users can call reset on their token even if the...
Last updated
Was this helpful?