Hunt prep
Before you test Vechain | Stargate Hayabusa
What 94 disclosed reports say about Vechain | Stargate Hayabusa: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing 12
Ideas drawn from this program's disclosed reports and our class lessons. None of them is a known bug: each is a place to look, and the reports linked under it are why. Check the current scope before testing anything.
-
1
Check reward claim window boundary for off-by-one after exit
Business logic Read the lesson
Several reports show the claimable period calculation letting exited delegations claim past their end period. Re-test the boundary logic in the claim path on Stargate.sol with delegations that exit exactly on a period boundary, since the fix may not cover every exit ordering.
-
2
Test effective stake accounting when validator and delegator exit in same period
The dominant finding here is double decrement of effective stake when a validator exits after a delegator. Probe the exit ordering variants in Stargate.sol, including re-delegation and unstake after both exits, to see whether any path still underflows or double-subtracts.
-
3
Probe newly added levels for missing boost price initialisation
Business logic Read the lesson
Reports show levels added after deployment get no boost price, allowing free boosts and maturity skips. Test addLevels in StargateNFT.sol for other uninitialised per-level fields and whether a later setter can correct them.
-
4
Check unstake access control and zero address validator handling
Access control Read the lesson
One report claims an access control bypass in unstake and another flags an unchecked zero address validator. Test unstake in Stargate.sol for caller restrictions and validator address validation, including whether a crafted validator argument changes accounting.
-
5
Test reward accounting for zero-reward and skipped periods
Reports describe zero-reward validators and skipped periods locking funds or mis-paying rewards. Exercise claimRewards and unstake in Stargate.sol across periods with no rewards to see whether state updates are skipped and later block withdrawal.
-
6
Look for stale checkpoint state after level or supply changes
Business logic Read the lesson
One report describes stale checkpoints corrupting historical state and another notes missing supply update events. Test level additions and supply changes in StargateNFT.sol to see whether cached or checkpointed values diverge from live state and affect later claims.
-
7
Check migration and token manager caller restrictions
Access control Read the lesson
A report flags inconsistent permitted callers in migrateTokenManager. Test the migration path and any privileged setters in Stargate.sol for missing or overly broad authorisation, including whether a non-owner can trigger state changes.
-
8
Test boost and maturity logic for newly added levels
Business logic Read the lesson
Reports show a zero maturity or zero boost price on new levels lets users skip maturity and boost for free. Test the mint and boost paths in MintingLogic.sol and StargateNFT.sol for other per-level parameters that default to permissive values.
-
9
Probe hasRequestedExit and exit period reporting consistency
Business logic Read the lesson
One report shows hasRequestedExit returning true for already exited delegations and another shows inconsistent exit period event values. Test the exit state queries and events in Stargate.sol for mismatches that could mislead integrators or gate later actions.
-
10
Check first period reward loss for pending validators
Business logic Read the lesson
A report shows delegators losing their first reward period when delegating to pending validators. Test delegation to validators in different lifecycle states in Stargate.sol to see whether period indexing skips or double-counts the first period.
-
11
Test reward claims after exit for continued accrual
Business logic Read the lesson
Many reports show exited delegators still accruing or claiming rewards. Re-test the claim path in Stargate.sol with delegations that exit and then wait several periods, checking whether per-user effective stake tracking prevents post-exit payouts.
-
12
Look for arithmetic underflow in effective stake on unusual exit sequences
Reports repeatedly describe underflow in effective stake accounting causing permanent locks. Test exit sequences that mix delegator exit, validator exit and re-delegation in Stargate.sol, watching for subtraction paths that assume a non-zero prior balance.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 64 | 0 | – | – | $0 |
| Smart contracts lesson | 17 | 0 | – | – | $0 |
| DoS lesson | 10 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| Misconfiguration lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Hasrequestedexit returns true for not just requested exits but also delegations that are already exited
The function should be updated to check that the end period is set and in the future relative to the validator's completed periods.
Disclosed
-
No mechanism to set boostpriceperblock for levels added after initialization
The addLevel() function should be extended to accept a boostPricePerBlock parameter and set it when the level is added, or a separate setter should be provided.
Disclosed
-
Incorrect double reduction of effective stake in stargate sol
The logic should track whether the effective stake has already been reduced for a given token and period, and prevent redundant reductions in unstake().
Disclosed
-
Zero boost fee for newly added levels lets users skip maturity for free and avoid paying intended vtho boost cost
The addLevel function should set a non-zero boostPricePerBlock for new levels, or a public function should be added to update it.
Disclosed
-
Double subtraction of delegator effective stake on exit can freeze vet and break reward distribution
The unstake path should check whether an exit was already requested, for example via the end period or a dedicated flag, and skip the second decrease.
Disclosed
-
An Exited delegator who has not unstaked or delegated to a validator, will be DOS'ed if a validator exits.
The contract should track whether a delegator's effective stake has already been subtracted and avoid subtracting it again when the validator exits.
Disclosed
-
Critical Withdraw DoS: Zero-Reward Validators Cause Permanent User Fund Lock via Broken Reward-Claim Logic
The claim function should update the last-claimed period even when the claimable amount is zero, so the period gap can be cleared.
Disclosed
-
Delegationexitrequested event emits inconsistent exit period values
The exitBlock value should be expressed as the specific block at which the period will end, not the period number itself.
Disclosed
-
Levelcirculatingsupplyupdated not emitted during supply changes
The event should be emitted whenever the circulating supply changes.
Disclosed
-
Incorrect Boundary Check in _claimableDelegationPeriods Allows Claiming Rewards Beyond Delegation End Period
The comparison should use greater-than-or-equal so that when the end period equals the next claimable period, the function returns the end period as the last claimable period.
Disclosed
-
Double delegatorseffectivestake decrease permanently prevents single nft from unstaking
The unstake function should check whether the delegation already had its effective stake removed at exit request time and skip the second decrease.
Disclosed
-
Unauthorized vtho reward claims after delegation exit
The _claimableDelegationPeriods() function should cap the last claimable period at endPeriod when the delegation has exited, or return no claimable periods if nextClaimablePeriod exceeds endPeriod.
Disclosed
-
Double decrease of effective stake prevents delegators from unstaking
The unstake path should only decrease the effective stake when it was not already decreased at exit-request time, for example by tracking whether the decrease has been applied.
Disclosed
-
Off by one in claimabledelegationperiods lets claims beyond exit
The comparison should use greater-than-or-equal (endPeriod >= nextClaimablePeriod) so that the equality case is handled as an ended delegation.
Disclosed
-
Missing setter for boostpriceperblock after adding new nft levels can allow users to bypass intended staking boost
The StargateNFT contract should expose a function for the level operator role to set or update boostPricePerBlock for a level after it is created.
Disclosed