Skip to content

Code4rena

BendDAO Invitational

Every publicly disclosed report for BendDAO Invitational and what kind of bugs they were.

disclosed reports
28
most reported class
Business logic
bug classes found
3
first disclosure
2024
Find BendDAO Invitational on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what BendDAO Invitational chose to make public.

Business logic

Mismatch between yield amount deposited in shares calculation and getAccountYieldBalance()

The yield staking contract records the number of shares minted when depositing ETH into Etherfi or Lido as if they were the deposited asset amount, but later calculates yield using the actual ETH balance. This mismatch causes the yield amount for each staked NFT to be incorrect, allowing some NFTs to withdraw excess yield while others may be closer to liquidation.

BendDAO Invitational

High
Access control

The bot won’t be able to unstake or repay risky positions in the yield contract

The unstake and repay functions in the yield contract fetch the borrower's yield account using msg.sender instead of the actual borrower address. When the botAdmin tries to force-close a risky position, it uses the botAdmin's own yield account, causing the transaction to fail.

BendDAO Invitational

High
Business logic

Fee-on-Transfer tokens cause problems in multiple places

The protocol's transfer functions require the contract to receive the exact intended amount, which fails for fee-on-transfer tokens because the fee reduces the received amount. This causes any function using these transfers to revert, blocking deposits, withdrawals, and bids for such tokens.

BendDAO Invitational

Medium
Business logic

Updating asset collateral params can lead to liquidate borrowers arbitrarily

The protocol's health factor calculation uses the liquidation threshold to decide if an asset counts as collateral. If the pool admin sets an asset's collateral parameters to zero, all borrowers using that asset as collateral instantly become liquidatable, allowing MEV bots to liquidate them without warning.

BendDAO Invitational

Medium
Business logic

Major insolvency risk in LiquidationLogic::executeCrossLiquidateERC721() due to not setting a maximum liquidation price

The liquidation function for ERC721 collateral calculates the price per NFT by dividing the debt by the number of collateral tokens, without an upper limit. If the NFT price drops significantly or the debt asset increases in price, the implied price per NFT becomes inflated, making liquidations unprofitable and potentially leading to bad debt.

BendDAO Invitational

Medium
Business logic

Changing auction duration will have effect on ongoing auctions

The auction duration is stored as a global parameter, so changing it affects auctions that are already in progress. An attacker (or admin) could shorten or extend ongoing auctions, potentially causing participants to lose funds or receive unexpected outcomes.

BendDAO Invitational

Medium
Business logic

Incorrect unwrapNativeTokenInWallet receiver address

The protocol's unwrapNativeTokenInWallet function attempts to pull wrapped native tokens from msg.sender instead of the specified receiver when a user requests native tokens as output. This causes withdrawals or borrows to fail when the caller and receiver differ, as the caller may not hold the wrapped tokens.

BendDAO Invitational

Medium
Business logic

User are forced to borrow again in order to unlock their NFTs from IsolateLending.sol

When a borrower redeems their NFT with a redemption threshold set to the maximum, the loan's scaled amount becomes zero but the loan status remains active and the NFT locker address is not cleared. This forces the user to borrow again to unlock their NFT, exposing them to further liquidation risk.

BendDAO Invitational

Medium
Business logic

isolateRedeem() revert in case Revert-on-zero-value-transfers tokens

When the auction fine parameters are set to zero, redeeming a loan in auction state attempts a zero-value token transfer to the first bidder. For tokens that revert on zero-value transfers, this makes redemption impossible for the borrower.

BendDAO Invitational

Medium
Business logic

It’s impossible to retrieve collected fines from the yield staking contract

When a staker repays after a forced unstake, the fine is added to the debt and pulled into the contract, but only the base debt is forwarded to the lending pool. The fine therefore accumulates in the staking contract with no function to withdraw it, so those funds are permanently stuck.

BendDAO Invitational

Medium
Business logic

Borrower can prevent yield position repayment and closure by the bot

A borrower can revoke the ERC20 approval that the yield contract relies on to pull extra funds needed to cover the debt and fines, preventing the botAdmin from repaying and closing the position. As a result, the debt remains unpaid and continues to accrue interest, causing a loss to the protocol.

BendDAO Invitational

Medium
Business logic

Updating fee factor may create issues for the protocol

When the protocol fee factor is updated, the new fee is applied to interest accrued before the change, and the supply rate still reflects the old fee factor. This can cause inconsistencies in fee accounting for the protocol.

BendDAO Invitational

Medium
Business logic

Protocol should update interest rate after changing rate model in the configurator module

After the pool admin changes the interest rate model, the protocol does not immediately update the interest rate, so interest continues to be calculated using the old model's rates until the next update. An attacker could potentially exploit this to pay or receive incorrect interest amounts for a short period.

BendDAO Invitational

Medium
Business logic

executeYieldBorrowERC20() checking yieldCap is wrong

The yield cap check in executeYieldBorrowERC20 used the wrong index to calculate total supply, making the cap inaccurate. An attacker could borrow more than the intended yield cap, creating a security risk.

BendDAO Invitational

Medium
Business logic

isolateRepay() lack of check onBehalf == nftOwner

The isolateRepay function allows specifying an onBehalf address that is not the NFT owner, so an attacker can reduce another user's userScaledIsolateBorrow balance. This can cause an underflow when the victim tries to repay or is liquidated, preventing repayment or liquidation.

BendDAO Invitational

High
Business logic

Revert due to underflow error, leading to lock of the liquidated NFT

When a liquidator wins an isolated-lending NFT auction, the liquidation routine subtracts the accrued borrow amount from the pool's recorded total bid amount. Because interest keeps growing the borrow amount past the recorded bid, the subtraction underflows and the transaction reverts, so the winning liquidator cannot unlock the NFT.

BendDAO Invitational

High
Business logic

Bad debt is never handled which places insolvency risks on BendDAO

The protocol lacks a mechanism to handle bad debt that arises when collateral value crashes or debt spikes, leaving outstanding debt that cannot be repaid. This can cause a liquidity shortfall, preventing users from withdrawing their deposits indefinitely.

BendDAO Invitational

High
Business logic

erc721DecreaseIsolateSupplyOnLiquidate() missing clear lockerAddr

A liquidation routine that returns an NFT to its owner failed to clear the stored locker address on the token record. Because a later deposit does not check that field, the NFT could be re-deposited in cross mode while still marked as locked, and the withdrawal check would then permanently block the owner from taking it out.

BendDAO Invitational

High
Audit finding

PriceOracle has invalid checks on price staleness

The price oracle contract used two invalid checks to detect stale Chainlink prices: it only verified that the update timestamp was non-zero and that a deprecated round field was not less than the round ID. An attacker could exploit a stale price to borrow or liquidate at an incorrect value.

BendDAO Invitational

Medium
Business logic

Unhandled request invalidation by the owner of Etherfi will lead to stuck debt

The owner of Etherfi's WithdrawRequestNFT can invalidate a withdrawal request, which prevents the BendDAO protocol from claiming the withdrawal and repaying its debt. The owner can then claim the invalidated request for itself, leaving the debt permanently stuck.

BendDAO Invitational

Medium