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.
Source: https://github.com/sherlock-audit/2022-10-astaria-judging/issues/203
Found by
0xRajeev
Summary
The best-effort one-time English auction for borrower collateral is not economically efficient to drive auction bids towards reaching the total outstanding debt, which leads to loss of LP funds.
Vulnerability Detail
When any lien against a borrower collateral is not paid within the lien duration, the underlying collateral is put up for auction where bids can come in at any price. The borrower is allowed to cancel the auction if the current bid is lower than the reserve price which is set to the total outstanding debt. The reserve price is not enforced anywhere else. If there are no bids, the liquidator will receive the collateral.
Impact
This auction design of a best-effort one-time English auction is not economically efficient to drive auction bids towards reaching the total outstanding debt which effectively leads to loss of LP funds on unpaid liens.
Code Snippet
- https://github.com/sherlock-audit/2022-10-astaria/blob/main/lib/astaria-gpl/src/AuctionHouse.sol#L210-L217
- https://github.com/sherlock-audit/2022-10-astaria/blob/main/lib/astaria-gpl/src/AuctionHouse.sol#L178-L182
Tool used
Manual Review
Recommendation
Consider alternative auction design mechanisms e.g. a Dutch auction where the auction starts at the reserve price to provide a higher payment possibility to the LPs.
Discussion
SantiagoGregory
We're switching to a Dutch auction through Seaport.
Evert0x
Downgrading to info as it's a protocol design choice.
secureum
Escalate for 2 USDC.
This finding is based on current protocol design and implementation (i.e. there was no documentation suggesting their future switch to Dutch auction). Based on the protocol team's response above, they effectively confirm the current design choice (and implementation) to be a serious enough issue that they are changing the protocol design to what is recommended by this finding. Just because it is a design issue does not deem this to be downgraded to informational — design drives implementation and is harder to change. Moving to a Dutch auction, as recommended, will affect significant parts of protocol implementation.
Therefore, we still think this is of Medium severity impact, if not higher.
cc @berndartmueller @lucyoa
sherlock-admin
Escalate for 2 USDC.
This finding is based on current protocol design and implementation (i.e. there was no documentation suggesting their future switch to Dutch auction). Based on the protocol team's response above, they effectively confirm the current design choice (and implementation) to be a serious enough issue that they are changing the protocol design to what is recommended by this finding. Just because it is a design issue does not deem this to be downgraded to informational — design drives implementation and is harder to change. Moving to a Dutch auction, as recommended, will affect significant parts of protocol implementation.
Therefore, we still think this is of Medium severity impact, if not higher.
cc @berndartmueller @lucyoa
You've created a valid escalation for 2 USDC!
To remove the escalation from consideration: Delete your comment. To change the amount you've staked on this escalation: Edit your comment (do not create a new comment).
You may delete or edit your escalation comment anytime before the 48-hour escalation window closes. After that, the escalation becomes final.
Evert0x
Escalation accepted based on comment from Watson
sherlock-admin
Escalation accepted based on comment from Watson
This issue's escalations have been accepted!
Contestants' payouts and scores will be updated according to the changes made on this issue.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the auction mechanism is a one-time English auction with a reserve price that is not enforced, allowing the borrower to cancel if bids are below the reserve, which does not create competitive pressure to reach the debt amount.
Impact
The auction design may lead to insufficient bids, causing loss of LP funds on unpaid liens.
What the attacker needed
A lien is not paid within its duration
The fix
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.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a borrower does not repay a loan, their collateral is sold at an auction to recover the money owed to lenders. The auction only runs once and the borrower can cancel it if the highest bid is below the total debt, so the sale might not raise enough to repay everyone. This means lenders can lose money.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.