Hunt prep
Before you test Astaria
What 63 disclosed reports say about Astaria: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing 14
Ideas drawn from this program's disclosed reports and our class lessons. None of them is a known bug: each is a place to look, and the reports linked under it are why. Check the current scope before testing anything.
-
1
Test buyout paths for stale payee and epoch counters
Business logic Read the lesson
Buyouts have produced several distinct accounting faults here, including a payee that is not reset and epoch lien counters that are not updated. Exercise buyoutLien with a changed payee, a duration that crosses into a later epoch, and a subsequent payment or liquidation, and check that the new owner receives funds and that counters stay consistent.
Backed byPurchaser of a lien token may not receive payments (2022) Lien count per epoch is not updated ultimately locking the colla... (2022) buyoutLien() will cause the vault to fail to processEpoch() (2022)+1 more report
From the lessons: Liquidation, repayment and debt takeover flows where front-running can...; Reward accumulation updates in staking and vault contracts.
-
2
Probe payment loops for index and amount handling
Business logic Read the lesson
Several reports show bulk payments misallocating funds or reverting because liens are stored in a shrinking array and the full amount is passed to the first lien. Test makePayment and _payment with multiple liens of differing sizes, partial repayments and a front-run repayment, and check that each lien is credited only what it is owed.
Backed by_makePayment is logically inconsistent with how lien stack is ma... (2022) A payment made towards multiple liens causes the borrower to los... (2022) _payment() function transfers full paymentAmount, overpaying fir... (2022)From the lessons: Liquidation and force repay paths.; Liquidation, repayment and debt takeover flows where front-running can...
-
3
Check interest and slope maths after partial repayment
Business logic Read the lesson
Interest and slope calculations have repeatedly been wrong, with block.timestamp used instead of the supplied timestamp and interest counted twice after partial payment. Test partial repayments followed by slope recalculation and epoch processing, and compare the vault's implied value against expected interest.
Backed by_getInterest() function uses block.timestamp instead of the inpu... (2022) The implied value of a public vault can be impaired, liquidity p... (2022) Incorrect `LienToken.changeInSlope` calculation can lead to vaul... (2022)+1 more report
From the lessons: Reward accumulation updates in staking and vault contracts.; Vault deposit, withdraw and redeem functions across yield and staking...
-
4
Test auction timing and extension boundaries
Business logic Read the lesson
Auction timing has produced underflows, early endings and over-long extensions around the time buffer and max duration. Exercise bids placed at the very start, within the final buffer and after extension, and check that duration caps and finalAuctionEnd timestamps behave as intended.
Backed byBids cannot be created within timeBuffer of completion of a max... (2022) Auctions run for less time than intended (2022) Extension logic incorrectly extends the auction by an additional... (2022)From the lessons: Liquidation, repayment and debt takeover flows where front-running can...
-
5
Review liquidation accountant claim access and timing
Access control Read the lesson
The claim function has had missing access control and a finalAuctionEnd set to a duration rather than a timestamp, letting anyone claim early or repeatedly. Test claim before, during and after an auction, from arbitrary callers, and check yIntercept and vault accounting after each call.
Backed by`LiquidationAccountant.claim()` can be called by anyone causing... (2022) liquidationAccountant can be claimed at any time (2022) Claiming liquidationAccountant will reduce vault y-intercept by... (2022)From the lessons: Liquidation and force repay paths.; Initialise and setup functions on newly deployed contracts.
-
6
Test zero-address signer and signature validation
Access control Read the lesson
A vault without a delegate was drainable because ecrecover returns the zero address for invalid signatures. Test commitment validation with missing or zero strategist and delegate values, malformed signatures and operator approvals, and check that invalid signers are rejected.
Backed byAny public vault without a delegate can be drained (2022) _validateCommitment fails for approved operators (2022) Strategist nonce is not checked (2022)From the lessons: Initialise and setup functions on newly deployed contracts.; Two-step admin and ownership transfer functions.
-
7
Probe ERC4626 share maths with donations and fee tokens
Business logic Read the lesson
Share pricing has been wrong for the first depositor, for fee-on-transfer tokens and before the first payment. Test deposit and mint with a direct donation, a fee-on-transfer token and a non-18-decimal token, and check that shares issued match assets actually received.
Backed byFirst ERC4626 deposit can break share calculation (2022) ERC4626 does not work with fee-on-transfer tokens (2022) Public vault depositors will receive fewer vault shares until th... (2022)+1 more report
From the lessons: Test the protocol with several ERC20 variants (different decimals, no...; Use a fee-on-transfer token as the asset or collateral and check wheth...; Mint or redeem shares and check whether the function enforces a minimu...
-
8
Check withdraw proxy deposit and mint exposure
Access control Read the lesson
The WithdrawProxy inherited public deposit and mint functions, letting anyone capture distributed yield and block processEpoch. Test direct deposits and mints into a withdraw proxy around yield distribution and epoch processing, and check that only intended paths can mint shares.
Backed byAnyone can deposit and mint withdrawal proxy shares to capture d... (2022) Possible to fully block PublicVault.processEpoch function. No on... (2022) Lack of access control in PublicVault.sol#transferWithdrawReserv... (2022)From the lessons: Vault deposit, withdraw and redeem functions across yield and staking...; Trigger an internal outflow and check whether deposited share counters...
-
9
Test pause and access modifiers across vault entry points
Access control Read the lesson
Mint lacked the whenNotPaused modifier that deposit had, and transferWithdrawReserve had no access control. Compare modifiers across deposit, mint, redeem and reserve transfer functions, and check whether pausing or repeated calls leave state consistent.
Backed byMinting public vault shares while the protocol is paused can lea... (2022) Lack of access control in PublicVault.sol#transferWithdrawReserv... (2022)From the lessons: Initialise and setup functions on newly deployed contracts.; Two-step admin and ownership transfer functions.
-
10
Exercise lien creation limits and debt caps
Business logic Read the lesson
Several reports show maxPotentialDebt checks that ignore the new lien or use inflated formulas, plus duration limits that are not enforced. Test createLien across multiple collateral tokens and durations beyond the next epoch, and check that the combined debt and duration limits hold.
Backed byLoans can exceed the maximum potential debt leading to vault ins... (2022) `LienToken.createLien` may prevent liens that satisfy their term... (2022) `VaultImplementation._validateCommitment` may prevent liens that... (2022)+2 more reports
From the lessons: Liquidation and force repay paths.; Liquidation, repayment and debt takeover flows where front-running can...
-
11
Probe liquidation timing and no-bid auction outcomes
Business logic Read the lesson
Liquidations could be triggered before the auction window, and a no-bid auction handed collateral to the initiator rather than lenders. Test liquidate and endAuction at boundary times and with zero bids, and check that lien counts, accountants and collateral ownership end up correct.
Backed byTriggering liquidations ahead of expected time leads to loss and... (2022) If an auction has no bidder, the NFT ownership should go back to... (2022) Outstanding debt is not guaranteed to be covered by auctions (2022)From the lessons: Liquidation and force repay paths.; Liquidation, repayment and debt takeover flows where front-running can...
-
12
Test reentrancy through auction end and token callbacks
Race condition Read the lesson
A malicious lien owner re-entered endAuction to cancel and take a new loan whose lien was then deleted. Test endAuction, buyout and payment paths with a contract owner that calls back into the protocol, and check that state is updated before external calls.
Backed byA malicious lien owner can exploit a reentrancy to steal LP fund... (2022) A malicious lien buyer can DoS to cause fund loss/lock (2022)From the lessons: Functions that make external calls to tokens, native currency or NFTs...; Re-enter a redemption or swap function through a callback and check wh...; Re-enter through a token callback or a read-only call rather than the...
-
13
Check fee calculations and denominators
Business logic Read the lesson
Fee maths has been wrong in several places, including basis-point division, uninitialised denominators and fees charged on the full transfer amount. Test protocol fee, initiator fee and vault fee paths with fees enabled and with overpayment, and check that charged amounts match the intended basis points.
Backed byStrategists are paid 10x the vault fee because of a math error (2022) `AstariaRouter.commitToLiens` will revert if the protocol fee is... (2022) Incorrect fees will be charged (2022)From the lessons: Reward accumulation updates in staking and vault contracts.; Initialise and setup functions on newly deployed contracts.
-
14
Review refinance validation logic
Business logic Read the lesson
isValidRefinance used an inverted comparison and required both conditions instead of either. Test refinance with higher and lower rates and with duration changes, and check that only genuinely improved terms are accepted.
Backed byisValidRefinance will approve invalid refinances and reject vali... (2022) isValidRefinance checks both conditions instead of one, leading... (2022) Buyouts of shorter duration liens can lead to the loss of borrow... (2022)From the lessons: Liquidation, repayment and debt takeover flows where front-running can...
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 45 | 0 | – | – | $0 |
| DoS lesson | 8 | 0 | – | – | $0 |
| Access control lesson | 6 | 0 | – | – | $0 |
| Smart contracts lesson | 4 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
The implied value of a public vault can be impaired, liquidity providers can lose funds
The _payment function should update lien.amount after calling beforePayment, so the slope calculation uses the correct pre-payment amount.
Disclosed
-
_deleteLienPosition can be called by anyone to delete any lien they wish
The function should be changed from public to internal to restrict access.
Disclosed
-
Canceling an auction with 0 bids will only partially pay back the outstanding debt
The cancellation amount should be the reserve price plus the liquidation fee, and remaining liens should be removed upon payment.
Disclosed
-
Public vaults can become insolvent because of missing `yIntercept` update
Update yIntercept in beforePayment() by the amount value.
Disclosed
-
`LiquidationAccountant.claim()` can be called by anyone causing vault insolvency
The updated implementation tracks a hasClaimed bool to ensure claim() is only called once and blocks claim() until after finalAuctionEnd.
Disclosed
-
A malicious lien buyer can DoS to cause fund loss/lock
The protocol should account for malicious lien token owners during buyouts and use reentrancy guards, and it should not let a buyer-controlled contract halt core flows.
Disclosed
-
Lien buyout with new terms does not update the slope of public vaults
The slope of the lien should be calculated before the buyout, subtracted from the public vault's slope, then after updating the lien terms, the new slope should be recalculated and added back.
Disclosed
-
Epochs can be progressed during ongoing auctions to cause LP fund loss and collateral lockup
The logic should be revised to use an appropriate timestamp instead of a fixed duration.
Disclosed
-
Payments and liquidations of multiple liens will revert and can be exploited, causing payer fund loss
The logic that adds, traverses and deletes entries in the `liens` array should be revisited and fixed, for example by using stable identifiers instead of array positions.
Disclosed
-
Loans can exceed the maximum potential debt leading to vault insolvency and possible loss of LP funds
The total debt limit should be checked after adding the new lien to the liens array.
Disclosed
-
Lack of access control in PublicVault.sol#transferWithdrawReserve let user call transferWithdrawReserve() multiple times to modify withdrawReserve
The function should be protected with an authentication modifier or should revert if the withdrawal proxy address is zero.
Disclosed
-
Auctions can end in epoch after intended, underpaying withdrawers
The check should be changed to include the maximum one-day extension of the auction window.
Disclosed
-
Strategists are paid 10x the vault fee because of a math error
The divisor in the fee calculation should be changed from 1,000 to 10,000.
Disclosed
-
Outstanding debt is not guaranteed to be covered by auctions
The protocol should consider alternative auction designs, such as a Dutch auction starting at the reserve price, to increase the likelihood of covering the outstanding debt.
Disclosed
-
Anyone can deposit and mint withdrawal proxy shares to capture distributed yield from borrower interests
Override the ERC4626Cloned.afterDeposit function to revert, preventing public deposits and mints.
Disclosed