Skip to content

Code4rena

GoGoPool contest

Every publicly disclosed report for GoGoPool contest and what kind of bugs they were.

disclosed reports
28
most reported class
Business logic
bug classes found
4
first disclosure
2023
Find GoGoPool contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what GoGoPool contest chose to make public.

Business logic

Node operator is getting slashed for full duration even though rewards are distributed based on a 14 day cycle

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.

GoGoPool contest

High
Smart contracts

Inflation of ggAVAX share price by first depositor

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.

GoGoPool contest

High
Business logic

Coding logic of the contract upgrading renders upgrading contracts impractical

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.

GoGoPool contest

Medium
Business logic

Inflation rate can be reduced by half at most if it gets called every 1.99 interval

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.

GoGoPool contest

Medium
Business logic

MultisigManager may not be able to add a valid Multisig

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.

GoGoPool contest

Medium
Smart contracts

Slashing fails when node operator doesn’t have enough staked GGP

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.

GoGoPool contest

Medium
Business logic

TokenggAVAX: maxDeposit and maxMint return wrong value when contract is paused

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.

GoGoPool contest

Medium
Business logic

Recreated pools receive a wrong AVAX amount due to miscalculated compounded liquid staker amount

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.

GoGoPool contest

Medium
Business logic

Any duration can be passed by node operator

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.

GoGoPool contest

Medium
Business logic

maxWithdraw() and maxRedeem() doesn’t return correct value which can make other contracts fail while working with protocol

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.

GoGoPool contest

Medium
Business logic

Functions cancelMinipool() doesn’t reset the value of the RewardsStartTime for user when user’s minipoolcount is zero

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.

GoGoPool contest

Medium
Business logic

Wrong reward distribution between early and late depositors because of the late syncRewards() call in the cycle, syncReward() logic should be executed in each withdraw or deposits (without reverting)

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.

GoGoPool contest

Medium
Business logic

AVAX Assigned High Water is updated incorrectly

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.

GoGoPool contest

High
Smart contracts

ProtocolDAO lacks a method to take out GGP

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.

GoGoPool contest

High
Access control

Hijacking of node operators minipool causes loss of staked funds

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.

GoGoPool contest

High
Business logic

MinipoolManager: node operator can avoid being slashed

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.

GoGoPool contest

High
Business logic

NodeOp funds may be trapped by a invalid state transition

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.

GoGoPool contest

Medium
Access control

Bypass whenNotPaused modifier

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.

GoGoPool contest

Medium