# Attacker can drain most of the reserves by weaponizing USDC blacklisting

Auction refunds lowest bidder via push USDC transfer; attacker blacklists own bidder address, blocking all new bids and winning 999 low bids to drain ~90% of reserves.

- Payout: Audit contest
- Severity: medium
- Program: Plaza Finance
- Found by: 056Security
- Disclosed: 2024-12-16
- Write-up quality: 7/10
- Original: https://github.com/sherlock-audit/2024-12-plaza-finance-judging/issues/866
- Library page: https://bugbountylibrary.com/r/sherlock%3A2024-12-plaza-finance%3AM-14
- Tags: area:web3 domain:web3 impact:funds-loss kind:contest platform:sherlock sev:medium tech:evm tech:solidity technique:chained vuln:accounting-error vuln:business-logic vuln:dos

**Target:** Auction.sol bid queue / _removeBid refund
**Root cause:** _removeBid refunds the evicted lowest bidder with a push safeTransfer of USDC; if that bidder is USDC-blacklisted the transfer reverts, so no new bid can ever evict the lowest bid, freezing the queue.
**Steps:**
1. Start auction; attacker atomically submits 999 bids from addressA with sellCouponAmount = slotSize and buyReserveAmount ~0.85 WETH each.
2. From addressB submit the 1000th bid with buyReserveAmount 1 wei lower (lowest priority) and sellCouponAmount = slotSize.
3. Get addressB USDC-blacklisted by Circle (e.g. interacting with OFAC-sanctioned addresses).
4. Any legitimate bid now triggers _removeBid -> safeTransfer(USDC) to blacklisted addressB -> revert; queue is frozen.
5. Wait for auction end; endAuction succeeds; attacker claims 999 bids from addressA, receiving ~849.15 WETH for ~7500 USDC.
**How found:** Noticed _removeBid uses push transfer (safeTransfer) to refund the evicted lowest bidder, and that the coupon token is USDC whose blacklist makes transfers revert; reasoned that a blacklisted lowest bidder permanently blocks queue eviction.
**Exploitation:** Attacker fills the 1000-bid queue with minimal-USDC bids requesting ~90% of WETH reserves, then blacklists the lowest-priority bidder address so the mandatory refund on eviction reverts, blocking all competing bids until auction ends and the attacker claims the reserves at a tiny fraction of value.
**Insight:** When a queue/auction evicts entries via push refunds of a blacklistable token (USDC/USDT), an attacker can occupy the eviction slot with a self-blacklisted address to freeze the queue; check every push-transfer to an attacker-controlled recipient for griefing via token-level blocklists.

## Proof of concept (copied exactly from the original report)

**Diff showing auction end and claim**

```
+       vm.expectRevert("Blacklisted!");
        auction.bid({buyReserveAmount: wethAmount, sellCouponAmount: usdcAmount});
        vm.stopPrank();

+       // 5th step - after auction ends attacker claims his 999 bids. Ends up acquiring 849.15 WETH for ~7500 USDC.
+       vm.warp(block.timestamp + 10 days);
+       auction.endAuction();
+       assertEq(uint256(auction.state()), uint256(Auction.State.SUCCEEDED));
+       console.log("Auction ended successfully");
+
+       vm.startPrank(attackerAddressA);
+       for (uint256 i = 0; i < numberOfBids; i++) {
+           auction.claimBid(i + 1);
+       }
+       assertEq(IERC20(reserveToken).balanceOf(attackerAddressA), 999 * 0.85 ether);
+
+       console.log("Attacker's amount of USDC spent:", 100 * slotSize);
+       console.log("Attacker's amount of WETH acquired:", IERC20(reserveToken).balanceOf(attackerAddressA));
```

