Skip to content

Code4rena

Stader Labs

Every publicly disclosed report for Stader Labs and what kind of bugs they were.

disclosed reports
15
most reported class
Business logic
bug classes found
3
first disclosure
2023
Find Stader Labs on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Stader Labs chose to make public.

Business logic

updatePoolAddress functions always revert when updating existing poolId

The updatePoolAddress function always reverts when trying to update an existing poolId because it calls verifyNewPool, which itself reverts if the poolId already exists. This makes it impossible to update the pool address for an existing poolId.

Stader Labs

Medium
Business logic

ValidatorWithdrawalVault.settleFunds doesn’t check amount that user has inside NodeELRewardVault to pay for penalty

The settleFunds function in ValidatorWithdrawalVault only considers the balance of that vault when calculating a validator's earnings, ignoring rewards held in NodeELRewardVault. As a result, an operator with sufficient total earnings across both vaults could still have their SD collateral slashed if the penalty exceeds the ValidatorWithdrawalVault balance alone.

Stader Labs

Medium
Audit finding

Chainlink’s latestRoundData may return a stale or incorrect result

The contract reads price feed data from Chainlink's latestRoundData without checking the timestamp of the last update, so it may use an outdated price. An attacker could exploit this stale price to cause functions to misbehave or to cause loss of funds.

Stader Labs

Medium
Business logic

MEV bots can win all the auctions when Auction is paused

The Auction contract's addBid function is protected by whenNotPaused, but the contract lacks external pause/unpause functions. If pausing were possible, MEV bots could front-run the pause transaction to place bids on all ongoing auctions, winning them for a fraction of their price.

Stader Labs

Medium
Access control

Stader OPERATOR is a single point of failure

The OPERATOR role in Stader's node registry contracts can arbitrarily mark validator keys as invalid or ignore them, and can authorise invalid keys without any on-chain verification. This undermines the permissionless nature of the pool and could allow a compromised operator to harm the system.

Stader Labs

Medium
Smart contracts

Corruption of oracle data

The StaderOracle contract stores price data in a shared array without separating it by reporting block, so data from different blocks gets mixed. When an older block is finalised, the newer block's data is lost, corrupting the oracle's price feed.

Stader Labs

Medium
Access control

Owner in VaultProxy.sol is address(0)

The initialise function in StaderConfig grants the admin role but does not update the mapping that getAdmin reads from, so getAdmin returns address(0). As a result, VaultProxy.initialise sets its owner to address(0), making all owner-restricted functions inaccessible until updateAdmin is called.

Stader Labs

Medium
Access control

ValidatorWithdrawalVault.distributeRewards can be called to make operator slashable

The permissionless distributeRewards function can be called by anyone to reset the vault balance to zero before a validator withdrawal, changing the operatorShare calculation so that it falls below the accrued penalty and triggers a slash. An attacker can front-run the withdrawal to cause this loss, or an operator can call it to rescue rewards before being slashed.

Stader Labs

Medium
Access control

VaultProxy implementation can be initialized by anyone and self-destructed

The VaultProxy implementation contract's initialise function was left unprotected, allowing anyone to set its staderConfig address to a malicious contract. An attacker could then trigger a delegatecall that self-destructs the implementation, causing all vault clones to forward calls to an address with no code and return success without executing logic.

Stader Labs

High
Access control

Risk of losing admin access if `updateAdmin set with same current admin address

The updateAdmin function revokes the old admin's DEFAULT_ADMIN_ROLE even when the new admin address is the same as the current one, causing the protocol to lose admin control over the StaderConfig contract. An attacker could not exploit this directly, but a mistaken call by the admin would lock the contract's admin functions.

Stader Labs

Medium
Access control

pause/unpause functionalities not implemented in many pausable contracts

Several contracts inherit from a pausable base but never expose external pause and unpause functions, so the emergency stop can never be triggered. An attacker cannot directly exploit this, but the intended safety mechanism is unavailable when needed.

Stader Labs

Medium