If an isolated borrower/bidder is blacklisted by the debt token, risk of DOS liquidation/auction of the corresponding loan
If a debt token can blacklist addresses, a blacklisted bidder or borrower can cause transfers to revert, blocking further bids or liquidation. This can deny service to the auction or liquidation process.
Submitted by oakcobalt, also found by bin2chen and Ch_301
If a debt asset has a blacklisting feature (e.g., USDC), and an isolated borrower/bidder is blacklisted by the asset token, isolated liquidation/auction of the corresponding loan can be DOSsed.
When a user is blacklisted by an erc20 token, the asset cannot be transferred in or out of the blacklisted user’s account.
- A bidder is blacklisted after they placed the bid for an isolated loan auction through
IsolateLogic::executeIsolateAuction.
When the next bidder outbids by calling IsolateLogic::executeIsolateAuction, the previous bidder’s bid amount is returned. Because previous bidder is blacklisted after placing the bid, VaultLogic.erc20TransferOutBidAmount(debtAssetData, vars.oldLastBidder, vars.oldBidAmount) will revert the auction tx. At this point, no one can bid on the loan.
//src/libraries/logic/IsolateLogic.sol
function executeIsolateAuction(InputTypes.ExecuteIsolateAuctionParams memory params) internal {
...
// transfer last bid amount to previous bidder from escrow
if ((vars.oldLastBidder != address(0)) && (vars.oldBidAmount > 0)) {
VaultLogic.erc20TransferOutBidAmount(debtAssetData, vars.oldLastBidder, vars.oldBidAmount);
}
...
- The borrower is blacklisted by the debt token.
After the auction ends, when the liquidator calls executeIsolateLiquidate(), if the last bid amount is greater than total debt, the extra amount (last bid amount - total debt) has to be transferred to the borrower in the current implementation.
//src/libraries/logic/IsolateLogic.sol
function executeIsolateLiquidate(InputTypes.ExecuteIsolateLiquidateParams memory params) internal {
...
// transfer remain amount to borrower
if (vars.remainBidAmounts[vars.nidx] > 0) {
VaultLogic.erc20TransferOutBidAmount(debtAssetData, tokenData.owner, vars.remainBidAmounts[vars.nidx]);
}
...
However, VaultLogic.erc20TransferOutBidAmount(debtAssetData, tokenData.owner, vars.remainBidAmounts[vars.nidx]) will revert due to the original borrower (tokenData.owner) is blacklisted.
Recommended Mitigation Steps
In the isolate auction or liquidation flow, consider using try-catch block to handle VaultLogic.erc20TransferOutBidAmount.
thorseldon (BendDAO) acknowledged and commented:
We suggest adjust the severity level to Informative.
According to the
README, which is a source of truth in this audit,PausabilityandBlocklists(blacklisting) of ERC20 tokens are in scope.Therefore, I have to treat this as a viable risk and cannot justify a downgrade of the issue, even if not immediately relevant in the vast majority of practical cases.
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
The contract does not handle failed token transfers to blacklisted addresses, so a revert blocks the entire auction or liquidation.
Impact
The auction or liquidation can be blocked, preventing the loan from being processed.
What the attacker needed
Debt token supports blacklisting; bidder or borrower gets blacklisted
The fix
Use a try-catch block around the token transfer to handle failures gracefully.
How it was found
- A bidder places a bid in an isolated loan auction.
- The bidder is blacklisted by the debt token.
- Another bidder tries to outbid, but the refund to the blacklisted bidder reverts, blocking further bids.
- After the auction ends, the borrower is blacklisted by the debt token.
- The liquidator calls executeIsolateLiquidate, but the transfer of excess bid amount to the blacklisted borrower reverts.
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.
Some tokens, like USDC, can block specific addresses from sending or receiving them. If a blocked person is involved in a loan auction, the system tries to send them tokens and fails, which stops the whole auction or liquidation. This means the loan cannot be processed normally.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.