Skip to content

Code4rena

Astaria contest

Every publicly disclosed report for Astaria contest and what kind of bugs they were.

disclosed reports
55
most reported class
Business logic
bug classes found
4
first disclosure
2023
Find Astaria contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Astaria contest chose to make public.

Smart contracts

yIntercept of public vaults can overflow

An unchecked addition when updating a public vault's yIntercept can overflow, making totalAssets report far less than the real balance. Liquidity providers are then unable to withdraw a large fraction of their deposited assets.

Astaria contest

Medium
Business logic

ERC4626Cloned deposit and mint logic differ on first deposit

The ERC4626Cloned vault's deposit and mint functions handle the first deposit differently: previewMint returns a fixed 10e18 shares while previewDeposit returns shares equal to assets. An attacker can use deposit to mint a single share and manipulate the pool, defeating the intended protection against first-depositor frontrunning.

Astaria contest

High
Business logic

Malicious refinancing attack could lead to suboptimal NFT liquidation

Refinancing a loan is permissionless and does not check the liquidationInitialAsk parameter, so an attacker can refinance just before liquidation with a very low initial ask. This could cause the borrower's NFT to be liquidated at a price far below its fair value, benefiting the attacker.

Astaria contest

High
Business logic

Borrower can use liquidationInitialAsk to block future borrowers

A borrower can set their liquidationInitialAsk equal to their loan amount, causing any future borrows to fail because the contract checks that the total potential debt does not exceed each lien's liquidationInitialAsk. This blocks the borrower from taking additional loans.

Astaria contest

High
Business logic

PublicVault.processEpoch calculates withdrawReserve incorrectly; Users can lose funds

The processEpoch function in PublicVault sets the withdraw reserve to zero whenever the vault's total assets are less than or equal to the amount expected from an auction, even when the withdraw ratio is 100%. As a result, withdrawing liquidity providers can receive less than they are owed, and in the example given they could lose all of the vault's funds.

Astaria contest

High
DoS

Deadlock in vaults with underlying token with less then 18 decimals

The vault stores withdrawal ratios in a fixed 1e18 scale but does not convert them to the underlying token's decimals when calculating transfer amounts. For tokens with fewer than 18 decimals, this causes an underflow and revert in the claim function, locking all funds in the vault and withdraw proxy.

Astaria contest

High
Business logic

settleAuction() Check for status errors

The settleAuction function uses an incorrect logical condition (AND instead of OR) when checking auction state, so it can proceed even when there is no bid. This allows ClearingHouse.safeTransferFrom() to execute successfully without a valid auction.

Astaria contest

Medium
Business logic

For a public vault, minimum deposit requirement that is enforced by ERC4626Cloned.deposit function can be bypassed by ERC4626Cloned.mint function or vice versa when share price does not equal one

The minimum deposit requirement in a public vault is enforced inconsistently between the deposit and mint functions when the share price is not one, allowing a user to bypass the intended minimum by calling the less restrictive function. An attacker could become a liquidity provider with a deposit below the intended threshold, leading to unexpected deposit amounts and degraded filtering of participants.

Astaria contest

Medium
Business logic

Overflow potential in processEpoch()

The processEpoch function in PublicVault.sol uses an unchecked block to calculate withdrawReserve, assuming no overflow. Because arbitrary ERC20 tokens are allowed, a token with a very large totalAssets could cause an overflow, leading to incorrect reserve values.

Astaria contest

Medium
Business logic

Tokens with fee on transfer are not supported in PublicVault.sol

The PublicVault contract assumes that the amount of tokens received equals the amount transferred, which is incorrect for fee-on-transfer tokens. If such a token is used, the vault's accounting becomes inaccurate, potentially locking tokens and preventing depositors from withdrawing their shares.

Astaria contest

Medium
Business logic

Liquidator reward is not taken into account when calculating potential debt

The liquidator reward is not included when calculating potential debt, so if the liquidation initial ask is set to the minimum, the vault can lose funds because the reward is paid from the vault's share. An attacker could exploit this to cause a loss to the vault.

Astaria contest

Medium
Access control

Users are forced to approve Router for full collection to use commitToLiens() function

The authority check in the loan commitment validation only accepts the caller if it is approved for all NFTs, not if it is approved for the single collateral NFT. As a result, the normal flow where the Router (approved for one NFT) calls the function reverts, forcing users to grant blanket approval to the Router.

Astaria contest

Medium
Access control

Approved operator of collateral owner can’t liquidate lien

The canLiquidate function only allows the collateral owner or anyone after the lien's end time to liquidate, but approved operators of the collateral owner cannot liquidate even though they can request loans. This means an approved operator cannot liquidate a lien when they should be able to.

Astaria contest

Medium
Business logic

Lack of support for ERC20 token that is not 18 decimals

The PublicVault contract hardcodes its decimals to 18 instead of mirroring the underlying ERC20 token's decimals. For tokens with fewer decimals, such as USDC (6 decimals), this mismatch breaks share-to-asset conversions and liquidation ratio calculations.

Astaria contest

Medium
Business logic

Pause checks are missing on deposit for Private Vault

The private vault's deposit function lacks the pause and shutdown checks that the public vault enforces, so deposits can still be made after the vault is shut down. An attacker who is on the allowlist could deposit funds into a vault that should no longer accept them.

Astaria contest

Medium
Access control

Adversary can game the liquidation flow by transfering a dust amount of the payment token to ClearingHouse contract to settle the auction if no one buy the auctioned NFT

The ClearingHouse contract's safeTransferFrom function lacks access control, allowing anyone to call it. An attacker can transfer a tiny amount of the payment token to the contract and then call safeTransferFrom to settle the auction, blocking the liquidator from claiming the NFT and forcing lenders to bear the loss.

Astaria contest

Medium
DoS

Function processEpoch() in PublicVault would revert when most of the users withdraw their funds because of the underflow for new yIntercept calculation

The processEpoch function in PublicVault calculates a new yIntercept by subtracting a value derived from totalAssets() and the liquidationWithdrawRatio. When most users withdraw, this subtraction can underflow because totalAssets() exceeds yIntercept, causing processEpoch to revert and blocking epoch progression and user withdrawals.

Astaria contest

High
Business logic

Position not deleted after debt paid

A function that settles a debt deletes an entry from a memory copy of an auction stack rather than from storage, so the position is never actually removed. The text claims this leaves stale state behind, though it does not show a concrete attacker action or theft.

Astaria contest

Medium
Business logic

Users are unable to mint shares from a public vault using AstariaRouter contract when share price is bigger than one

The AstariaRouter contract approves the public vault to spend only the number of shares, not the required assets, when minting shares. When the vault's share price exceeds 1, the vault's mint function tries to transfer more assets than approved, causing the transaction to fail and preventing users from minting shares via the router.

Astaria contest

Medium
Business logic

WithdrawProxy allows redeem() to be called before withdraw reserves are transferred in

The WithdrawProxy contract allows redeem() to be called before the withdraw reserve is transferred in, because the onlyWhenNoActiveAuction modifier does not block calls when no auction has started and totalAssets() is based on the contract's current balance. An attacker could deposit a small amount to make totalAssets() positive and trick a depositor into redeeming early, causing them to receive less than their fair share and benefiting remaining holders.

Astaria contest

Medium
Business logic

LienToken.transferFrom There is a possibility of malicious attack

The LienToken contract restricts transfers to public vault addresses, but an attacker can predict a public vault's address and front-run its creation by transferring a private vault's LienToken to that address. This corrupts the public vault's accounting variables, causing it to malfunction.

Astaria contest

Medium
Business logic

Buying out corrupts the slope of a vault, reducing rewards of LPs

During a buyout, the vault's slope is decreased when the old lien is burned but not increased when the new lien is created, so the new lien generates no interest. As a result, the borrower pays no interest and liquidity providers lose rewards.

Astaria contest

High