30990 - [SC - Critical] Users can use Voterpoke to accrue Flux tokens i...
Submitted on May 10th 2024 at 05:45:32 UTC by @imsrybr0 for Boost | Alchemix
Report ID: #30990
Report type: Smart Contract
Report severity: Critical
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Voter.sol
Impacts:
Manipulation of governance voting result deviating from voted outcome and resulting in a direct change from intended effect of original results
Description
Brief/Intro
Users can use Voter@poke to accrue Flux tokens indefinitely.
Vulnerability Details
Since Voter@poke
does not check if the given token id already voted in the current epoch, it can be repeatedly called by a user to accrue Flux tokens indefinitely.
Impact Details
Artificially boost voting power for gauges voting.
Claim Flux ERC20 tokens to :
Sell them
Use them to ragequit for free
References
https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Voter.sol#L195-L212
https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Voter.sol#L423
https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/FluxToken.sol#L188-L192
Proof of Concept
Results
Last updated