Submitted by Jeiwan, also found by obront and HE1M
https://github.com/code-423n4/2023-01-astaria/blob/1bfc58b42109b839528ab1c21dc9803d663df898/src/ClearingHouse.sol#L220-L231
The owner of a collateral NFT that was liquidated and then claimed by the liquidator (after the auction had no bids) may drain the vault the loan was taken from.
Theres an extreme situation when a liquidated and auctioned collateral NFT had no bids and the auction has expired. In this situation, the liquidator may claim the NFT by calling CollateralToken.liquidatorNFTClaim. The function:
However, the function doesnt settle the auction. As a result:
This allows the owner of the liquidated collateral NFT to create a new lien and take the maximal loan without providing any collateral.
Exploit Scenario
The following PoC demonstrates the above scenario:
Consider settling the auction at the end of settleLiquidatorNFTClaim:
androolloyd (Astaria) confirmed
