Hunt prep
Before you test Astaria contest
What 55 disclosed reports say about Astaria contest: 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
Not written yet for this program. The numbers below are up to date.
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 | 40 | 0 | – | – | $0 |
| Access control lesson | 7 | 0 | – | – | $0 |
| DoS lesson | 5 | 0 | – | – | $0 |
| Smart contracts lesson | 3 | 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.
-
ERC4626Cloned deposit and mint logic differ on first deposit
The deposit function should apply the same first-depositor logic as the mint function.
Disclosed
-
At the second time the nft is used as collateral to take a loan, the debt repayment via auction fund can be failed when liquidation
The report recommends using approve instead of safeApprove, though the project noted its library does not check for setting approvals to zero.
Disclosed
-
Malicious refinancing attack could lead to suboptimal NFT liquidation
The protocol should add checks that liquidationInitialAsk does not decrease during refinancing, or enforce a minimum liquidation price across refinances.
Disclosed
-
Borrower can use liquidationInitialAsk to block future borrowers
The checks on liquidationInitialAsk should be removed except for comparing the total potential debt of the entire stack to the liquidationInitialAsk of the lien at position 0.
Disclosed
-
PublicVault.processEpoch calculates withdrawReserve incorrectly; Users can lose funds
The logic should be reworked so the reserve is always the total assets scaled by the withdraw ratio, with the interaction with the withdraw proxy's y-intercept handling reconsidered.
Disclosed
-
When Public Vault A buys out Public Vault B’s lien tokens, it does not increase Public Vault A’s liensOpenForEpoch, which would result in the lien tokens not being repaid
In LienToken.buyoutLien, when the caller is a public vault, increase that public vault's epoch lien count.
Disclosed
-
Deadlock in vaults with underlying token with less then 18 decimals
The line calculating the transfer amount should use 10**18 instead of the token's decimals to avoid the underflow.
Disclosed
-
settleAuction() Check for status errors
The condition should be changed to use logical OR and compare ownership with equality, as shown in the recommended mitigation.
Disclosed
-
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 deposit function should compare the assets input directly to minDepositAmount(), or the mint function should compare the shares input directly to minDepositAmount(), so both enforce the same minimum.
Disclosed
-
Overflow potential in processEpoch()
Remove the unchecked block around the calculation or add an explicit check to handle very large totalAssets().
Disclosed
-
Tokens with fee on transfer are not supported in PublicVault.sol
The vault should either measure the actual received amount by comparing balances before and after transfer, or disallow fee-on-transfer tokens.
Disclosed
-
Liquidator reward is not taken into account when calculating potential debt
The liquidator reward should be included in the calculation of potential debt.
Disclosed
-
When a private vault offers a loan in ERC777 tokens, the private vault can refuse to receive repayment in the safeTransferFrom callback to force liquidation of the borrower’s collateral
For private vaults, repayment should send tokens to the vault itself, with the owner claiming them later.
Disclosed
-
Vault can be created for not-yet-existing ERC20 tokens, which allows attackers to set traps to steal NFTs from Borrowers
The issue should be fixed by using OpenZeppelin's SafeERC20, which checks that the token address contains code.
Disclosed
-
yIntercept of public vaults can overflow
The unchecked block around the addition should be removed so the operation reverts on overflow.
Disclosed