#46858 [SC-High] The agent owner can exploit a malicious rewardManager to steal tokens from the protocol
Description
Brief/Intro
Vulnerability Details
function claimAirdropDistribution(
IDistributionToDelegators _distribution,
uint256 _month
)
external
onlyAgent
returns(uint256)
{
uint256 claimed = _distribution.claim(address(this), payable(address(this)), _month, true);
totalCollateral += claimed;
emit ClaimedReward(claimed, 0);
return claimed;
}Impact Details
References
Proof of Concept
Proof of Concept
Previous#46886 [SC-Low] `destroyAgent()` functionality can easily be bricked due to Frontrunning AttackNext#46924 [SC-Low] Last user may exit with almost all of his values, but he'll purposefully leave a small 1e18 or a little more to grief `destroy()`
Was this helpful?