The slashing calculation for a node operator's missed rewards used the full staking duration instead of the 14-day reward cycle, so a node operator with low availability could be slashed for an unfairly large amount of GGP. An attacker could exploit this by staking for a long duration and then being unavailable for a short period, causing a disproportionately large slash.
The ggAVAX vault's share price could be inflated by the first depositor, allowing them to steal funds from later depositors. An attacker could deposit a tiny amount, donate a large amount of WAVAX, and call syncRewards to manipulate the exchange rate, causing subsequent depositors to receive fewer shares and lose funds.
The startRewardsCycle function lacks the WhenNotPaused modifier, so anyone can call it even when the contract is paused. This could inflate token value or cause unfair reward distribution during a pause.
The contract upgrade function registers the new contract before unregistering the old one, so if the name stays the same the unregister call wipes the new address to zero. If the name is changed, other contracts that reference the old name by a hardcoded string break, making upgrades impractical.
The function that assigns a multisig address to each new minipool always returns the first enabled multisig rather than distributing minipools across the available ones. If that single address is later disabled, every minipool created with it could become stuck, raising the chance that funds are stuck too.
The inflation calculation rounds down the number of elapsed intervals, but the start time is updated to the current timestamp, so calling inflation just before a full interval elapses causes the protocol to lose the partial interval. An attacker could repeatedly trigger inflation at short intervals to reduce the total inflation applied over time.
The recreateMinipool function allowed a minipool to be recreated without the node operator's AVAX deposit, because the deposit had already been withdrawn in the Finished state. This could let a minipool be launched using AVAX from other minipools, preventing those other minipools from launching.
The MultisigManager contract limits the number of registered multisigs to 10, but there is no way to remove or replace a disabled multisig. If all 10 slots are filled and later disabled, no new valid multisig can be added, forcing continued use of the old, potentially compromised ones.
The slashing function subtracts the calculated GGP penalty from the node operator's stake without checking the current balance, so if the GGP price has fallen since the minipool was created, the subtraction underflows and reverts. This prevents the staking end from completing, allowing the operator to avoid slashing entirely by using the error path.
The TokenggAVAX contract's maxDeposit and maxMint functions return the maximum uint256 value even when the contract is paused, while deposit and mint operations revert due to the pause. This inconsistency could cause components relying on these functions to malfunction.
The RewardsPool contract's startRewardsCycle function divides the multisig reward allotment by the number of enabled multisig wallets. If all multisig wallets are disabled, this division by zero causes the transaction to revert, blocking the reward cycle from starting.
The contract's reward estimation function uses a simple linear formula instead of Avalanche's actual reward calculation, which depends on remaining supply and staking duration. This causes the estimated validation rewards and the slashed GGP amount to be inaccurate.
A minipool owner contract that cannot receive AVAX can block Rialto's attempt to cancel the minipool, because the cancellation function sends AVAX to the owner and reverts on failure. This allows a malicious node operator to prevent cancellation of their minipool.
The recreateMinipool function incorrectly compounds rewards by assuming node operators and liquid stakers earn equal rewards, but liquid stakers receive less due to a commission fee. This causes the liquid staker amount to be overstated, potentially requiring more AVAX from the liquid staking pool than available and affecting accounting.
The minipool creation function accepted any staking duration without checking it against the intended 14 to 365 day range. A node operator could supply a very short duration so that the slashing penalty calculated from that duration was almost zero.
The maxWithdraw() and maxRedeem() functions in TokenggAVAX return a maximum amount that can exceed the contract's totalReleasedAssets, because they use totalAssets() which includes current cycle rewards. An attacker or user could attempt to withdraw the returned amount, causing a revert due to underflow in beforeWithdraw(), breaking integrations and user experience.
The MinipoolManager contract allows a minipool to transition from Staking to Error state, and recordStakingError does not reset avaxAssignedHighWater. A node operator could therefore withdraw their funds and still be eligible for GGP rewards despite the minipool having an error.
The recordStakingError function fails to decrease the staker's minipoolCount, so after a minipool error the count never reaches zero. This prevents the rewardsStartTime from being reset, allowing the staker to become immediately eligible for rewards when creating a new minipool, instead of waiting the required 14 days.
The cancelMinipool function does not reset the RewardsStartTime for a node runner when their minipool count reaches zero, allowing a node runner to cancel a minipool and later create a new one near the end of a reward cycle while still being eligible for rewards. This can lead to incorrect reward distribution, as the node runner may not have run a validation node for the required minimum time.
The minipool cancellation check used the staker's rewards start time, which is only set once, so a user who cancelled a minipool and then recreated it could cancel the new minipool immediately without waiting the required moratorium period.
The reward distribution function syncRewards() is only called manually, so if it is delayed, users who deposit or withdraw before it is called lose their share of rewards, which instead go to later depositors. An attacker could time a withdrawal to avoid forfeiting rewards, but the text does not describe a concrete attack.
The AVAXAssignedHighWater value used for reward calculation is increased by the new minipool's liquid staker amount instead of being set to the current total assigned AVAX, so it can become higher than the actual maximum assigned. A node operator could therefore inflate their recorded high-water mark and extract more rewards than intended.
The ProtocolDAO contract lacks a method to withdraw GGP tokens that are sent to it when a validator is slashed. As a result, slashed GGP becomes stuck in the ProtocolDAO and cannot be used to compensate Liquid Stakers.
The createMinipool function allowed anyone to call it with an existing nodeID, overwriting the minipool owner when the state was Withdrawable or Error. An attacker could hijack another node operator's minipool, cancel it to steal the staked AVAX, or earn rewards without hosting a node.
A node operator could choose a minipool duration long enough that the GGP slashing amount exceeds their staked GGP balance, causing the slashing call to revert. This let the operator avoid being slashed and potentially withdraw their GGP stake.
The MinipoolManager contract allows a multisig to move a minipool from an error state to a finished state, after which the node operator cannot withdraw their funds because the withdraw function rejects the state transition. An attacker with multisig access could intentionally trap node operators' funds.
Several functions that move GGP tokens, such as restakeGGP and claimAndRestake, lack the whenNotPaused modifier, so they remain callable while the protocol is paused. An attacker could therefore stake or withdraw GGP despite the admin's pause, breaking the intended emergency control.
GC
GoGoPool contest
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.