Skip to content

Sherlock

Astaria

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

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

Disclosed reports

Newest first. Only what Astaria chose to make public.

Business logic

The implied value of a public vault can be impaired, liquidity providers can lose funds

A partial repayment of a lien updates the stored lien amount to include accrued interest but does not update the last-updated timestamp, so a later slope calculation counts the same interest twice. This distorts the public vault's slope accumulator, making the vault's implied value either too low or too high, which can cause liquidity providers to lose funds.

Astaria

High
Access control

_deleteLienPosition can be called by anyone to delete any lien they wish

The function _deleteLienPosition is public and lacks caller validation, allowing anyone to delete any lien from any collateral. This could let a borrower bypass the release check and withdraw collateral without repaying the loan, effectively stealing lender funds.

Astaria

High
Business logic

Canceling an auction with 0 bids will only partially pay back the outstanding debt

Cancelling an auction with zero bids only partially repays the outstanding debt because the initiator fee is deducted from the reserve price, leaving unpaid liens. This prevents the borrower from releasing their collateralised NFT even after paying the reserve price, locking it forever.

Astaria

High
DoS

A malicious lien buyer can DoS to cause fund loss/lock

A malicious lien buyer can deliver a lien token to a contract they control that implements supportsInterface() with arbitrary code, such as reverting. Because the protocol calls this function in several places, the attacker can block auctions, liquidation and payments, locking funds and collateral.

Astaria

High
Business logic

Lien buyout with new terms does not update the slope of public vaults

When a lien is bought out with new terms, the slope of the associated public vault is not updated to reflect the changed lien terms. This can cause liquidations involving the public vault to revert and lead to incorrect vault share calculations due to an outdated slope value.

Astaria

High
Business logic

Auctions can end in epoch after intended, underpaying withdrawers

The liquidation logic checks whether an auction will end in a future epoch using only the auction window, ignoring that auctions can be extended by up to one day. As a result, an auction may end in the next epoch without proper accounting, causing users who withdrew in the current epoch to be underpaid.

Astaria

High
Business logic

Strategists are paid 10x the vault fee because of a math error

The vault fee is stored in basis points but the fee calculation divides by 1,000 instead of 10,000, so strategists receive ten times the intended fee. An attacker who is a strategist could take a much larger share of payments made to the vault.

Astaria

High
Business logic

Outstanding debt is not guaranteed to be covered by auctions

The auction for liquidated collateral uses a one-time English auction with a reserve price equal to the total outstanding debt, but the reserve price is not enforced except that the borrower can cancel if the bid is below it. This design may fail to attract bids high enough to cover the debt, leading to losses for liquidity providers.

Astaria

Medium
Smart contracts

Incorrect `LienToken.changeInSlope` calculation can lead to vault insolvency

The changeInSlope function calculates a new slope without accounting for interest and the interest denominator, making the value inflated and causing an underflow when subtracting from the old slope. This can lead to reverts and vault insolvency because users cannot determine the implicit value of vaults.

Astaria

Medium
Business logic

Loan duration can exceed the end of the next epoch

The protocol specification states that new loan durations must not exceed the end of the next epoch, but the implementation does not enforce this restriction. An attacker could create loans with durations longer than allowed, potentially causing miscalculations and fund loss.

Astaria

Medium
Business logic

LiquidationAccountant.claim may revert for some tokens

The claim function in LiquidationAccountant can attempt a token transfer of zero when the withdrawal ratio is 100 percent. For tokens that revert on zero-value transfers, this makes the funds unclaimable, causing a loss of funds.

Astaria

Medium
Business logic

LienToken.createLien doesn't check if user should be liquidated and provides new loan

The createLien function assumed that a missing auction meant the borrower was safe to receive a new loan, but an auction only exists once someone calls the liquidate function. An attacker could therefore obtain a new loan for a borrower who had already defaulted and should have been liquidated.

Astaria

Medium
Business logic

timeToEpochEnd calculates backwards, breaking protocol math

The timeToEpochEnd function in a smart contract returns zero when the epoch is still ongoing, instead of the remaining time. This causes all liquidations to be treated as future-epoch payouts, leading to incorrect accounting and potential reverts.

Astaria

Medium
Business logic

Triggering liquidations ahead of expected time leads to loss and lock of funds

Liquidations can be triggered for a collateral after a lien expires but before the auction window at epoch end. The liquidation logic skips decreasing the lien count and setting up the liquidation accountant, so auction proceeds go directly to lien owners and the epoch cannot advance, causing loss and lock of funds.

Astaria

High
DoS

Auction bid that partially pays back an expired lien will revert

Auction bids that only partially repay an expired lien cause a revert because the lien's last payment timestamp is updated to the current time, which is later than the lien's end time, leading to a subtraction underflow. This prevents partial bids and can cause loss of funds to liquidity providers.

Astaria

High