Hunt prep
Before you test Stader Labs
What 15 disclosed reports say about Stader Labs: 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
Not written yet for this program. The numbers below are up to date.
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 | 7 | 0 | – | – | $0 |
| Access control lesson | 6 | 0 | – | – | $0 |
| Smart contracts 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.
-
updatePoolAddress functions always revert when updating existing poolId
The fix is to remove the verifyNewPool call and replace it with a check that only reverts on a poolId mismatch.
Disclosed
-
Protocol will not benefit from slashing mechanism when remaining penalty bigger than minThreshold
The function should calculate the SD amount needed to cover the remaining penalty (difference between operatorShare and penaltyAmount) instead of using minThreshold.
Disclosed
-
depositETHOverTargetWeight() malicious modifications poolIdArrayIndexForExcessDeposit
The function should revert if no validators are found to deposit, preventing the index from rolling over unnecessarily.
Disclosed
-
ValidatorWithdrawalVault.settleFunds doesn’t check amount that user has inside NodeELRewardVault to pay for penalty
The settleFunds function should also calculate the operator's rewards inside NodeELRewardVault when applying the penalty.
Disclosed
-
No bidder has incentive to bid in the Auction except doing last-minute MEV due to fixed endBlock
The final endBlock should be extended at each bid, for example after the first hour, to allow fair competition and better price discovery.
Disclosed
-
Chainlink’s latestRoundData may return a stale or incorrect result
The contract should check the updatedAt value returned by latestRoundData and reject prices older than a maximum delay.
Disclosed
-
MEV bots can win all the auctions when Auction is paused
The issue was fixed by removing PausableUpgradeable from the Auction contract, which also removed the whenNotPaused modifier from addBid.
Disclosed
-
Stader OPERATOR is a single point of failure
The logic was moved to an oracle and the issue was fixed, though the report suggests at minimum not advertising the protocol as permissionless.
Disclosed
-
StaderOracle - Strict equal can cause no consensus if trusted nodes are removed before consensus
The strict equality check should be replaced with a greater-than-or-equal comparison, and the project confirmed it was fixed.
Disclosed
-
Corruption of oracle data
The contract should check that the reported block is the latest reportable block and store prices per block, or clear previous data before pushing new data.
Disclosed
-
Owner in VaultProxy.sol is address(0)
StaderConfig.initialize should also set the admin in the mapping that getAdmin reads, for example by calling setAccount(ADMIN, _admin).
Disclosed
-
ValidatorWithdrawalVault.distributeRewards can be called to make operator slashable
The report suggests restricting access to the distributeRewards function, and the judge suggests also fetching and solving penaltyAmount during distributeRewards.
Disclosed
-
VaultProxy implementation can be initialized by anyone and self-destructed
The issue was fixed by preventing initialise from being called on the implementation, for example by using OpenZeppelin's Initializable with _disableInitializers in the constructor.
Disclosed
-
Risk of losing admin access if `updateAdmin set with same current admin address
The updateAdmin function should include a check to ensure the new admin address is different from the current admin address.
Disclosed
-
pause/unpause functionalities not implemented in many pausable contracts
Public or external pause and unpause functions with proper role checks should be added, as done in another contract in the same project; the project later said this was fixed.
Disclosed