Contracts should be robust to upgrades of underlying gauges and eventually changes of the underlying tokens
The system integrates with upgradeable gauge contracts whose interfaces and underlying LP tokens can change, potentially blocking or freezing the system. An attacker or a legitimate upgrade could cause the system to become stuck, requiring a painful shutdown and operator change to rescue funds.
Submitted by Picodes
For some veAsset project (for example Angle’s gauges, gauge contracts are upgradable, so interfaces and underlying LP tokens are subject to change, blocking and freezing the system. Note that this is not hypothetic as it happened a few weeks ago: see this snapshot vote. Therefore, the system should be robust to a change in the pair gauge / token.
Note that is doable in the current setup for the veToken team to rescue the funds in such case, hence it is only a medium issue. You’d have to do as follow: a painful shutdown of the Booster (which would lead to an horrible situation where you’d have to preserve backwards compatibility for LPs to save their funds in the new Booster), an operator change in VoterProxy to be able to call execute.
Recommended Mitigation Steps
To deal with upgradeable contracts, either the VoterProxy needs to be upgradable to deal with any situation that may arise, either you need to add upgradeable “intermediate” contracts between the staker and the gauge that could be changed to preserve the logic.
jetbrain10 (veToken Finance) confirmed and commented:
Same as answer #49 for angle Voter Proxy, will make it upgrade able and make all future VoterProxy can be upgrade able as well if veAsset project agrees.
Alex the Entreprenerd (judge) commented:
The warden has shown how, due to integrating with underlying upgradeable contracts, the Sponsors Contracts could get bricked or forced into a shutdown.
I believe the finding to be equivalent to showing how the system could end up being attached to a bad gauge, and the warden has shown historical proof that this has happened and could happen again.
For those reasons, as well as the Sponsor Confirming, I believe the finding to be valid and of Medium Severity.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the system assumes the gauge and token contracts are immutable, so it has no mechanism to adapt when they are upgraded or changed.
Impact
The system could be blocked or frozen, requiring a painful shutdown of the Booster and an operator change in VoterProxy to rescue funds; the report rates this as medium severity.
What the attacker needed
Underlying gauge is upgraded or changed
The fix
The VoterProxy should be made upgradeable, or upgradeable intermediate contracts should be added between the staker and the gauge to preserve logic.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Some smart contracts can be upgraded, meaning their code or the tokens they use can change after the system starts relying on them. If the system assumes those contracts never change, a later upgrade can break it, leaving funds stuck. This report points out that the system should be built to handle such changes safely.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.