58492 sc medium unbounded deposit exposure in tokeautoethstrategy allocate
Description
Brief/Intro
function _allocate(uint256 amount) internal override returns (uint256) {
require(TokenUtils.safeBalanceOf(address(weth), address(this)) >= amount, "Strategy balance is less than amount");
TokenUtils.safeApprove(address(weth), address(router), amount);
uint256 shares = router.depositMax(autoEth, address(this), 0);
TokenUtils.safeApprove(address(autoEth), address(rewarder), shares);
rewarder.stake(address(this), shares);
return amount;
}Vulnerability Details
Impact Details
References
Proof of Concept
Previous57599 sc low protocol wrongly withdraws before checking balance of withdrawNext58449 sc medium tokeautoeth strategy balance approval mismatch dos
Was this helpful?