Skip to content

Code4rena

LSD Network - Stakehouse contest

Every publicly disclosed report for LSD Network - Stakehouse contest and what kind of bugs they were.

disclosed reports
52
most reported class
Business logic
bug classes found
5
first disclosure
2023
Find LSD Network - Stakehouse contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what LSD Network - Stakehouse contest chose to make public.

Smart contracts

Rewards of GiantMevAndFeesPool can be locked for all users

The GiantMevAndFeesPool contract's reward accounting can be manipulated by any user because the inherited ERC20 transfer function is not protected and triggers hooks that update reward state. An attacker could lock all rewards in the pool, making them inaccessible to other users.

LSD Network - Stakehouse contest

High
Business logic

Unstaking does not update the mapping sETHUserClaimForKnot

When a user unstakes part of their sETH, the contract pays out the ETH owed but does not update the record of how much has already been claimed. The user is then left with a claim record based on the larger original stake, so they can claim little or nothing on their remaining stake.

LSD Network - Stakehouse contest

High
Smart contracts

BringUnusedETHBackIntoGiantPool can cause stuck ether funds in Giant Pool

The function that returns unused ETH from a vault to the Giant Pool does not update the pool's idleETH accounting variable. As a result, the returned ETH becomes permanently stuck because later withdrawals and staking deposits revert due to an underflow in idleETH.

LSD Network - Stakehouse contest

High
Smart contracts

Protocol insolvent - Permanent freeze of funds

A reentrancy flaw in the withdrawETHForKnot function lets a node runner re-enter the stake function before their BLS key is banned, causing the key to become both banned and in the DEPOSIT_COMPLETE state. This permanently freezes user funds, as derivatives cannot be minted and LP tokens cannot be burned or rotated.

LSD Network - Stakehouse contest

High
Race condition

Possible reentrancy and fund theft in withdrawDETH() of GiantSavETHVaultPool because there is no whitelist check for user provided Vaults and there is no reentrancy defense

The withdrawDETH function in GiantSavETHVaultPool accepts user-supplied vault addresses without validation and makes external calls to them before transferring the calculated dETH amount, with no reentrancy protection. An attacker could supply a malicious vault contract that reenters or manipulates the contract's dETH balance during the call, causing the contract to transfer more dETH than owed.

LSD Network - Stakehouse contest

High
Business logic

User loses remaining rewards in GiantMevAndFeesPool when new deposits happen because _onDepositETH() set claimed[][] to max without transferring user remaining rewards

When a user deposits more ETH into the GiantMevAndFeesPool, the contract sets their claimed rewards to the maximum based on their new balance without first paying out any unclaimed rewards. This causes the user to permanently lose those previously earned rewards.

LSD Network - Stakehouse contest

High
Access control

Giant pools can be drained due to weak vault authenticity check

The Giant pools checked a vault's authenticity by calling a function on the vault itself, so an attacker could supply a fake contract that returned a valid manager address and receive the pool's ETH. The attacker could then withdraw all ETH staked by users in the pool.

LSD Network - Stakehouse contest

High
Access control

bringUnusedETHBackIntoGiantPool in GiantMevAndFeesPool can be used to steal LPTokens

The function bringUnusedETHBackIntoGiantPool does not verify that the provided staking funds vaults are legitimate, allowing an attacker to supply fake vault contracts. The attacker can then use these fake vaults to transfer real LP tokens out of the GiantMevAndFeesPool contract.

LSD Network - Stakehouse contest

High
DoS

Giant pools cannot receive ETH from vaults

The giant pools lack a fallback or receive function, so when the vaults try to send back unused ETH via a low-level call, the transfer fails and the whole function reverts. As a result, unused ETH stays in the vaults and cannot be used to cover withdrawals, potentially causing insolvency.

LSD Network - Stakehouse contest

Medium
Access control

Adding non EOA representative

The contract enforces that a node runner's representative must be an externally owned account (EOA) when registering, but the same check is missing in the functions that rotate the representative. An attacker could therefore set a contract as the representative, bypassing the intended restriction.

LSD Network - Stakehouse contest

Medium
Access control

DAO admin in LiquidStakingManager.sol can rug the registered node operator by stealing their fund in the smart wallet via arbitrary execution.

The DAO admin of the LiquidStakingManager contract can call executeAsSmartWallet to make arbitrary calls from a node operator's smart wallet, allowing the admin to transfer the wallet's ETH or ERC20 tokens to themselves. This lets the admin steal the funds that node operators deposit when registering.

LSD Network - Stakehouse contest

Medium
Business logic

Incorrect implementation of the ETHPoolLPFactory.sol#rotateLPTokens let user stakes ETH more than maxStakingAmountPerValidator in StakingFundsVault , and DOS the stake function in LiquidStakingManager

The rotateLPTokens function in ETHPoolLPFactory.sol uses a hardcoded 24 ether limit instead of the maxStakingAmountPerValidator (4 ether) for the StakingFundsVault, allowing a user to rotate LP tokens and inflate the total supply of a staking fund LP token beyond 4 ether. This causes the stake function in LiquidStakingManager to revert because it requires the total supply to be exactly 4 ether, resulting in a denial of service for that validator's staking.

LSD Network - Stakehouse contest

Medium
Business logic

dETH / ETH / LPTokenETH can become depegged due to ETH 2.0 reward slashing

The report argues that dETH, ETH and LPTokenETH could lose their peg because ETH 2.0 staking carries a slashing penalty, which would leave a validator below the 32 ETH minimum balance. The author claims this could break the promised no-loss protected staking, though the protocol disputed that any peg exists.

LSD Network - Stakehouse contest

Medium
Business logic

Cross-chain replay attacks are possible with deployLPToken

The deployLPToken function does not include the chain ID in the data it uses to create a new LP token, so if a user deploys on the wrong network, an attacker can replay the same action on the correct chain and steal the funds. The report references a similar attack on a Gnosis Safe.

LSD Network - Stakehouse contest

Medium
Business logic

Attacker can grift syndicate staking by staking a small amount

The liquid staking manager always stakes a fixed 12 ETH through the syndicate, but the syndicate contract caps total staking at 12 ETH and reverts on overflow. An attacker who owns a small amount of the staking token can front-run a mintDerivatives call by staking a tiny amount, causing the legitimate 12 ETH stake to revert.

LSD Network - Stakehouse contest

Medium
Business logic

ETH sent when calling executeAsSmartWallet function can be lost

The executeAsSmartWallet function is payable but does not forward the sent ETH to the smart wallet, so the ETH becomes locked in the LiquidStakingManager contract. When the smart wallet has sufficient balance, the call succeeds and deducts the value from the smart wallet instead, causing the DAO to lose the sent ETH and the node runner to lose funds from their smart wallet.

LSD Network - Stakehouse contest

Medium
Business logic

smartWallet address is not guaranteed correct. ETH may be lost

The vault's ETH withdrawal function for staking does not check that the supplied smart wallet address actually exists, so a mistyped or wrong address still receives the transfer and the ETH becomes permanently locked. An attacker or careless manager could therefore cause loss of funds by passing a non-existent address.

LSD Network - Stakehouse contest

Medium
Business logic

User receives less rewards than they are eligible for if first passed BLS key is inactive

The claimRewards function only refreshes the accumulated ETH-per-LP share when the first supplied BLS key is still part of the syndicate, so for other key orderings the reward distribution uses a stale share value. A user could therefore receive fewer rewards than they are eligible for.

LSD Network - Stakehouse contest

Medium
Race condition

rotateNodeRunnerOfSmartWallet is vulnerable to a frontrun attack

A node runner in the liquid staking network could call the rotation function themselves before the DAO's slashing transaction landed, moving the smart wallet to a new address and avoiding being banned. The DAO's later transaction would then revert because the old node runner no longer had a wallet.

LSD Network - Stakehouse contest

Medium
Business logic

Incorrect checking in _assertUserHasEnoughGiantLPToClaimVaultLP

The batch withdrawal functions check the wrong token's last-interaction timestamp, so after the first withdrawal the shared token's timestamp is updated and any further withdrawals in the same batch fail. An attacker could not gain funds, but legitimate users could not withdraw several LP tokens in one transaction, forcing one withdrawal per day.

LSD Network - Stakehouse contest

Medium
Business logic

Giant pools are prone to user griefing, preventing their holdings from being staked

The batchRotateLPTokens function in the GiantMevAndFeesPool lets any user rotate LP tokens between staking funds vaults, and the only guard is a 0.5 ether lpTokenETH balance that can be obtained and burned at will. A malicious user could therefore keep moving LP tokens around and stop the pool's holdings from being staked by the liquid staking manager.

LSD Network - Stakehouse contest

Medium
Smart contracts

Freezing of funds - Hacker can prevent users withdraws in giant pools

A hacker can prevent users from withdrawing dETH or LP tokens from giant pools by sending a zero-amount token transfer to the victim, which updates the victim's last interaction timestamp and causes the withdrawal to revert with 'Too new'. This can be done repeatedly to freeze funds and cause a liquidity crunch.

LSD Network - Stakehouse contest

Medium
Business logic

Rotating LPTokens to banned BLS public key

The rotateLPTokens function does not check whether the new BLS public key is banned, allowing a user to migrate LP tokens to a banned key. This could lead to project insolvency, especially if the banned key was malicious.

LSD Network - Stakehouse contest

Medium
Smart contracts

Theft of ETH of free floating SLOT holders

A reward-accounting bug in the Syndicate contract lets a malicious user overwrite rather than accumulate the accrued ETH per share, so they can claim ETH that belongs to free floating SLOT holders. The reporter states an attacker can steal all claimable ETH of those holders.

LSD Network - Stakehouse contest

High