The hasRequestedExit function returns true for delegations that have already exited, not just those with a pending exit request. This can cause users and dApps to misinterpret delegation status, leading to UI confusion or incorrect protocol logic.
New NFT levels added after deployment via addLevel() never get a boostPricePerBlock value, because that value is only set during initialisation. As a result, users could use the boost feature on those levels for free.
The Stargate contract subtracts a token's effective stake from the delegator's effective stake both when a user requests a delegation exit and again when the user unstakes after the validator has exited. This double subtraction can underflow the unsigned integer, causing the unstake call to revert and permanently locking the user's staked VET.
The Stargate contract reduces a validator's effective stake twice for the same token when a user requests a delegation exit and later unstakes after the validator has exited. This incorrect accounting could affect reward calculations and may cause an underflow that prevents some users from exiting delegations.
Newly added NFT levels never get a non-zero boost price, so boosting a token of such a level costs zero VTHO and instantly ends the maturity period. This lets users skip the maturity lock for free and deprives the protocol of expected boost fee income.
When a delegator requests an exit and later unstakes after the validator has exited, Stargate subtracts that delegator's effective stake twice for the same period range. This can make unstake revert on an arithmetic underflow, freezing the staked VET, or silently zero out the per-period totals so remaining delegators receive no rewards.
The Stargate contract decrements a user's effective stake when they request a delegation exit, and then decrements it again in unstake() if the validator has exited, causing an arithmetic underflow that makes unstake() revert permanently. An attacker or unlucky user could permanently lock their staked VET and NFT because no recovery function exists.
The contract decreases a validator's total delegator stake twice when a user requests exit and the validator later exits before the user unstakes or redelegates. The second subtraction can underflow, making unstake() and delegate() revert and leaving the user's staked VET stuck.
A delegator who has requested to exit but not yet unstaked can be blocked from unstaking if their validator also exits, because the contract subtracts the delegator's effective stake from the validator's total a second time, causing an underflow panic. This can permanently freeze the delegator's funds if the validator never returns.
The reward-claiming function returns early when a user has zero claimable rewards, so the last-claimed period is never advanced. If a validator produces enough zero-reward periods to exceed the maximum claimable period gap, the user can no longer unstake and their funds are permanently locked.
A delegator who requests exit while the validator is active has their effective stake removed immediately, but when the validator later exits, the unstake function attempts to remove the same stake again, causing an arithmetic underflow and reverting. This permanently locks the user's staked VET and pending rewards.
The report claims that a validator's effective stake can be decreased twice for the same delegation: once when a user requests an exit while the validator is active, and again when the validator later becomes exited and the user delegates to a new validator. This could lead to permanent freezing of funds.
The same event is emitted from two code paths with its final parameter meaning different things: a block clock value in one path and a delegation period index in the other. Indexers and analytics would record inconsistent exit period data, making exit requests impossible to reconstruct reliably.
The LevelCirculatingSupplyUpdated event is only emitted when a level is created, not when the circulating supply changes through mint, burn or migrate. Off-chain indexers and dApps relying on this event will see stale per-level supply values after the initial creation.
The _claimableDelegationPeriods function used a strict greater-than check instead of greater-than-or-equal when comparing a delegation's end period with the next claimable period. When the two were equal, an exited delegator could claim rewards for periods after their delegation ended, taking yield owed to active delegators.
The Stargate contract decreases a delegation's effective stake twice for the same NFT: once in requestDelegationExit and again in unstake, with no guard to prevent the second decrease. When the aggregated effective stake is already zero, the second subtraction underflows and reverts, so the NFT can never be unstaked and the VET principal and rewards stay locked.
The Stargate contract subtracts a delegator's stake from the validator's total effective stake twice when a user requests a delegation exit and then the validator exits before the user unstakes. This artificially deflates the validator's total stake, causing remaining delegators to receive inflated rewards from the protocol's reward pool.
The Stargate contract's reward-claiming function returns early when there are zero claimable rewards, without updating the last claimed period. If a validator produces many zero-reward periods, the backlog exceeds the maximum allowed, causing unstake and redelegate calls to revert and permanently locking the NFT and staked VET.
The claimable-period calculation in the Stargate contract fails to cap rewards at the delegation's end period once a user has exited and claimed up to that period. An attacker could repeatedly claim VTHO rewards for periods after their delegation ended, draining funds from the contract.
The unstake function decreases a validator's total effective stake a second time when a delegator had already reduced it during an earlier exit request, because the code only checks whether the validator has exited. Repeated unstakes can drive the recorded total below the sum of remaining delegators' stakes, so the last delegators may be unable to unstake and their funds stay locked.
The report claims an off-by-one error in reward period accounting allows an attacker to claim rewards for periods they never staked in or to skip periods, leading to theft of unclaimed yield and misallocation of funds. The proof of concept uses a mock staker that jumps periods to show mis-accounting, but it does not demonstrate actual fund loss on the real contract.
Both requestDelegationExit and unstake decrease a validator's effective stake for the same delegation, so the second decrease underflows and reverts. A user who requests exit and whose validator then exits can never unstake, permanently locking their staked VET and corrupting reward accounting.
The claimableDelegationPeriods function uses a strict inequality that fails when the delegation end period equals the next claimable period, causing ended delegations to be treated as active. An attacker could claim rewards for periods after their delegation has ended, leading to theft of unclaimed yield and potential protocol insolvency.
The StargateNFT contract lets a level operator add new NFT levels, but there is no exposed function to set the boost price per block for those levels, so the price defaults to zero. A user staking at such a level can call boost and pay nothing, bypassing the intended staking boost cost.
When a delegator has already exited a delegation and the validator later exits, calling unstake or delegate again subtracts the token's stake from the validator's effective stake a second time. This causes an arithmetic underflow that makes both calls revert permanently, so the delegator cannot recover their staked VET.
The Stargate contract decrements a validator's effective stake twice during the unstake flow when a validator has exited: once in requestDelegationExit and again in unstake. This causes an arithmetic underflow that permanently prevents the user from unstaking and withdrawing their staked VET.
New NFT levels added after deployment have a boost price of zero because no setter is exposed to configure it, so any user can skip the maturity period for free. This lets an attacker delegate immediately and earn staking rewards earlier than intended, diluting honest stakers' rewards.
Calling requestDelegationExit decrements the effective stake for a period, and when the validator later reaches EXITED status, unstake applies a second decrement for the same period. This causes an arithmetic underflow so every unstake attempt reverts, permanently freezing the user's staked VET.
A boundary check in the Stargate contract's claimable-periods function used a strict greater-than comparison, so when a delegation's end period equalled the next claimable period the exit branch was skipped. An exited delegator could then claim VTHO rewards for periods after their delegation ended, taking yield owed to active delegators.
VS
Vechain | Stargate Hayabusa
High
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.